AutoHotkey Community

It is currently May 27th, 2012, 6:18 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: December 1st, 2010, 8:12 am 
Offline

Joined: November 1st, 2005, 4:44 am
Posts: 135
I have the AHK help file active (example), i type "Control c" and what is selected in this window passes on the clipboard - of course.
Now -working on a bilingual greek-english winXP set- i want the same in a script. So i "Send ^c" but it works only if the language on the active AHK help file window happens to be in default english - when the language is in greek it does not work. What is a stupid 'programmer' missing again?

_________________
help to be helped


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2010, 10:49 am 
Offline

Joined: December 23rd, 2006, 6:02 pm
Posts: 424
Location: Russia
Try if this will work better:
Code:
Send, ^{Ins}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2010, 4:51 pm 
Offline

Joined: November 1st, 2005, 4:44 am
Posts: 135
YMP, thank you very much! So simple.
It works - and the same holds true with +{Ins}.
Any explanation why it works that way, please? :)

_________________
help to be helped


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2010, 7:53 am 
Offline

Joined: December 23rd, 2006, 6:02 pm
Posts: 424
Location: Russia
Because the name of the Ins key is the same for all input languages. While "character" keys change their names when you switch to another language. To work around this, you can also use virtual key codes instead of characters.
Code:
Send, ^{vk43}   ; Ctrl-C
Send, ^{vk56}   ; Ctrl-V


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], hd0202 and 50 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group