title: How to intercept keystrokes to windows command prompt?
body: <p>I am working on an application specific keystroke dynamics tool. My requirement is to get keystroke <strong>timing data</strong> of a user in the <strong>Windows CMD prompt</strong>. After a few searches, I have found 2 ways of doing doing this:
  1) Use windows hooks
  2) Pyhook - a python wrapper module </p>
  
  <p>It appears to me that my applications functionality will be quite similar to that of a key-logger. But I am unable to figure out if I should use global hooks or thread specific hook for intercepting keystrokes to the CMD prompt. And If using a global hook, is it possible to filter keystrokes based on the target application?</p>