I've been struggling with the probleme below for hours.
I searched the forum and Google but couldn't find any answer to my question.
Watch the following script.
When I use ~*Escape or ~*VK1B (VK1B is the virtual key for the Escape key) for my second hotkey, the script behaves has espected, that is to say, when I press Escape, only the first Msgbox is displayed.
Now, when I use ~*SC001 (SC001 is the scan code for the Escape key) for my second hotkey, strangely , when I press Escape, both the first and second Msgbox are displayed!!
Could anyone tell me why?
Thank you for your time and help.
(I am on Windows 10 with AHK 1.1.23.05)
Code: Select all
#SingleInstance force
Escape::
MsgBox % 1 A_ThisHotkey
Return
~*SC001::
;~*Escape::
;~*VK1B::
MsgBox % 2 A_ThisHotkey
Return