Results 1 to 4 of 4

Thread: Keyboard Layout

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    78

    Arrow

    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.

  2. #2
    Fanatic Member faisalkm's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    752
    LoadKeyboardLayout is that API for this....

    GetKeyboardLayoutName is the API to get the keyboard layout name

    U could refer to MSDN for parameters
    Faisal Muhammed
    Homepage:I Started making it in 1994 ...Still Under Construction
    Using

    Visual Basic 6.0 Enterprise SP5
    Embedded Visual Basic 3.0
    SQL Server 2000
    Windows 2000 Proff
    Delphi 6.0


    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    78
    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.
    Last edited by groovydaz; Feb 23rd, 2001 at 11:56 AM.

  4. #4
    Fanatic Member faisalkm's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    752
    Dim strName As Stringstr
    Const KL_NAMELENGTH = 9
    Name = String (KL_NAMELENGTH, 0)
    GetKeyboardLayoutName strName


    Strname will contain the Layout name
    Faisal Muhammed
    Homepage:I Started making it in 1994 ...Still Under Construction
    Using

    Visual Basic 6.0 Enterprise SP5
    Embedded Visual Basic 3.0
    SQL Server 2000
    Windows 2000 Proff
    Delphi 6.0


    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width