My script wont stop Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Masky
Posts: 7
Joined: 28 Apr 2017, 07:11

My script wont stop  Topic is solved

19 Jun 2017, 05:50

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
User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: My script wont stop

19 Jun 2017, 06:42

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.
Masky
Posts: 7
Joined: 28 Apr 2017, 07:11

Re: My script wont stop

19 Jun 2017, 07:02

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ccqcl, Descolada and 184 guests