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@xxxxxxxxxxxxx> wrote in message
news:43bfbfbe$0$7346$636a55ce@xxxxxxxxxxxxxxx
> 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@xxxxxx> wrote in message
> news:IK5vf.2$ff4.5861471@xxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> "steves" <steves_garbage@xxxxxxxxxxxxx> wrote in message
>> news:1136401185.666865.193840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>> 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
>>
>>
>>
>
>


.



Relevant Pages

  • [Keyboard] - Could not load layout
    ... I have a problem switching the keyboard layout in my xpe image (using the ... When i try to switch to e.g. Spanish, ... In my image i have added the following language specific components: ...
    (microsoft.public.windowsxp.embedded)
  • Re: Keyboard layout problem
    ... either on the server console or in a terminal session on the ... |> ALT+SHIFT+1,2,3 to change the layout. ... executed cause ctfmon.exe (the user side of keyboard layout switching) to ... filters, there are also other filters like ASPI CD layer, and so on)... ...
    (microsoft.public.windows.server.general)
  • Re: [Keyboard] - Could not load layout
    ... I still have troubles with the keyboard layout. ... Because the german, english and french layouts are working, I thought that I ... try XP SP2 WITHOUT language pack installed. ...
    (microsoft.public.windowsxp.embedded)
  • Re: [Keyboard] - Could not load layout
    ... try XP SP2 WITHOUT language pack installed. ... I have a problem switching the keyboard layout in my xpe image (using the ... Standards and formats: German - Germany ...
    (microsoft.public.windowsxp.embedded)
  • Re: Keyboard layout problem
    ... Regardless of which keyboard layout a user ... | still the US English layout when typing. ... but not when I actually install it in Windows. ...
    (microsoft.public.windows.server.general)