Been learning to use authotkey and this is my first script after using many solutions found either here and reddit and I would really appreciate help on this problem
Objetive: I'm trying to send multiple text (number format) within the specified interval on time. First send 9,8 and 0 at the same time (maybe having a delay of 1-2 seconds from each, to seem human and not a bot) and afterwards start using the "delay2" of each of their number, repeating until stopping.
Problem: When I start the script it press number 9 and when the delay finishes it will continue to press the other numbers until the cycle is completed and start again at 9.
Let me know if I was not clear.
Code: Select all
F7::
if (enable := !enable)
setTimer, routine, -1
return
routine:
while enable
{
{
Random, delay1, 500, 550
Random, delay2, 425000, 500000
send, {9 down}
Sleep %delay1%
Send {9 up}
Sleep, %delay2%
}
Random, delay1, 500, 550
Random, delay2, 19000, 27500
send, {8 down}
Sleep %delay1%
Send {8 up}
sleep, %delay2%
}
Random, delay1, 500, 550
Random, delay2, 380000, 520000
send, {0 down}
Sleep %delay1%
Send {0 up}
sleep, %delay2%
}
}
return
F8::
Suspend ;Suspend Hotkeys off/on
Pause,, 1 ;Pause Script off/on
Return
[Mod edit: Moved topic to AHK v1 help, since this is not v2 code.]