I have found what is the difference. As I wrote, it works Yesterday for a while. It is depends on keyboard layout. Yet what is even more weird to me is fact, like historical values in column Key of KeyHistory changes every single time I switch layout.
with ENG-US:
Code: Select all
Window: C:\Users\pospa\OneDrive\Desktop\Test.ahk - AutoHotkey v1.1.34.03
Keybd hook: yes
Mouse hook: no
Enabled Timers: 0 of 0 ()
Interrupted threads: 0
Paused threads: 0 of 0 (0 layers)
Modifiers (GetKeyState() now) =
Modifiers (Hook's Logical) =
Modifiers (Hook's Physical) =
Prefix key is down: no
NOTE: To disable the key history shown below, add the line "#KeyHistory 0" anywhere in the script. The same method can be used to change the size of the history buffer. For example: #KeyHistory 100 (Default is 40, Max is 500)
The oldest are listed first. VK=Virtual Key, SC=Scan Code, Elapsed=Seconds since the previous event. Types: h=Hook Hotkey, s=Suppressed (blocked), i=Ignored because it was generated by an AHK script, a=Artificial, #=Disabled via #IfWinActive/Exist, U=Unicode character (SendInput).
VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
A2 01D d 29.25 LControl Program Manager
76 041 s d 0.27 F7
76 041 h u 0.08 F7
5B 15B i d 0.00 LWin
A2 01D i u 0.00 LControl
37 008 i d 0.00 ý
37 008 i u 0.00 ý
5B 15B i u 0.02 LWin
A2 01D i d 0.00 LControl
A2 01D u 0.11 LControl Test.ahk - Visual Studio Code
A2 01D d 7.22 LControl
76 041 s d 0.25 F7
76 041 h u 0.09 F7
5B 15B i d 0.00 LWin
A2 01D i u 0.00 LControl
A0 02A i d 0.00 LShift
37 008 i d 0.00 ý
37 008 i u 0.00 ý
5B 15B i u 0.02 LWin
A0 02A i u 0.00 LShift
A2 01D i d 0.00 LControl
A2 01D u 0.20 LControl
78 043 d 4.75 F9
78 043 u 0.06 F9 C:\Users\pospa\OneDrive\Desktop\Test.ahk - AutoHotkey v1.1.34.03
74 03F d 60.20 F5
Press [F5] to refresh.
with CES-CZ:
Code: Select all
Window: C:\Users\pospa\OneDrive\Desktop\Test.ahk - AutoHotkey v1.1.34.03
Keybd hook: yes
Mouse hook: no
Enabled Timers: 0 of 0 ()
Interrupted threads: 0
Paused threads: 0 of 0 (0 layers)
Modifiers (GetKeyState() now) =
Modifiers (Hook's Logical) =
Modifiers (Hook's Physical) =
Prefix key is down: no
NOTE: To disable the key history shown below, add the line "#KeyHistory 0" anywhere in the script. The same method can be used to change the size of the history buffer. For example: #KeyHistory 100 (Default is 40, Max is 500)
The oldest are listed first. VK=Virtual Key, SC=Scan Code, Elapsed=Seconds since the previous event. Types: h=Hook Hotkey, s=Suppressed (blocked), i=Ignored because it was generated by an AHK script, a=Artificial, #=Disabled via #IfWinActive/Exist, U=Unicode character (SendInput).
VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
A2 01D d 29.25 LControl Program Manager
76 041 s d 0.27 F7
76 041 h u 0.08 F7
5B 15B i d 0.00 LWin
A2 01D i u 0.00 LControl
37 008 i d 0.00 ý
37 008 i u 0.00 ý
5B 15B i u 0.02 LWin
A2 01D i d 0.00 LControl
A2 01D u 0.11 LControl Test.ahk - Visual Studio Code
A2 01D d 7.22 LControl
76 041 s d 0.25 F7
76 041 h u 0.09 F7
5B 15B i d 0.00 LWin
A2 01D i u 0.00 LControl
A0 02A i d 0.00 LShift
37 008 i d 0.00 ý
37 008 i u 0.00 ý
5B 15B i u 0.02 LWin
A0 02A i u 0.00 LShift
A2 01D i d 0.00 LControl
A2 01D u 0.20 LControl
78 043 d 4.75 F9
78 043 u 0.06 F9 C:\Users\pospa\OneDrive\Desktop\Test.ahk - AutoHotkey v1.1.34.03
74 03F d 60.20 F5
Press [F5] to refresh.
How come, historical data are changing in KeyHistory after switching layout, please? Btw WinKey+7 (or ý, which is on 7 with CES layout) works as it should, yet not with AHK. And I am not running any other tool for keyboard and only one AHK script like this:
Code: Select all
^F8 Up::
Send, {LWin down}
sleep 20
send {7 down}
send {7 up}
send, {LWin up}
return
^F7 Up::Send #7
^Numpad7 Up:: Send #7
F9:: KeyHistory