none
Catching keystrokes from Application.SendKeys RRS feed

  • Question

  • Good day!
    I'm trying to write a console application that should catch keystrokes being sent by another application that uses Application.SendKeys. I tried to use a global keyboard hook with SetWindowsHookEx() but it only catches directly keypresses on the keyboard. Why is this so?

    Thank you cvery much.
    Sunday, October 5, 2008 2:40 PM

Answers

  • Because SendKeys itself uses SetWindowsHookEx().  Please use this forum only to ask questions about the CLR.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Friday, October 10, 2008 11:51 AM
    Sunday, October 5, 2008 5:53 PM
    Moderator