Thanks for all the suggestion.
I try to explain more in detail what I want to do.
In the Italian language I need the following letters with accent:
è à ò ì ù
please note they are different from
e` a` o` i` u`
which are wrong by definition of italian accent.
Now I need to use a german keyboards (long story short), which is really well done and has a wonderful dedicatd accent key which works as explained in my post above.
By default in a German keyboard to write this accent letter:
è
I need to press two key, SHIFT and accent key, at the same time, and
then the letter I want with accent, in the case "e"
Example:
if I press
1) SHIFT+ACCENT KEY[SC00D]
2) e
I got:
è
Now I successfully removed the need to press the SHIFT Key with the swap SC00D code in the first post. After that here what I need to type
1) ACCENT KEY[SC00D]
2) e
to get:
è
as you can see I don't need to press SHIFT anymore, which is fantastic.
Also the other case works:
1) SHIFT+ACCENT KEY[SC00D]
2) e
I get:
é
which is again what I want since you need less "é" accent than "è" ones in the italian language.
This swap code is also perfectly explained in the Autohotkey key history:
DD 00D h d 1.31 ´
A0 02A i d 0.00 LShift
DD 00D i d 0.00 ´
DD 00D i u 0.00 ´
A0 02A i u 0.00 LShift
DD 00D s u 0.08 ´
45 012 # d 0.00 e
45 012 u 0.06 e
first raw Autohotkey detects the Key Hook with accent key SC00D and triggers the hook, the next 4 raws are the send of " SHIFT+ACCENT KEY[SC00D]", the next raw is the suppresion of the key SC00D pressed on the beginning and then finally the press of letter "e". What is obscure to me is that I got exactely the same output in the case of the hotstring definition but the result is different: "è" is not equal to "e".
Rohwedder wrote: ↑11 Apr 2019, 12:25
Hallo,
I use a german keyboard, but your swapp don't work here.
Are you sure you understood what is my goal? Maybe this:
could help to understand what is going on in your case.
Klarion wrote:
try not to use bare scan code to trigger your Hotkeys if possible
that could be a root of unexpected problem
Why and when? I need more information on that which could explain the issue.