Code:
HotKeySet("{F10}", "first")
HotKeySet("{F8}", "ExitScript")
While 1
Sleep(100)
WEnd
Func first()
Send("SPACE DOWN")
Sleep(160)
Send("SPACE UP")
EndFunc
Func ExitScript()
Exit
EndFunc
i practicly want a script that preses space with a same sleep time untill i press the exit button
Code:
Global $Should_i_Run = False;this line ($Should_i_Run is just example name that you can change to anything else if needed)
HotKeySet("{F10}", "Toggle");this line
HotKeySet("{F8}", "ExitScript")
While 1
Sleep(1)
WEnd
Func Toggle();and this func
$Should_i_Run = Not $Should_i_Run
While $Should_i_Run
Send("{SPACE DOWN}")
Sleep(160)
Send("{SPACE UP}")
Sleep(160)
WEnd
EndFunc ;==>TurnOn
Func ExitScript()
Exit (0)
EndFunc ;==>ExitScript






