CLASS USER
CATEGORY "Keyboard Layout"
POLICY "Keyboard Layout switching"
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Run"
VALUENAME "internat.exe"
VALUEON "internat.exe"
VALUEOFF DELETE
END POLICY
POLICY "Keyboard layout"
KEYNAME "Keyboard Layout\Preload"
PART "Enable Englisch" CHECKBOX
DEFCHECKED
VALUENAME "1"
VALUEON "00000409"
END PART
PART "Enable Farsi" CHECKBOX
VALUENAME "2"
VALUEON "00000429"
END CATEGORY
Code
Country
00000402
Bulgarian
0000041a
Croatian
00000405
Czech
00000406
Danish
00000413
Dutch (Standard)
00000813
Dutch (Belgian)
00000409
English (United States)
00000809
English (United Kingdom)
00001009
English (Canadian)
00001409
English (New Zealand)
00000c09
English (Australian)
00000429
Farsi/Persian (Iran)
0000040b
Finnish
0000040c
French (Standard)
0000080c
French (Belgian)
0000100c
French (Swiss)
00000c0c
French (Canadian)
00000407
German (Standard)
00000807
German (Swiss)
00000c07
German (Austrian)
00000408
Greek
0000040e
Hungarian
0000040f
Icelandic
00001809
English (Irish)
00000410
Italian (Standard)
00000810
Italian (Swiss)
00000414
Norwegian (Bokmal)
00000814
Norwegian (Nynorsk)
00000415
Polish
00000816
Portuguese (Standard)
00000416
Portuguese (Brazilian)
00000418
Romanian
00000419
Russian
0000041b
Slovak
00000424
Slovenian
0000080a
Spanish (Mexican)
0000040a
Spanish (Traditional Sort)
00000c0a
Spanish (Modern Sort)
0000041d
Swedish
0000041f
Turkish
You can find some codes in this registry address: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\DosKeybCodes
Value
Meaning
1
Key Sequence enabled; use LEFT ALT+SHIFT to switch between locales.
2
Key Sequence enabled; use CTRL+SHIFT to switch between locales.
3
Key Sequences disabled.
4
If the default locale is Thai, the accent grave key toggles input locales; otherwise key sequences are disabled.
Patris_70 edited Revision 8. Comment: updated article
M.Abdelhamid edited Revision 6. Comment: Add Tags
Ed Price - MSFT edited Revision 3. Comment: Great article!
Patris_70 edited Revision 1. Comment: completed
Patris_70 edited Original. Comment: completed
Thanks Yagmoth555
Glad to hear :)
Really good article, I used in the past a ugly method for the KB's layout.. like, importing a .reg ([HKEY_CURRENT_USER\Keyboard Layout\Preload]) and a login script that simulate a regionnal setting's change, like that rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:\local.txt".. so alot more good your method :)