IM trying to make spam script , it working but i cant stop it
MY CODE:
spam:=0
Numpadleft::
spam:=!spam
if (spam = 1){
loop
{
send {NumpadMult}
Sleep,35
Send {NumpadMult}
sleep,35
if (spam = 0) {
break
}
}
}
return
So if you can help please
My script wont stop Topic is solved
Re: My script wont stop
The hotkey can only run when the previous one is finished. #MaxthreadsperHotkey changes that.
Code: Select all
spam:=0
#MaxthreadsperHotkey 2 ; Allows two threads of per hotkey.
Numpadleft::
spam:=!spam
if (spam = 1){
loop
{
send {NumpadMult}
Sleep,35
Send {NumpadMult}
sleep,35
if (spam = 0) {
break
}
}
}
return
#MaxthreadsperHotkey 1 ; reset to default value.
Re: My script wont stop
Thank you alot , workingDyaTactic wrote:The hotkey can only run when the previous one is finished. #MaxthreadsperHotkey changes that.Code: Select all
spam:=0 #MaxthreadsperHotkey 2 ; Allows two threads of per hotkey. Numpadleft:: spam:=!spam if (spam = 1){ loop { send {NumpadMult} Sleep,35 Send {NumpadMult} sleep,35 if (spam = 0) { break } } } return #MaxthreadsperHotkey 1 ; reset to default value.