problems with diacritics
Posted: 23 Mar 2021, 16:03
Hello all! I'm a new AHK user and this is my first post.
INTRODUCTION
I write mostly in French, so I have to use diacritics (accented characters), such as à, é, è, ï, ô. With my keyboard layout, the way to write "à," for example, is by pressing the acute accent key (SC028, see picture attached), then the "a".
I'm using AHK v. 1.133.06, 32-bits on Windows 10, 64-bits. Everything is up-to-date.
PROBLEM
When I add hotstrings to a .ahk files, I can't use my accent key as before. So if I do the same motion than explained above, instead of getting "à", I get "``a". I noticed that I can have a ton of shortcuts without problem. But when I add a hotstring, it starts doing it.
MY TROUBLESHOOTING
1. I learned that the .ahk file has to be UTF-8, so I did that.
2. I closed all my running script and created another one with only the classic "::btw::by the way". When it is activated, the same problem arrives. When it is not, everything is fine.
3. I found this thread (https://www.autohotkey.com/boards/viewtopic.php?t=63557), and the problem seemed similar to mine. I took the code below and tested it.
At first, it made everything work, except in Microsoft Word, where it so happens I have to spend most of my time. But shortly after that, it stopped working, so my problem is again, global.
----
Please help me. I'd rather find a real and elegant solution than to start having hotstrings for "``a" and the like... if it's at all possible.
INTRODUCTION
I write mostly in French, so I have to use diacritics (accented characters), such as à, é, è, ï, ô. With my keyboard layout, the way to write "à," for example, is by pressing the acute accent key (SC028, see picture attached), then the "a".
I'm using AHK v. 1.133.06, 32-bits on Windows 10, 64-bits. Everything is up-to-date.
PROBLEM
When I add hotstrings to a .ahk files, I can't use my accent key as before. So if I do the same motion than explained above, instead of getting "à", I get "``a". I noticed that I can have a ton of shortcuts without problem. But when I add a hotstring, it starts doing it.
MY TROUBLESHOOTING
1. I learned that the .ahk file has to be UTF-8, so I did that.
2. I closed all my running script and created another one with only the classic "::btw::by the way". When it is activated, the same problem arrives. When it is not, everything is fine.
3. I found this thread (https://www.autohotkey.com/boards/viewtopic.php?t=63557), and the problem seemed similar to mine. I took the code below and tested it.
Code: Select all
SC028::
Input, Key, L1
Send {SC028}%Key%
Return
----
Please help me. I'd rather find a real and elegant solution than to start having hotstrings for "``a" and the like... if it's at all possible.