Need help adding toggle Topic is solved

Ask gaming related questions (AHK v1.1 and older)
SpiritEnvy

Need help adding toggle  Topic is solved

10 Mar 2018, 18:46

~$LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 50 ; milliseconds
}
return



So basically i keep trying to add a toggle bound to my capslock key for this program. However no matter what i do it doesn't seem to work.. When i click the capslock i would get 1 mouse click/hold and then i would have to click my capslock again to be able to autoclick again.. Need help/suggestions on what i could do here/ Thanks any help is much appreciated!
Rohwedder
Posts: 7672
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help adding toggle

11 Mar 2018, 01:46

Hallo,
try:

Code: Select all

~$LButton::
While GetKeyState("LButton","P")
And !GetKeyState("CapsLock","T") {
	Click
	Sleep 50 ; milliseconds
}
return
Spirit Envy
Posts: 1
Joined: 10 Mar 2018, 18:40

11 Mar 2018, 14:01

Thank you very much sir you sloved my problem and made my life 100 % time easier! I really appreciate it!

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 62 guests