trying to make a script, i want to toggle this script using F8:
~$LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 50 ; milliseconds
}
return
Could not make it work, this is what i tried:
toggle = 0
#MaxThreadsPerHotkey 2
F8::
Toggle := !Toggle
While Toggle{
~$LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 50 ; milliseconds
}
return
}
I am a beginner and would be happy if annyone could help me make the script work
Help! toggle hold left to spam
-
- Posts: 4
- Joined: 21 Apr 2017, 16:26
Re: Help! toggle hold left to spam
Try this:
I hope that helps.
Code: Select all
Toggle := 0
F8:: Toggle := !Toggle
$LButton::
If Toggle
While GetKeyState("LButton", "P") {
Click
Sleep 50 ; milliseconds
}
Return
-
- Posts: 4
- Joined: 21 Apr 2017, 16:26
Re: Help! toggle hold left to spam
this works, but not how i want it too, if i toggle the spammer i can't left-click with my mouse. Is it anny way to fix this.
I basically want to toggle between normal and spam left-click
I basically want to toggle between normal and spam left-click
Re: Help! toggle hold left to spam
I took out the ~, sorry
Code: Select all
Toggle := 0
F8:: Toggle := !Toggle
~$LButton:: ; <<<< here
If Toggle
While GetKeyState("LButton", "P") {
Click
Sleep 50 ; milliseconds
}
Return
-
- Posts: 4
- Joined: 21 Apr 2017, 16:26
Re: Help! toggle hold left to spam
Thank you so much Wolf_II, works great!
Re: Help! toggle hold left to spam
Just wanted to say thanks to the person that wrote this (both the help and the solution) I had been searching for hours trying to find exactly this! (even joined the discord channel, which didn't really help much...)
my script-fu is weak at best...
Who is online
Users browsing this forum: No registered users and 47 guests