MSFN Forum: Changing Keyboard Layout - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Changing Keyboard Layout Rate Topic: -----

#1 User is offline   Venator 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 13-August 04

Posted 13 August 2004 - 10:13 AM

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)


#2 User is offline   Denney 

  • *shrug*
  • PipPipPipPip
  • Group: Members
  • Posts: 685
  • Joined: 11-September 03

Posted 13 August 2004 - 11:04 AM

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.

#3 User is offline   big_gie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 617
  • Joined: 27-July 03

Posted 13 August 2004 - 11:06 AM

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.

#4 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 13 August 2004 - 02:21 PM

why a script?

insert these in your winnt.sif

[RegionalSettings]
LanguageGroup=1
SystemLocale=00000410
UserLocale=00000410
InputLocale=0410:00000410

#5 User is offline   Denney 

  • *shrug*
  • PipPipPipPip
  • Group: Members
  • Posts: 685
  • Joined: 11-September 03

Posted 13 August 2004 - 08:42 PM

@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.

#6 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 14 August 2004 - 04:49 AM

now that u mension i hade the same behaviour.using winnnt.sif..and SP2, I used a regfile to correct. Now i use a preconfigured default profile so problem is gone.
But strange that sp2 have that problem and SP1 not

#7 User is offline   Venator 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 13-August 04

Posted 14 August 2004 - 10:05 AM

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)

#8 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 14 August 2004 - 10:20 AM

i am happy for you that the problem is solved, still there is that issue with sp2 strange...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy