AutoHotkey Community

It is currently May 27th, 2012, 9:06 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: February 15th, 2006, 2:29 pm 
Offline

Joined: January 19th, 2006, 4:16 pm
Posts: 15
Location: Heidelberg
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2006, 2:33 pm 
Offline

Joined: December 22nd, 2005, 7:43 pm
Posts: 245
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2006, 5:13 pm 
Offline

Joined: January 19th, 2006, 4:16 pm
Posts: 15
Location: Heidelberg
well, i meant "shortcut" as in keyboard combination, not a ".lnk" file


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2006, 5:21 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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".


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: BrandonHotkey, hyper_, tomoe_uehara and 74 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