Capturing Keystrokes

I need to read all keystrokes from the keyboard. The only problem is that my application will not be the active window. I need to capture the keystrokes of another application.
Compiler: C++ Builder 6

Comments

  • To capture keypresses in another application you need to write something called a global hook inside a DLL. I suggest you look up hooks on Google because it would take far too long for me to explain it all here now.

    : I need to read all keystrokes from the keyboard. The only problem is that my application will not be the active window. I need to capture the keystrokes of another application.
    : Compiler: C++ Builder 6
    :

  • Is there a way to subscribe to a particular keypress event? Thew scenario is: I want to hide my app and be able to show it again after a specific key combination has been pressed.
    Thnxs!


    : To capture keypresses in another application you need to write something called a global hook inside a DLL. I suggest you look up hooks on Google because it would take far too long for me to explain it all here now.
    :
    : : I need to read all keystrokes from the keyboard. The only problem is that my application will not be the active window. I need to capture the keystrokes of another application.
    : : Compiler: C++ Builder 6
    : :
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories