Page 1 of 1

press O 20 times and repeat after 200 seconds

Posted: 13 Apr 2024, 06:39
by paskdie
How i make a script to press O 20 times and repeat after 200 seconds and keep repeat untill i want to stop it?


[Mod edit: Replaced topic title which was just 'Script'.]

Re: press O 20 times and repeat after 200 seconds  Topic is solved

Posted: 13 Apr 2024, 07:16
by mikeyww
Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v1.1.33.11
F3::SetTimer F3 Up, % (on := !on) ? 200000 : "Off"
F3 Up::Send % ["{O 20}"][on]
If you are new to AHK, I recommend using its current version, which is v2, instead of this older deprecated version that is no longer developed.

Re: press O 20 times and repeat after 200 seconds

Posted: 13 Apr 2024, 12:21
by paskdie
it works so well, i also added Q
ill try current version
Thanks man.

Re: press O 20 times and repeat after 200 seconds

Posted: 15 Apr 2024, 16:33
by paskdie
Sorry to bother you again sir, how do I set the script run without pause, and time until I press f3 to kill it?

Re: press O 20 times and repeat after 200 seconds

Posted: 15 Apr 2024, 19:28
by mikeyww
You can change the timer period to a different number.