PC Review
Forums
Newsgroups
Windows XP
Windows XP Embedded
[Keyboard] Change Keyboardlayout programmatically
Forums
Newsgroups
Windows XP
Windows XP Embedded
[Keyboard] Change Keyboardlayout programmatically
![]() |
[Keyboard] Change Keyboardlayout programmatically |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello!
I have a special challenge which I can't solve myself. After the installation of XPe, I must change the keyboard layout programmatically. Is there a solution available? Thx in advance! Regards Markus Fischbacher |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hello Markus,
i think this ng isn't the right place for this question. try this... http://msdn.microsoft.com/library/d...boardlayout.asp regards, flo |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hello flo,
the function you told only affects the layout setting for the current process or thread. I'd like to set the keyboard layout for the whole xpe. Any idea? Regards, Markus "mich1985" <florian.harmuth@gmx.de> wrote in message news:1135773776.858875.188730@g49g2000cwa.googlegroups.com... > Hello Markus, > i think this ng isn't the right place for this question. > try this... > http://msdn.microsoft.com/library/d...boardlayout.asp > > regards, > flo > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Markus Fischbacher wrote:
> Hello! > > I have a special challenge which I can't solve myself. > After the installation of XPe, I must change the keyboard layout programmatically. > Is there a solution available? > > Thx in advance! > > Regards > Markus Fischbacher Markus, I'm curious as to what keys you need to change, could you share your thoughts? Microsoft has an available 'Microsoft Keyboard Layout Creator', that is available as a free download on their 'Genuine Windows' website. That means that it is free, but requires that you have a genuine licensed PC in order to download it. It creates an installation file that can be used to install a customized layout on any number of PCs... It can be found here: http://www.microsoft.com/globaldev/tools/msklc.mspx SteveS stevesATeyeDASHimagingDOTcom |
|
|
|
#5 |
|
Guest
Posts: n/a
|
"steves" <steves_garbage@sbcglobal.net> wrote in message news:1136401185.666865.193840@f14g2000cwb.googlegroups.com... > Markus, > I'm curious as to what keys you need to change, could you share your > thoughts? > > Microsoft has an available 'Microsoft Keyboard Layout Creator', that is > available as a free download on their 'Genuine Windows' website. That > means that it is free, but requires that you have a genuine licensed PC > in order to download it. It creates an installation file that can be > used to install a customized layout on any number of PCs... > > It can be found here: > http://www.microsoft.com/globaldev/tools/msklc.mspx > > SteveS > stevesATeyeDASHimagingDOTcom > Hello Steve, thanks for your reply! Our company has customers all over the world. Some customers have their own keyboard with different keys or positions. (e.g. german QWERTZ, english QWERTY). I must configure the system to use the right layout for each keyboard. Our XPe is shipped with englisch UI. It's not planned to ship different UI's for each language. We only want to set the right keyboard layout. Our company has it#s own setup procedure which is realised in DOS. At the beginning, the user is able to select his desired language for the setup procedure in the DOS shell. This selected language should be finally set to the whole XPe automatically. The selected language is temporarily stored in a textfile. After the FBA has finished, the user language is read from the temporarily file and should be set to the system. I have no idea, how to set the keyboard language layout to the system. I hope I explained it in a reasonably way otherwise feel free to ask again. Thank you! Markus |
|
|
|
#6 |
|
Guest
Posts: n/a
|
Markus,
if you configure the following key during the FBA phase, then the whole system will be ok: HKEY_USERS\.Default\keyboard layout\preload for example, when set the value 1 to 40C, the whole system is set for french keyboard. now, just put a resource during the phase 8499, then the .default key will be inherited for all subsequent created users, including administrator. assuming you know the keyboard layout code. otherwise, you must search in the registry HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts to find all code. now you can be more tricky by putting the 'layout text' as your config file, ie. KEYBOARD="German" then, you can have a simple .bat script the parse this file, compare and find the layout code (the key name under 'kayboard layouts'), and thanks to reg.exe, put the preload key to the right key code. anyways, the critical (key :-) ) point is to launch the batch during the phase BEFORE the first reboot of FBA, we use phase 8499 and it works fine. no, I will not describe how to put a resource to launch a .bat in TD. I can, a la limite, privide the .bat file providing that the config file is in the same format (layout text) as ours. hope this helps Zirong J'eprouve une soudaine compassion pour ceux qui souffrent comme moi avec cet OS (si on peux appeler cela un OS) "Markus Fischbacher" <trash@sbg.at> wrote in message news:IK5vf.2$ff4.5861471@news.salzburg-online.at... > > "steves" <steves_garbage@sbcglobal.net> wrote in message > news:1136401185.666865.193840@f14g2000cwb.googlegroups.com... >> Markus, >> I'm curious as to what keys you need to change, could you share your >> thoughts? >> >> Microsoft has an available 'Microsoft Keyboard Layout Creator', that is >> available as a free download on their 'Genuine Windows' website. That >> means that it is free, but requires that you have a genuine licensed PC >> in order to download it. It creates an installation file that can be >> used to install a customized layout on any number of PCs... >> >> It can be found here: >> http://www.microsoft.com/globaldev/tools/msklc.mspx >> >> SteveS >> stevesATeyeDASHimagingDOTcom >> > > Hello Steve, > > thanks for your reply! > Our company has customers all over the world. > Some customers have their own keyboard with different keys or positions. > (e.g. german QWERTZ, english QWERTY). > I must configure the system to use the right layout for each keyboard. > Our XPe is shipped with englisch UI. It's not planned to ship different > UI's for each language. > We only want to set the right keyboard layout. > > Our company has it#s own setup procedure which is realised in DOS. > At the beginning, the user is able to select his desired language for the > setup procedure in the DOS shell. > This selected language should be finally set to the whole XPe > automatically. > The selected language is temporarily stored in a textfile. > After the FBA has finished, the user language is read from the temporarily > file and should be set to the system. > > I have no idea, how to set the keyboard language layout to the system. > > I hope I explained it in a reasonably way otherwise feel free to ask > again. > > Thank you! > > Markus > > > |
|
|
|
#7 |
|
Guest
Posts: n/a
|
Hello Zirong,
your solution sounds nice. I'll try to generate a component which executes the batchfile @ phase 8499 to set the keyboard layout code. My configuration file is also a text layout file. You told, that you can provide your batchfile to me? I'd be glad if I can get it from you ![]() Thx a lot! Markus PS: Please send the file to fima(at)skidata(dot)com "Zirong Wang" <nospam@blackhole.net> wrote in message news:43bfbfbe$0$7346$636a55ce@news.free.fr... > Markus, > > if you configure the following key during the FBA phase, then > the whole system will be ok: > HKEY_USERS\.Default\keyboard layout\preload > for example, when set the value 1 to 40C, the whole system > is set for french keyboard. > > now, just put a resource during the phase 8499, then the .default > key will be inherited for all subsequent created users, including > administrator. > > assuming you know the keyboard layout code. otherwise, you must > search in the registry > HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts > to find all code. > > now you can be more tricky by putting the 'layout text' as your config > file, ie. > KEYBOARD="German" > then, you can have a simple .bat script the parse this file, compare and > find > the layout code (the key name under 'kayboard layouts'), and thanks to > reg.exe, > put the preload key to the right key code. > > anyways, the critical (key :-) ) point is to launch the batch during the > phase BEFORE > the first reboot of FBA, we use phase 8499 and it works fine. > > no, I will not describe how to put a resource to launch a .bat in TD. > I can, a la limite, privide the .bat file providing that the config file > is in the same > format (layout text) as ours. > > hope this helps > > Zirong > > J'eprouve une soudaine compassion pour ceux qui souffrent comme moi > avec cet OS (si on peux appeler cela un OS) > > "Markus Fischbacher" <trash@sbg.at> wrote in message > news:IK5vf.2$ff4.5861471@news.salzburg-online.at... >> >> "steves" <steves_garbage@sbcglobal.net> wrote in message >> news:1136401185.666865.193840@f14g2000cwb.googlegroups.com... >>> Markus, >>> I'm curious as to what keys you need to change, could you share your >>> thoughts? >>> >>> Microsoft has an available 'Microsoft Keyboard Layout Creator', that is >>> available as a free download on their 'Genuine Windows' website. That >>> means that it is free, but requires that you have a genuine licensed PC >>> in order to download it. It creates an installation file that can be >>> used to install a customized layout on any number of PCs... >>> >>> It can be found here: >>> http://www.microsoft.com/globaldev/tools/msklc.mspx >>> >>> SteveS >>> stevesATeyeDASHimagingDOTcom >>> >> >> Hello Steve, >> >> thanks for your reply! >> Our company has customers all over the world. >> Some customers have their own keyboard with different keys or positions. >> (e.g. german QWERTZ, english QWERTY). >> I must configure the system to use the right layout for each keyboard. >> Our XPe is shipped with englisch UI. It's not planned to ship different >> UI's for each language. >> We only want to set the right keyboard layout. >> >> Our company has it#s own setup procedure which is realised in DOS. >> At the beginning, the user is able to select his desired language for the >> setup procedure in the DOS shell. >> This selected language should be finally set to the whole XPe >> automatically. >> The selected language is temporarily stored in a textfile. >> After the FBA has finished, the user language is read from the >> temporarily file and should be set to the system. >> >> I have no idea, how to set the keyboard language layout to the system. >> >> I hope I explained it in a reasonably way otherwise feel free to ask >> again. >> >> Thank you! >> >> Markus >> >> >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 


