- If the Shift, Alt or Control key is pressed, un-press the key even if it is being physically pressed on the keyboard.
I made this script:
Code: Select all
#Persistent
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance, Force
SetTimer, label, on
label:
While (GetKeyState("Shift", "P") || GetKeyState("Control", "P") || GetKeyState("Alt", "P")) {
Send, {Shift Up}
Send, {Ctrl Up}
Send, {Alt Up}
ToolTip, Key is Pressed
}
return
However, I am having the following problem, when the key is being physically pressed (keeping it pressed) the command "Send, {[KEY] Up}" un-press the key for a brief moment but then it is pressed again.
What can I do to fix this?