Swithcing Keyboard Layouts

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
wdingman
Posts: 2
Joined: 17 May 2017, 13:37

Swithcing Keyboard Layouts

17 May 2017, 13:45

Hi, I am brand new, and maybe no one wants to help, but here goes:

I would like a script that allows me to select the input language/keyboard layout that I want by pressing the key combination CTRL (left hand side) plus a number on the numeric keypad. That is:

CTRL+1 = English
CTRL+2 = Greek
CTRL+3 = Albanian
CTRL+4 = French
CTRL+5 = German.

Is this possible?

Thank you
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Swithcing Keyboard Layouts

17 May 2017, 16:10

I guess yes. Some pros in here might like to shed some light on this:

https://msdn.microsoft.com/en-us/librar ... s.85).aspx

ActivateKeyboardLayout
LoadKeyboardLayout
UnloadKeyboardLayout

https://www.autoitscript.com/autoit3/do ... gCodes.htm
donovv
Posts: 108
Joined: 15 Apr 2017, 21:06

Re: Swithcing Keyboard Layouts

17 May 2017, 16:27

windows actually has this built in(atleast windows 7) go control panel > clock,language,and region > change keyboards or other input methods
Image Image
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Swithcing Keyboard Layouts

17 May 2017, 17:18

@ donovv, thx for sharing this :)

And here's what I've done while couchpotato-ing in front of a TV ...
Spoiler
wdingman
Posts: 2
Joined: 17 May 2017, 13:37

Re: Swithcing Keyboard Layouts

24 May 2017, 11:31

Re. BoBo, the script does not appear to work.
Re. donovv, Windows 10 won't let me make the hotkeys work with the number pad, and I can't use control for all of the hotkey.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Swithcing Keyboard Layouts

24 May 2017, 14:58

wdingman wrote:Re. BoBo, the script does not appear to work.
Re. donovv, Windows 10 won't let me make the hotkeys work with the number pad, and I can't use control for all of the hotkey.
OK, you've got rid of the MsgBox MsgBox Send, {CTRL}{SHIFT} to get this: Send, {CTRL}{SHIFT} what might need to be tweaked to that Send, {CTRL}+{SHIFT} ...??? :silent:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Insaid and 254 guests