Can someone add in a simple toggle key for this script please

Ask gaming related questions (AHK v1.1 and older)
obvkobe
Posts: 2
Joined: 07 Apr 2021, 18:38

Can someone add in a simple toggle key for this script please

07 Apr 2021, 18:45

Im an extreme noob when it comes to this. Can somebody please add in F12 as a toggle key for this script so that I can just copy and paste the whole thing please. It would be much appreciated!!

Code: Select all

~LButton::
While GetKeyState("LButton","P")
{
Send, {Alt}
Sleep 700
}
Return
[Mod edit: [code][/code] tags added.]
User avatar
mikeyww
Posts: 26931
Joined: 09 Sep 2014, 18:38

Re: Can someone add in a simple toggle key for this script please

07 Apr 2021, 19:42

Code: Select all

F12::
alty := !alty
SoundBeep, 1000 + 500 * alty
Return

#If alty
~LButton::
While GetKeyState("LButton","P")
{
 Send {Alt}
 Sleep, 700
}
Return
#If

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 84 guests