My script wont stop Topic is solved
Posted: 19 Jun 2017, 05:50
by Masky
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
Re: My script wont stop
Posted: 19 Jun 2017, 06:42
by DyaTactic
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
Posted: 19 Jun 2017, 07:02
by Masky
DyaTactic 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.
Thank you alot , working