Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

why doesnt this work

$
0
0
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

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>