Jump to content

Changing Keyboard Layout


Recommended Posts

Hi everybody

I would require a reg snippet to change the layout of my keyboard from English to Italian to include in my unattended Windows XP SP2 CD.

Do you have any, please?

_BIG_ thanks to anyone.

Bye

Venator

B)

Link to comment
Share on other sites


This is my "regional.inf" file, it removes the English(US) keyboard layout and adds the English(Australia) one:

[Version]
Signature = "$Windows NT$"

[DefaultInstall]
DelReg = Regional.DelReg
AddReg = Regional.AddReg

[Regional.DelReg]
HKCU,"Keyboard Layout"; Removes all current keyboard layouts.

[Regional.AddReg]
; Add Australian regional settings.
HKCU,%INat%,iCountry,%REG_SZ%,"61"
HKCU,%INat%,iCurrDigits,%REG_SZ%,"2"
HKCU,%INat%,iCurrency,%REG_SZ%,"0"
HKCU,%INat%,iDate,%REG_SZ%,"1"
HKCU,%INat%,iDigits,%REG_SZ%,"2"
HKCU,%INat%,iLZero,%REG_SZ%,"1"
HKCU,%INat%,iMeasure,%REG_SZ%,"0"
HKCU,%INat%,iNegCurr,%REG_SZ%,"1"
HKCU,%INat%,iTime,%REG_SZ%,"0"
HKCU,%INat%,iTLZero,%REG_SZ%,"0"
HKCU,%INat%,Locale,%REG_SZ%,"00000C09"
HKCU,%INat%,s1159,%REG_SZ%,"AM"
HKCU,%INat%,s2359,%REG_SZ%,"PM"
HKCU,%INat%,sCountry,%REG_SZ%,"Australia"
HKCU,%INat%,sCurrency,%REG_SZ%,"$"
HKCU,%INat%,sDate,%REG_SZ%,"."
HKCU,%INat%,sDecimal,%REG_SZ%,"."
HKCU,%INat%,sLanguage,%REG_SZ%,"ENA"
HKCU,%INat%,sList,%REG_SZ%,","
HKCU,%INat%,sLongDate,%REG_SZ%,"dddd, d MMMM yyyy"
HKCU,%INat%,sShortDate,%REG_SZ%,"dd.MM.yy"
HKCU,%INat%,sThousand,%REG_SZ%,","
HKCU,%INat%,sTime,%REG_SZ%,":"
HKCU,%INat%,sTimeFormat,%REG_SZ%,"h:mm:ss tt"
HKCU,%INat%,iTimePrefix,%REG_SZ%,"0"
HKCU,%INat%,sMonDecimalSep,%REG_SZ%,"."
HKCU,%INat%,sMonThousandSep,%REG_SZ%,","
HKCU,%INat%,iNegNumber,%REG_SZ%,"1"
HKCU,%INat%,sNativeDigits,%REG_SZ%,"0123456789"
HKCU,%INat%,NumShape,%REG_SZ%,"1"
HKCU,%INat%,iCalendarType,%REG_SZ%,"1"
HKCU,%INat%,iFirstDayOfWeek,%REG_SZ%,"0"
HKCU,%INat%,iFirstWeekOfYear,%REG_SZ%,"0"
HKCU,%INat%,sGrouping,%REG_SZ%,"3;0"
HKCU,%INat%,SMonGrouping,%REG_SZ%,"3;0"
HKCU,%INat%,sPositiveSign,%REG_SZ%,""
HKCU,%INat%,sNegativeSign,%REG_SZ%,"-"
HKCU,%INat%\Geo,Nation,%REG_SZ%,"12"

; Add Australian keyboard layout.
HKCU,"Keyboard Layout\IMEtoggle\scancode"
HKCU,"Keyboard Layout\Preload",1,%REG_SZ%,"00000c09"
HKCU,"Keyboard Layout\Substitutes",00000C09,%REG_SZ%,"00000409"
HKCU,"Keyboard Layout\Toggle",Hotkey,%REG_SZ%,"3"
HKCU,"Keyboard Layout\Toggle","Language HotKey",%REG_SZ%,"3"
HKCU,"Keyboard Layout\Toggle","Layout Hotkey",%REG_SZ%,"3"

[Strings]
INat = "Control Panel\International"

REG_SZ                  = 0x00000000
REG_BINARY              = 0x00000001
REG_SZ_NOCLOBBER        = 0x00000002
REG_BINARY_NOCLOBBER    = 0x00000003
REG_MULTI_SZ_APPEND     = 0x0001000A
REG_MULTI_SZ            = 0x00010000
REG_DWORD               = 0x00010001
REG_MULTI_SZ_NOCLOBBER  = 0x00010002
REG_DWORD_NOCLOBBER     = 0x00010003
REG_MULTI_SZ_DELVAL     = 0x00010006
REG_ADDREG_APPEND       = 0x00010008
REG_EXPAND_SZ           = 0x00020000
REG_EXPAND_SZ_NOCLOBBER = 0x00020002

OFF  = 0x00000000
ON  = 0x00000001

Export "HKCU\Control Panel\International" for regional settings and "HKCU\Keyboard Layout" for your keyboard layout.

Link to comment
Share on other sites

Here's a reg file that I use to set my keyboard to French Canadian:

; Clavier canadien-francais
[-HKEY_CURRENT_USER\Keyboard Layout]
[HKEY_CURRENT_USER\Keyboard Layout\IMEtoggle]
[HKEY_CURRENT_USER\Keyboard Layout\IMEtoggle\scancode]
[HKEY_CURRENT_USER\Keyboard Layout\Preload]
"1"="00000c0c"
[HKEY_CURRENT_USER\Keyboard Layout\Profile]
"B0A57A8"=hex:00,27,89,e5,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4f,\
 e6,28,04,a9,57,0a,0b
"22983098"=hex:60,8a,14,6d,b2,ab,b2,2d,cb,fb,9a,22
[HKEY_CURRENT_USER\Keyboard Layout\Substitutes]
"00000c0c"="00001009"
[HKEY_CURRENT_USER\Keyboard Layout\Toggle]
"Hotkey"="1"
"Language Hotkey"="1"
"Layout Hotkey"="2"

; Clavier Canadien Francais
[-HKEY_USERS\.DEFAULT\Keyboard Layout\Preload]
[HKEY_USERS\.DEFAULT\Keyboard Layout\Preload]
"1"="00000c0c"
[-HKEY_CURRENT_USER\Keyboard Layout\Preload]
[HKEY_CURRENT_USER\Keyboard Layout\Preload]
"1"="00000c0c"

Look at your own values in your registry and change accordingly.

Link to comment
Share on other sites

@visaversa: I've done that but it doesn't set the keyboard layout properly (it also installs both Engligh (US) and whatever keyboard you want).

Also, I have customized some of the regional settings.

Link to comment
Share on other sites

nLite (_GREAT_ program!!! :w00t: ) set this in my winnt.sif file:

[RegionalSettings]
LanguageGroup=1
Language=00000410

and in Windows XP SP2 it set Italian as the default language for the system.

Thanks everybody for your suggestions. ;)

Bye

Venator

B)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...