Rank: Newbie
Groups: Approved
Joined: 9/25/2020(UTC) Posts: 6 Thanks: 1 times
|
I wrote this AHK script to do some tests: Code:^!a::
SetTimer, checkModifiers, 100
Return
checkModifiers:
Tooltip % modifiers()
Return
modifiers()
{
GetKeyState, varLWIN, LWIN
GetKeyState, varLWINP, LWIN, P
GetKeyState, varRWIN, RWIN
GetKeyState, varRWINP, RWIN, P
GetKeyState, varLSHIFT, LSHIFT
GetKeyState, varLSHIFTP, LSHIFT, P
GetKeyState, varRSHIFT, RSHIFT
GetKeyState, varRSHIFTP, RSHIFT, P
GetKeyState, varLALT, LALT
GetKeyState, varLALTP, LALT, P
GetKeyState, varRALT, RALT
GetKeyState, varRALTP, RALT, P
GetKeyState, varLCTRL, LCTRL
GetKeyState, varLCTRLP, LCTRL, P
GetKeyState, varRCTRL, RCTRL
GetKeyState, varRCTRLP, RCTRL, P
; -----------------------------
GetKeyState, varLBUTTON, LBUTTON
GetKeyState, varLBUTTONP, LBUTTON, P
GetKeyState, varMBUTTON, MBUTTON
GetKeyState, varMBUTTONP, MBUTTON, P
GetKeyState, varRBUTTON, RBUTTON
GetKeyState, varRBUTTONP, RBUTTON, P
Return % "Key [L] [P]`r`n"
. "LWIN [" . varLWIN . "] [" . varLWINP . "]`r`n"
. "RWIN [" . varRWIN . "] [" . varRWINP . "]`r`n"
. "LSHIFT [" . varLSHIFT . "] [" . varLSHIFTP . "]`r`n"
. "RSHIFT [" . varRSHIFT . "] [" . varRSHIFTP . "]`r`n"
. "LALT [" . varLALT . "] [" . varLALTP . "]`r`n"
. "RALT [" . varRALT . "] [" . varRALTP . "]`r`n"
. "LCTRL [" . varLCTRL . "] [" . varLCTRLP . "]`r`n"
. "RCTRL [" . varRCTRL . "] [" . varRCTRLP . "]`r`n"
; -----------------------------
. "LBUTTON [" . varLBUTTON . "] [" . varLBUTTONP . "]`r`n"
. "MBUTTON [" . varMBUTTON . "] [" . varMBUTTONP . "]`r`n"
. "RBUTTON [" . varRBUTTON . "] [" . varRBUTTONP . "]"
}
I can confirm that when triggering the action I mentioned above (Ctrl + Alt + Space), then the script reports that Alt and Ctrl modifiers are pressed. I have to manually press them to put them back into the "Unpressed" state. Unfortunately this is a serious bug which actually doesn't allow me to use the tool. I tried to run it on a different Windows 10 PC, and this problem didn't occur, strangely. I have no problem running further tests.
|