why doesnt this script work all it needs to do is write what is written in the input box into notepad
#include <GUIConstantsEX.au3>
GUICreate("test",200,200)
Local $words, $msg, $gobutton, $write
$gobutton = GUICtrlCreateButton("go",90,90)
$words = guictrlcreateinput("",90,70,90,20)
GUISetState(@SW_SHOW)
$write = GUICtrlRead($words)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $gobutton
run("notepad.exe")
Send($write)
EndSelect
WEnd
#include <GUIConstantsEX.au3>
GUICreate("test",200,200)
Local $words, $msg, $gobutton, $write
$gobutton = GUICtrlCreateButton("go",90,90)
$words = guictrlcreateinput("",90,70,90,20)
GUISetState(@SW_SHOW)
$write = GUICtrlRead($words)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $gobutton
run("notepad.exe")
Send($write)
EndSelect
WEnd