Trapping and replaying keystrokes and mouseclicks

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.
 
H

Herfried K. Wagner [MVP]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top