| View previous topic :: View next topic |
| Author |
Message |
basta
Joined: 16 Jul 2004 Posts: 7
|
Posted: Fri Jul 16, 2004 2:19 pm Post subject: Hotstrings |
|
|
For example, suppose this:
::r::return
return
When one types in Russian language, this hotstring is fired.
It would be cool to have a chance don't run this Hotstring during typing in russian(or any other language except english) language |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Jul 16, 2004 4:19 pm Post subject: |
|
|
That's interesting. Since I have very little understand of how international characters are actually seen by the keyboard hook, perhaps you can help me by opening the script's main window, typing some Russian characters that cause the R hotstring to be triggered, and then choosing View > Key history from the menu. If you could copy & paste that into an e-mail to support@autohotkey.com it should help me understand it better so that maybe I can fix it.
Specifically, I'm interested in which Russian characters are falsely detected by AutoHotkey as the letter R. Thanks for reporting this. |
|
| Back to top |
|
 |
BoBo Guest
|
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sat Jul 17, 2004 4:54 pm Post subject: |
|
|
[Cyrillic in Windows]
Introduction
Cyrillic Fonts & Encodings
Russian Keyboard: standard and phonetic
On-screen keyboard
Russian in Browsers/Mail/News
Unicode-related issues: MS Word; Printing; Copy/Paste
Full Russification - Russian programs/file names
For developers: Cyrillic HTML
For developers: multilingual HTML Encoding conversion
More Cyrillization (Q&A, links) |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Jul 17, 2004 5:42 pm Post subject: |
|
|
Thanks for the links.
| Quote: | | It would be cool to have a chance don't run this Hotstring during typing in russian(or any other language except english) |
To type in Russian, you have to change your keyboard layout with a utility program? If so, I'm unclear on why AutoHotkey doesn't automatically adjust for that, since it uses ToAscii() which is supposed to obey the current keyboard layout. I will research it further. |
|
| Back to top |
|
 |
basta
Joined: 16 Jul 2004 Posts: 7
|
Posted: Thu Jul 22, 2004 6:37 am Post subject: |
|
|
| Quote: | | To type in Russian, you have to change your keyboard layout with a utility program? |
Switching Russian <-> English is made by using standart windows feature (By pressing Alt-Shift or Ctrl-Shift or choosing apropriate language in Language bar). |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Sep 05, 2004 3:44 pm Post subject: |
|
|
basta e-mailed me that the following proposed solution seemed to work for him:
I think I might know the reason for this behavior. Your original issue was: "suppose ::r::return ... When one types in Russian language, this hotstring is fired. It would be cool to have a chance don't run this Hotstring during typing in russian(or any other language except english) language"
When you switch languages using Alt-Shift, Ctrl-Shift, or the language bar, I believe it only switches language for the active window. Thus, the script itself is still using the original language (probably the default language for your username).
To switch the script to a different language, double-click its tray icon then switch languages while its main window is active.
If the above is correct, it would explain why the "r" hotstring fires when you type the "k" in Russian: it's because the script SEES it as the letter "r". But if you also switch the script to Russian, hopefully it will see it correctly as the Russian "k" character and the hotstring will not fire. |
|
| Back to top |
|
 |
|