thanks in advance for your valuable and diligent assistance !
I have a little Qwerty laptop and I'm trying to remap unaccented vowels into accented ones using AHK (AutohotKey).
ISSUE #1:
For example, for the letter e, if I press "e" and "right arrow" altogether, I should get "é"; and if I do the same combination with Capslock activated, I should get "É". So I used the following script:
e & Right::
if GetKeyState("CapsLock", "t")
send É
else
send é
return
It works !... Except that the "e" key is no longer functional after this.
REQUEST #1:
How do you preserve the "e" key in the previous script ?
ISSUE #2:
Instead of repeating the same (corrected) previous script for each vowel to be accentuated in upper and lower case (all vowels {a,e,i,o,u}) ...
REQUEST #2:
Can you create for me an optimized generic script, using this set of vowels as variables, such as:
If Capslock is activated and I simultaneously press a Vowel and:
- LEFT => this Vowel in Upper-case with Acute Accent (')
- RIGHT => this Vowel in Upper-case with Grave Accent (`)
- UP => this Vowel in Upper-case with Circumflex Accent (ˆ)
- DOWN => this Vowel in Upper-case with Tremae/Diaeresis Accent (¨)
If Capslock is not activated and I simultaneously press a vowel and:
- LEFT => this Vowel in Lower-case with Acute Accent (')
- RIGHT => this Vowel with Grave Accent (`)
- UP => this Vowel in Lower-case with Circumflex Accent (ˆ)
- DOWN => this Vowel in Lower-case with Tremae/Diaeresis Accent (¨)
My initial goal was to use my QWERTY keyboard as-is while being able to quickly generate accented vowels with a 2-key hotkeys (a Vowel & an Arrow Key). After digesting the AHK v2 documentation, I wrote the following script which even exceeds my expectations...