i need it exactly below settimer coz i need it to smap like qqqqw / if i will set it in "pme" it will sync and spam qwqw etc / in future there will be some imagesearh functions (pme sections) and i need to spam q without adding it into "pme"
Code: Select all
#SingleInstance Force
#Persistent
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 3
SetMouseDelay, -1
SetControlDelay, -1
Process, Priority, , H
SetBatchLines, -1
~CapsLock::
If GetKeyState("CapsLock", "T")
Settimer,pme, 40
loop
{
send q
sleep 40
}
If !GetKeyState("Capslock", "T")
Settimer,pme, Off ; need to stop it here with pme
Return
pme:
send w
sleep 60
return
x::
Reload