[Keyboard] Change Keyboardlayout programmatically

M

Markus Fischbacher

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
 
M

Markus Fischbacher

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
 
S

steves

Markus said:
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
 
M

Markus Fischbacher

steves said:
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
 
Z

Zirong Wang

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)
 
M

Markus Fischbacher

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top