help meee
Posted: 01 May 2017, 01:02
sometimes this script gives error , which is sometimes when i click capslock , it will spam the script without stopping.how can i solve this problem ??
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , H
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
$*Capslock::
{ SendInput, {RButton Down}
SetTimer, Spam, 0 ;1000 = 1sec.
KeyWait, Capslock ;Wait for b up first, then Right Mouse will come up.
SetTimer, Spam, OFF
SendInput, {RButton Up}
}
return
Spam:
Send {3 Down}
Sleep 1
Loop
{
if not GetKeyState("Capslock","P")
break
Send {3 Up}
Sleep 1
Send {Space Down}
Sleep 1
Send {Space Up}
Sleep 1
Send {d down}
Sleep 1
Send {Space Down}
Sleep 1
Send {d Up}
Sleep 1
Send {Space Up}
Sleep 1
Send {3 Up}
Sleep 1
}
return
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , H
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
$*Capslock::
{ SendInput, {RButton Down}
SetTimer, Spam, 0 ;1000 = 1sec.
KeyWait, Capslock ;Wait for b up first, then Right Mouse will come up.
SetTimer, Spam, OFF
SendInput, {RButton Up}
}
return
Spam:
Send {3 Down}
Sleep 1
Loop
{
if not GetKeyState("Capslock","P")
break
Send {3 Up}
Sleep 1
Send {Space Down}
Sleep 1
Send {Space Up}
Sleep 1
Send {d down}
Sleep 1
Send {Space Down}
Sleep 1
Send {d Up}
Sleep 1
Send {Space Up}
Sleep 1
Send {3 Up}
Sleep 1
}
return