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 

change input mode (german/chinese) with AHK ???

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rh



Joined: 19 Jan 2006
Posts: 15
Location: Heidelberg

PostPosted: Wed Feb 15, 2006 1:29 pm    Post subject: change input mode (german/chinese) with AHK ??? Reply with quote

hi!

i would like to map one button on my keyboard to switch between german and chinese input. windows allows to define shortcuts for that, so that would be a way, but the shortcuts windows offers can be nearly not customized. there are exactly 2 possibilites:

shift + LAlt
shift + Ctrl

well, i would like not to set these, they are much too commonly used as parts of other shortcuts. is there any way to switch input mode directly through AHK?

thanks a lot!

regards,
rh
Back to top
View user's profile Send private message
Greg



Joined: 22 Dec 2005
Posts: 245

PostPosted: Wed Feb 15, 2006 1:33 pm    Post subject: Reply with quote

If you already have the shortcut files created, just use ahk to run them.

Code:
^+!r::run, Shortcut


Where Shortcut is the filename you want to run.
Back to top
View user's profile Send private message
rh



Joined: 19 Jan 2006
Posts: 15
Location: Heidelberg

PostPosted: Wed Feb 15, 2006 4:13 pm    Post subject: Reply with quote

well, i meant "shortcut" as in keyboard combination, not a ".lnk" file
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Fri Feb 17, 2006 4:21 am    Post subject: Reply with quote

Although there might be a way with DllCall, I'm not sure which call to use. So you might try a hotkey such as the following:

F1::Send {LAlt down}{Shift}{LAlt up} ; Switch to alternate language (key names must be sent in this format to work).

Pressing F1 would then switch the layout/language of in the active window, assuming you've configured the hotkey in the Control Panel as "LAlt + Shift".
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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