I asked a question about the Autohotkey script that I use for emacs (in Cygwin) to reassign the Ctrl and Alt keys. Here's a question: qaru.site/questions/157634 / ... .
One way to test my script is to open emacs and use a function C-h kthat shows the documentation for the key sequence. This allows me to confirm if Autohotkey is doing what I expect.
However, it seems that there are some complications, for example, it may be that the Cygwin terminal does not allow the sequence to C-M-SPC“go through” to emacs, so emacs actually receives instead C-SPC.
My question is this: Does Autohotkey have its own test tool that shows you what Autohotkey receives and sends when you press a few keyboard shortcuts? If so, then I can confirm that my script is working fine or not, and then decide if this is some other problem that causes me problems getting key sequences through emacs.
Update based on the answer suggested by Armin
The Armin sentence below shows what I see on the AHK browse screen after doing the following:
- click in the Cygwin window to activate it (I already have emacs),
- press LeftAlt+ h, then kwhich, as I know, AHK will convert to
C-h k, is "tell me what the following key sequence means" in emacs, - emacs Left Win + Left Alt + SPACE,
- ., emacs
C-M-@ ( C-M-SPC ), - AHK F5.
AHK ( , ):
VK SC Type Up/Dn Elapsed Key Window
----------------------------------------------------------
A4 038 h d 4.18 LAlt /cygdrive/c/...
A4 038 i u 0.00 LAlt
A2 01D i d 0.00 LControl
48 023 d 0.09 H
48 023 u 0.09 H
A4 038 h u 0.05 LAlt
A2 01D i u 0.00 LControl
4B 025 d 1.22 K
4B 025 u 0.06 K
A4 038 h d 1.12 LAlt
A4 038 i u 0.00 LAlt
A2 01D i d 0.00 LControl
5B 15B h d 0.02 LWin
A4 038 i d 0.00 LAlt
20 039 d 0.19 Space
20 039 u 0.06 Space
5B 15B h u 0.16 LWin
A4 038 i u 0.00 LAlt
A4 038 h u 0.00 LAlt
A2 01D i u 0.01 LControl
74 03F d 1.90 F5 C:\...\AutoHotkey.ahk ...
.
, , AHK Left Alt + Left Win + SPACE C-M-SPC.
, , .
LAlt , down LCtrl:
A4 038 h d 4.18 LAlt /cygdrive/c/...
A4 038 i u 0.00 LAlt
A2 01D i d 0.00 LControl
( , u of LAlt - AHK , "i = , AHK script" ).
h:
48 023 d 0.09 H
48 023 u 0.09 H
emacs C-h.
LAlt, k.
A4 038 h u 0.05 LAlt
A2 01D i u 0.00 LControl
4B 025 d 1.22 K
4B 025 u 0.06 K
Emacs " ".
LAlt
, AHK d LCtrl ( , "" u of LAlt , ), LWin AHK d LAlt, SPACE:
A4 038 h d 1.12 LAlt
A4 038 i u 0.00 LAlt
A2 01D i d 0.00 LControl
5B 15B h d 0.02 LWin
A4 038 i d 0.00 LAlt
20 039 d 0.19 Space
, , LAlt + LWin + SPACE, , AHK u Space LAlt LCtrl:
20 039 u 0.06 Space
5B 15B h u 0.16 LWin
A4 038 i u 0.00 LAlt
A4 038 h u 0.00 LAlt
A2 01D i u 0.01 LControl
, AHK , :
74 03F d 1.90 F5 C:\...\AutoHotkey.ahk ...
, AHK script , .
, u LAlt, .
?