Results 1 to 3 of 3

Thread: how to lock keys (keyboard)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Post

    hi @ll!

    i want to make a program, that locks the keyboard or only special keys like "a" or "6" or the return-key. but i don't know, what api to use.....
    because the key have to be locked in ANY windows-program, like it isn't plugged to the comp.

  2. #2
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking Diabling keys

    Use "Key OFF(<Key No.>)" statement to disable any key you want when your program is running. For more info. see the help file of vb6 or Qbasic b'coz almost all statements of Qbasic can be used in VB6 with same syntax.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Thumbs down ???

    i studied the help file (msdn) but there was no key off event or sthin similar....
    i tried the search-function but i only found the "getkeyboardstate" and "setkeyboardstate" api call.
    i want to disable the keyboard or only some keys, so that you cannot write anythin
    im i able to do that with the api (setkeyboardstate) or with any vbfunction

    pls

    hlp!


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