Results 1 to 2 of 2

Thread: Disable the Windows Key - revisited...

  1. #1

    Thread Starter
    Lively Member bgalm's Avatar
    Join Date
    Jan 1999
    Posts
    65

    Question

    I have been able to capture the keypress of the Windows key (91) but I am unable to disable it completely prior to shelling out to DOS for one of my apps. The If KeyCode = 91 then KeyCode = 0 isn't working (from a previous topic). Is there any way to completely disable the key, run my DOS app, then re-enable it. Don't worry, I am using a routine that puts Visual Basic "on hold" while the DOS app is running, that way it won't disable it, start the DOS app, then while the DOS app is running, re-enable the key right away.
    Thanks,

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    To do this, you need a System-Wide Keyboard Hook.
    Impossible in VB alone. As usual.

    You will have to build a Win32 DLL (not ActiveX)... In VC++, for example.

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