PC Review Forums Newsgroups Windows XP Windows XP Embedded [Keyboard] Change Keyboardlayout programmatically

Reply

[Keyboard] Change Keyboardlayout programmatically

 
Thread Tools Rate Thread
Old 27-12-2005, 11:12 AM   #1
Markus Fischbacher
Guest
 
Posts: n/a
Default [Keyboard] Change Keyboardlayout programmatically


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


  Reply With Quote
Old 28-12-2005, 12:42 PM   #2
mich1985
Guest
 
Posts: n/a
Default Re: Change Keyboardlayout programmatically

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

  Reply With Quote
Old 04-01-2006, 01:47 PM   #3
Markus Fischbacher
Guest
 
Posts: n/a
Default Re: Change Keyboardlayout programmatically

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
>



  Reply With Quote
Old 04-01-2006, 06:59 PM   #4
steves
Guest
 
Posts: n/a
Default Re: Change Keyboardlayout programmatically

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

  Reply With Quote
Old 05-01-2006, 09:46 AM   #5
Markus Fischbacher
Guest
 
Posts: n/a
Default Re: Change Keyboardlayout programmatically


"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



  Reply With Quote
Old 07-01-2006, 10:16 PM   #6
Zirong Wang
Guest
 
Posts: n/a
Default Re: Change Keyboardlayout programmatically

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



  Reply With Quote
Old 09-01-2006, 01:19 PM   #7
Markus Fischbacher
Guest
 
Posts: n/a
Default Re: Change Keyboardlayout programmatically

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

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off