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

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
paskdie
Posts: 3
Joined: 13 Apr 2024, 06:34

press O 20 times and repeat after 200 seconds

13 Apr 2024, 06:39

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'.]
User avatar
mikeyww
Posts: 27009
Joined: 09 Sep 2014, 18:38

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

13 Apr 2024, 07:16

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.
paskdie
Posts: 3
Joined: 13 Apr 2024, 06:34

Re: press O 20 times and repeat after 200 seconds

13 Apr 2024, 12:21

it works so well, i also added Q
ill try current version
Thanks man.
paskdie
Posts: 3
Joined: 13 Apr 2024, 06:34

Re: press O 20 times and repeat after 200 seconds

15 Apr 2024, 16:33

Sorry to bother you again sir, how do I set the script run without pause, and time until I press f3 to kill it?
User avatar
mikeyww
Posts: 27009
Joined: 09 Sep 2014, 18:38

Re: press O 20 times and repeat after 200 seconds

15 Apr 2024, 19:28

You can change the timer period to a different number.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, IfThenElse, lechat, LuckyJoe and 264 guests