Warum bleibt LCtrl nach ~LCtrl Up:: (zuerst) logisch gedrückt?
Code: Select all
SetTimer,State,200,Keys:="q LCtrl"
State: ;Keys separated with space or tab
For all,Key in StrSplit(Keys,[A_Space,A_Tab])
Text.=Trim(Key)>""?"`n" Key "`t" (GetKeyState(Key)?"down":"up"):
MouseGetPos, MX, MY ;separated from another ToolTip
ToolTip,% SubStr(Text,2),MX+16,MY+32,4,Text:=""
Return
q::
IF GetKeyState(A_ThisHotkey)
Return
SoundBeep, 4000, 20
Send, {q Down}
Return
~q Up::SoundBeep, 2000, 20
LCtrl::
IF GetKeyState(A_ThisHotkey)
Return
SoundBeep, 1000, 20
Send, {LCtrl Down}
Return
~LCtrl Up::
SoundBeep, 500, 20
Sleep, 2000
Send, {LCtrl Up}
Return