Trapping and replaying keystrokes and mouseclicks

  • Thread starter Thread starter Kelly Elias
  • Start date Start date
K

Kelly Elias

I would like to create an application that lets users
create macros, but I am unfamiliar with trapping
keystrokes on a system wide level, as well as trapping
mouse input on a system wide level.

I will need to:

1. Trap and record mouse clicks and movements across the
entire system, not just my application. (setcapture api?)

2. Trap and record keystrokes across the entire system not
just my application.

3. Playback mouse clicks and move events. (mouse_event
api?)

4. Playback keyboard events. (sendkeys??)

Anyone have any experience here on how I can do this
properly? I know of a few API's but I'm not sure if the
framework has some new built in functions to help me out.

Any suggestions would be appreciated.
 
Kelly Elias said:
I would like to create an application that lets users
create macros, but I am unfamiliar with trapping
keystrokes on a system wide level, as well as trapping
mouse input on a system wide level.

I will need to:

1. Trap and record mouse clicks and movements across the
entire system, not just my application. (setcapture api?)

You may want to use a hook to record the events:

<http://www.developer.com/net/net/article.php/11087_2193301_1>
 
Back
Top