| View previous topic :: View next topic |
| Author |
Message |
rh
Joined: 19 Jan 2006 Posts: 15 Location: Heidelberg
|
Posted: Wed Feb 15, 2006 1:29 pm Post subject: change input mode (german/chinese) with AHK ??? |
|
|
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 |
|
 |
Greg
Joined: 22 Dec 2005 Posts: 245
|
Posted: Wed Feb 15, 2006 1:33 pm Post subject: |
|
|
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 |
|
 |
rh
Joined: 19 Jan 2006 Posts: 15 Location: Heidelberg
|
Posted: Wed Feb 15, 2006 4:13 pm Post subject: |
|
|
| well, i meant "shortcut" as in keyboard combination, not a ".lnk" file |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Fri Feb 17, 2006 4:21 am Post subject: |
|
|
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 |
|
 |
|