Results 1 to 1 of 1

Thread: Problem w/ Capslock state for NT

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2001
    Location
    Chicago
    Posts
    40

    Problem w/ Capslock state for NT

    When using the following code, I do not always get the correct state of the Capslock key w/Windows NT.

    Private Declare Function GetKeyboardState Lib "user32" _
    (pbKeyState As Byte) As Long

    Dim KeyState As Boolean
    Dim keys(0 To 255) As Byte
    GetKeyboardState keys(0)

    KeyState = keys(VK_Type)

    Does anyone have a suggestion?
    Last edited by OhYeahLach; Apr 22nd, 2002 at 03:51 PM.

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