Can't Get Script To Randomize Keystroke
Posted: 15 Oct 2021, 00:54
So I've never written a script before. What I want is really basic; I just want it to click "e" every 4-5 seconds. I also tried to get the script to stop after hitting the esc key. I can't seem to get the random function to work. After a fair amount of research, here's what I have:
All help is much appreciated!
Code: Select all
#Persistent
SetTimer, PressTheKey, 4000
Return
PressTheKey:
Send, {e}
Random, rand, 4000, 5000
Return
Esc::ExitApp
All help is much appreciated!