Here is an example video showing this issue:
Another problem (which I didn't show in the video) is that when I pause the script while a key is being held down for 500 milliseconds, that key stays held down. This only happens in games though. Didn't seem to do it on Notepad. Anyway, I just want to be able to press one hotkey to release all keys that are currently being held down and then pause the script.
EDIT: Forgot to include the script I'm using. My apologies, here it is:
Code: Select all
Pause
#NoEnv
#MaxHotkeysPerInterval 999999999999
#HotkeyInterval 999999999999
#KeyHistory 0
ListLines Off
Process, Priority, , H
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
SetTimer, PressKey, 0
PressKey:
Send, {w Down}
DllCall("Sleep","UInt",500)
Send, {w Up}
Send, {d Down}
DllCall("Sleep","UInt",500)
Send, {d Up}
Send, {s Down}
DllCall("Sleep","UInt",500)
Send, {s Up}
Send, {a Down}
DllCall("Sleep","UInt",500)
Send, {a Up}
return
~$F4::Pause
~$F5::ExitApp