Page 1 of 1 1
Topic Options
#15118 - 2001-12-11 11:43 AM keyboard layout - us international
Anonymous
Unregistered


Dear Everybody,

is there a way to tell which keyboard layout the user is using

many thanks

Alex T

Top
#15119 - 2001-12-11 04:13 PM Re: keyboard layout - us international
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, check the subkeys in HKEY_CURRENT_USER\Keyboard Layout. A user with default US keyboard has HKEY_CURRENT_USER\Keyboard Layout\Preload\1=00000409.
_________________________
There are two types of vessels, submarines and targets.

Top
#15120 - 2001-12-11 04:15 PM Re: keyboard layout - us international
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ch3lsea,

depends on which moment you want to check and if you want to check locally or remotely !

J.

_________________________



Top
#15121 - 2001-12-11 04:17 PM Re: keyboard layout - us international
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Alex,

Looking in the Control Panel, we see: United States 101

In the registry, doing a search for - United States 101

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\keyboard layouts\00000409
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\keyboard layouts\00002009
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\keyboard layouts\00002409

We find - 00000409 under:
HKEY_CURRENT_USER\keyboard layout\preload\1

If we did a READVALUE ON -
$Locale = READVALUE("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Nls\Locale","")

If we did an ENUMVALUE on: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Nls\Locale we could determine what Locales are available on the system.

If we look at - C:\WINDOWS\INF\KEYBOARD.INF

We see toward the bottom, it touches the SYSTEM.INI, which we can get to via SYSEDIT or NOTEPAD... READPROFILESTRING or WRITEPROFILESTRING.

System.ini contains...

[keyboard]
keyboard.dll=
oemansi.bin=

However, I have a USB Keyboard and the registry has -

code:

REGEDIT4

[HKEY_LOCAL_MACHINE\Enum\HID\VID_413C&PID_2001&MI_00\0000USB&VID_413C&PID_2001&MI_00&0000USB&VID_413C&PID_2001&INST_0]
"Capabilities"=hex:e0,00,00,00
"Serial"=hex:0c,00,00,00,00,00,00,00
"HardwareID"="HID\\VID_413C&PID_2001&REV_0001&MI_00,HID\\VID_413C&PID_2001&MI_00,HID_DEVICE_SYSTEM_KEYBOARD,HID_DEVICE_UP:0001_U:0006,HID_DEVICE"
"ClassGUID"="{4d36e96b-e325-11ce-bfc1-08002be10318}"
"Class"="Keyboard"
"Driver"="Keyboard\\0000"
"Mfg"="(Standard keyboards)"
"DeviceDesc"="HID-compliant keyboard"
"ConfigFlags"=hex:00,00,00,00


Does this get you any closer?

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#15122 - 2001-12-12 06:35 PM Re: keyboard layout - us international
Anonymous
Unregistered


Thanks All,


Will check friday and let you know!!

PS What i want is to determine which keyboard layout the user is using and display the keycode for the euro sign at logon if possible, i had done a search on us international ad had found the code 0409 (US International) but i got the same code when changing the keyboard layout to US (just US not international) the keycode vary depending on the keyboard layout being used

many many thanks

Alex T

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.173 seconds in which 0.126 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org