I wanted to make something that will start pressing A once i press Q, and will stop pressing A once i press Q 2nd time and so on
So i made something like this
But this just spams 0 once i run this thing
Can someone fix it? Or tell me how to do it?
And 2nd question,
is it possible to make something that will work like this
Im pressing A and that software is typing B and after 1sec C?
So i made something like this
Code:
#include <GUIConstantsEx.au3>
GUICreate("Hmmmmmm", 500, 300)
GUISetState(@SW_SHOW)
const $spambutton = send("a")
const $delay = 1000
$startbutton = hotkeyset("q")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $startbutton
$send1 = GUICtrlRead($spambutton)
$sleep1 = GUICtrlRead($delay)
While 1
Send($send1)
Sleep($sleep1)
WEnd
Case $msg = $GUI_EVENT_CLOSE
GUIDelete()
ExitLoop
EndSelect
WEnd
Can someone fix it? Or tell me how to do it?
And 2nd question,
is it possible to make something that will work like this
Im pressing A and that software is typing B and after 1sec C?