AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hotstrings

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
basta



Joined: 16 Jul 2004
Posts: 7

PostPosted: Fri Jul 16, 2004 2:19 pm    Post subject: Hotstrings Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Jul 16, 2004 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
BoBo
Guest





PostPosted: Sat Jul 17, 2004 4:48 pm    Post subject: Reply with quote

[Russian on-screen, virtual keyboard]

Idea Maybe that'll help Question Exclamation
Back to top
BoBo
Guest





PostPosted: Sat Jul 17, 2004 4:54 pm    Post subject: Reply with quote

[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

PostPosted: Sat Jul 17, 2004 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
basta



Joined: 16 Jul 2004
Posts: 7

PostPosted: Thu Jul 22, 2004 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Sep 05, 2004 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group