Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Feb 2002
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Get CapsLock state (A2K SP3)

    I want to ensure that all input are in capital letters and switch the CapsLock on if it isn't. I can use SendKeys to turn the Capslock key on. However how do I know if the Capslock is already on before I use Sendkeys?

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Get CapsLock state (A2K SP3)

    You can force the input into capitals, which is both more polite and simpler than trying to change the keyboard state. If you use an input mask on the field, you can easily force that field to upper case by using a > as the input mask and you don't have to worry about whether the Caps Lock is on.
    Charlotte

  3. #3
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Get CapsLock state (A2K SP3)

    Charlotte is right, you can just force the text to uppercase. However, if you still want to check/force the Numlock key, let me know, you can do this safely with API Calls.

Posting Permissions

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