foreign char key entry using keyboard hook not releasing keyboard correctly
For my job, I often have to enter accented foreign characters. The normal Windows method is while pressing Alt, typing a numeric code in the numeric keypad with numlock on. But then, you have to make sure your numlock is on, or the result of your typing may be unpredictable! And if you are using a laptop or a tablet with a tablet keyboard, there is no numeric keypad.
What this script does:
It waits for Win-F6 to start capturing numeric keypress events. The pressed keys are not written, the typed characters are queued. When 4 numbers are queued, the corresponding foreign character is sent to the app.
Also there are a lot of characters, and I don't always remember the numeric code I need. So if I press Win-F7, a gui is displayed, it allows me to pick my font, and I can copy the character I need from there and paste it in my running app.
To compile or run the code, you will have to use the beta run/beta compile etc with autoit 18.104.22.168 or better.
And many thanks to Mikell for his help. Enjoy!