How to "catch" keystrokes from other applications
-
I want my applications to "monitor" all keys pressed (or messages in general) in another application. I know it's possible, since Spy++ does exacly that and much more; so how do I do it? I also want it to just monitor one specific application. I guess I'll have to use ::FindWindow() or something? Please help :) Sprudling
-
I want my applications to "monitor" all keys pressed (or messages in general) in another application. I know it's possible, since Spy++ does exacly that and much more; so how do I do it? I also want it to just monitor one specific application. I guess I'll have to use ::FindWindow() or something? Please help :) Sprudling
You'll need a hook - docs for SetWindowsHookEx are a good starting point. Tomasz Sowinski -- http://www.shooltz.com
-
I want my applications to "monitor" all keys pressed (or messages in general) in another application. I know it's possible, since Spy++ does exacly that and much more; so how do I do it? I also want it to just monitor one specific application. I guess I'll have to use ::FindWindow() or something? Please help :) Sprudling
Create a keyboard hook. http://www.preview.org/q/q2108.shtml /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
-
I want my applications to "monitor" all keys pressed (or messages in general) in another application. I know it's possible, since Spy++ does exacly that and much more; so how do I do it? I also want it to just monitor one specific application. I guess I'll have to use ::FindWindow() or something? Please help :) Sprudling
Sorry about the Delphi link. Hopefully it's still somewhat helpful. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
-
I want my applications to "monitor" all keys pressed (or messages in general) in another application. I know it's possible, since Spy++ does exacly that and much more; so how do I do it? I also want it to just monitor one specific application. I guess I'll have to use ::FindWindow() or something? Please help :) Sprudling
Check this knowledge base article Hope this helps. // Fazlul
Get RadVC today! Play RAD in VC++ http://www.capitolsoft.com