Need help with a script

Get help with using AutoHotkey and its commands and hotkeys
hackzer159
Posts: 1
Joined: 28 Oct 2019, 04:44

Need help with a script

29 Oct 2019, 03:41

I was trying to create an auto send text in game warframe in every 120 second. this is the code below. what i need help with is how do i put a key to unable or disable it. because it activate once i open the AHK file only but i have no control over it. for the code somewhere on the internet.

#Persistent
SetTimer, PressTheKey, 121000
Return

PressTheKey:
Send, t
Send, ^v
Send, {Enter}
Send, {Esc}
Return
trust_me
Posts: 83
Joined: 29 Jul 2017, 10:46

Re: Need help with a script

30 Oct 2019, 05:00

Code: Select all

#Persistent
setTimer, PressTheKey, 121000
Return

PgUp::      ;you can choose another hotkey than pageup
toggle:=!toggle
if toggle
SetTimer, PressTheKey, off
else
SetTimer, PressTheKey, on
return


PressTheKey:
Send, t
Send, ^v
Send, {Enter}
Send, {Esc}
Return

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], HooptyDoopty, metatron, PuzzledGreatly, Splongus and 315 guests