tbannist
2005-04-26 20:08:06 UTC
Ok, so I've got my keyboard hook code working except for one problem, it
currently hooks all keystrokes not just the ones destined for Word. It looks
like I need to determine the threadId for Word or the currently active
document window to create a local hook, however, I can't seem to find any
properties that will give me a threadId or even a window handle(wHnd) so I
can get the threadId.
Any suggestions on how to figure out what the thread id of Word is?
currently hooks all keystrokes not just the ones destined for Word. It looks
like I need to determine the threadId for Word or the currently active
document window to create a local hook, however, I can't seem to find any
properties that will give me a threadId or even a window handle(wHnd) so I
can get the threadId.
Any suggestions on how to figure out what the thread id of Word is?