So, for example, when I toggle xbutton1, I want "2" and "3" pressed, and then for "2" to repeat around every 4.8 seconds, while "3" will repeat for around every 6.0 seconds - but I want these independent delays to run in parallel, not in sequence.
Any guidance greatly appreciated, thank you!
Code: Select all
#maxThreadsPerHotkey, 2
setKeyDelay, 25, 25 ;was 50, 50
setMouseDelay, 25 ;was 50
banana:=0
$XButton1::
banana:=!banana
while (banana=1)
{
send, 2
Random ranSleep2, 4750, 4850
sleep %ranSleep2%
}
return