Results 1 to 7 of 7

Thread: Is there a way to switch on or off Numlock ?

  1. #1
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    551

    Default Is there a way to switch on or off Numlock ?

    I would like to switch ON or OFF numlock , (not just toggle it) - is there a way to do so ?

    Thanks.

  2. #2
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    551

    Default

    *bump*

  3. #3
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    No to my knowledge...

    Is there anything on google on how to do this?

  4. #4
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    there is a win api function, give me a minute and i will dig it out

  5. #5
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    on 95/98:
    you need to use "getkeyboardstate" to get the current keyboard state array and then set the element VK_NUMLOCK to
    on nt/2000/xp you can simply simulate the numlock key press
    see for example delphi code

  6. #6
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    551

    Default

    i want to set it to "on" or "off" , not simply toggle it in "brainless mode"

  7. #7
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    you wont be able to do this in girder without someone writing some c/delphi code for you

Posting Permissions

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