As it functions now, it spams a certain key, in this case space.
I wan't to improve the speed it spams, what would be the most optimal way to do this?
This is the script:
Code: Select all
SetBatchLines -1
SleepDuration = 1
TimePeriod = 1
DllCall("Winmm\timeBeginPeriod", uint, TimePeriod)
*space::
setkeydelay -1,-1
Loop
{
GetKeyState,state,space,P
if state = U
break
Send {Space}
DllCall("Sleep", UInt, SleepDuration)
}
DllCall("Winmm\timeEndPeriod", UInt, TimePeriod)
Return