I am re-mapping the Qwerty layout to Dvorak using AHK because I can't install custom keyboard layouts on this computer. Most of my remapping just follows a simple pattern, and this works well:
:*:n::b ; remap "n" to "b". This automagically also works for "N"-->"B".
:*:,::w ; remap comma to lowercase "w".
:*:;::W ; uppercase comma must be specifically coded.
Problem: The Danish layout has three special characters, and these won't trigger a remapping. The problem is (probably?) the same for all three keys, so let's just look at one of them, the "a-ring" in the top row.
I've tried several trigger variations but the problem seems to be that AHK in some cases ignores the trigger and just outputs the physical key. Notably, the entire remapping script seems to become suspended after this, but starts working again after I suspend&resume the script. There are no warnings or errors, and other scripts still work.
(Of course I'm only trying one of these at a time, but here they are all shown, not commented out.)
:*:å::< ;-- erroneously still produces "å".
:*:Å::> ;-- erroneously still produces "Å".
:*C:å::< ;-- erroneously still produces "å".
:*C:Å::> ;-- erroneously still produces "Å".
or it will balk at the trigger definition in the script:
å::send < ;-- Ã¥ invalid hotkey.
Å::send > ;-- Ã… invalid hotkey.
{ASC 0229}::send < ;-- ASC 0229} invalid hotkey.
{ASC 0197}::send > ;-- ASC 0197} invalid hotkey.
How should the trigger be formulated, in order to capture these keys?