Dyalog / APLAutoHotKey

Application to generate AutoHotKey scripts to enable APL glyph keyboard input
MIT License
2 stars 2 forks source link

autohotkey script on left and right control incorrectly also consumes ctrl+alt #34

Open dyavc opened 1 year ago

dyavc commented 1 year ago

I am using left control and right control to type apl keys

I have some MS Windows shortcuts on ctrl+alt+j and ctrl+alt+k

They don't work if using autohotkey as ctrl+alt+j gives a ∘ like ctrl+j

myfiles.zip

rikedyp commented 1 year ago

Indeed seems to be documented https://www.autohotkey.com/docs/v2/Hotkeys.htm#combo

Currently we produce script segments like:

   Ctrl & SC024::
{ if GetKeyState("Shift","P") {
  Send "⍤"
} else {
  Send "∘"
}}

The use of ampersand & makes these "custom combinations" which consume the keys involved.

If instead we used the symbols:

^SC024:: Send "∘"
^+SC024:: Send "⍤"

then the Ctrl signal won't be consumed and your original shortcuts should stay in tact.

Will look into potential repercussions of using the symbols scheme. Early versions of APLAutoHotKey did use it. The original reason for moving away is because we were using Unicode symbols to denote normal key presses and got conflicts in some circumstances, but now we are using scan codes (SCXXX) so those issues might not longer be relevant.