need help with script

Ask gaming related questions (AHK v1.1 and older)
yesman1
Posts: 1
Joined: 06 Apr 2024, 04:24

need help with script

Post by yesman1 » 06 Apr 2024, 04:33

Hello can anyone help me create a script that types 2 every 8 seconds ?
with like F2 to activate/deactivate it

Rohwedder
Posts: 7659
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: need help with script

Post by Rohwedder » 06 Apr 2024, 09:31

Hallo,
try:

Code: Select all

F2::SetTimer, F2 Up,% (F2:=!F2)?8000:"Off"
F2 Up::Send,% F2?"2":""

Post Reply

Return to “Gaming Help (v1)”