-
I am trying to receive the keyboard layout. I have written a keylogger, which is coming on nicely, but one feature i want it to have is to get the keyboard layout. As in the United Kingdom the @ and " are the other way round to those in America, and currently my keylogger will get this wrong on an American Keyboard.
Does anyone have any suggestions, i couldn't find the API for it.
Darren.
-
LoadKeyboardLayout is that API for this....
GetKeyboardLayoutName is the API to get the keyboard layout name
U could refer to MSDN for parameters
-
Thanks, I dunno how i missed those APIs, The string returns a Long number though, do you know what i can do with these to get wheter the keyboard is British or America?
Thanks again,
Darren.
-
Dim strName As Stringstr
Const KL_NAMELENGTH = 9
Name = String (KL_NAMELENGTH, 0)
GetKeyboardLayoutName strName
Strname will contain the Layout name