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

Start/Stop

$
0
0
I've spent the last 3 hours looking at examples, testing them and everything else i could do myself. I can get the start button to work properly but cannot get stop to work =(. Here is the code

[ autoit ]         
#include #include GUICreate("Plugin", 300, 145) GUISetState(@SW_SHOW) GUICtrlCreateLabel("Interact Keybind", 18, 10) $InteractKey = GUICtrlCreateInput("f", 150, 8, 120) GUICtrlCreateLabel("Teleport Next Keybind", 18, 44) $TeleportNextKey = GUICtrlCreateInput("{NUMPAD7}", 150, 40, 120) GUICtrlCreateLabel("Syncing Ability", 18, 78) $SyncingAbility = GUICtrlCreateInput("", 150, 74, 120) $startbutton = GUICtrlCreateButton("Start", 18, 110, 120) $stopbutton = GUICtrlCreateButton("Stop", 150, 110, 120) While 1 $msg = GUIGetMsg() Select Case $msg = $startbutton $send1 = GUICtrlRead($InteractKey) $send2 = GUICtrlRead($TeleportNextKey) $send3 = GUICtrlRead($SyncingAbility) While 1 if Winactive("abc") = 0 Then Winactivate("abc") Endif Send($send1); Sleep(3000) Send($send2); Sleep(500) Send($send3); Sleep(1000) Wend Case $msg = $stopbutton ExitLoop Case $msg = $GUI_EVENT_CLOSE GUIDelete () ExitLoop 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>