need help making this script toggable

Ask gaming related questions (AHK v1.1 and older)
spfd
Posts: 2
Joined: 18 May 2021, 21:08

need help making this script toggable

Post by spfd » 18 May 2021, 21:12

Code: Select all

Lbutton::
click
sleep,0.000000000000000000000000001
click
sleep,0.000000000000000000000000001
click
sleep,0.000000000000000000000000001
click
sleep,0.000000000000000000000000001
click
sleep,0.000000000000000000000000001
click
sleep,0.000000000000000000000000001
click
[Mod edit: [code][/code] tags added.]
I'm trying to make the script above toggable

spfd
Posts: 2
Joined: 18 May 2021, 21:08

Re: need help making this script toggable

Post by spfd » 18 May 2021, 21:14

to be specific I want it to be toggleable when I hit ` this key

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: need help making this script toggable

Post by mikeyww » 19 May 2021, 05:43

Code: Select all

`::
on := !on
SoundBeep, 1000 + 500 * on
Return
#If on
LButton::
Loop, 6 {
 Click
 Sleep, 0
}
Click
Return
#If
Or:

Code: Select all

`::
on := !on
SoundBeep, 1000 + 500 * on
Return
#If on
LButton::Click, 7
#If

Post Reply

Return to “Gaming Help (v1)”