simulating mouse input

P

perlen

I'm trying to write a program that simulates mouse input.
I want to be able to send mouseclick- and mousemove -
messages to other applications. I tried it using the
Journalplayback-Hook, but it didn't work properly because
it hung itself up. the other thing why that doesnt work
for mi is because i want to get input from a webcam and
calculate the mouseposition from this data and then send
it to the system.

has anyone an idea how this could be done?

thank you very much for helping me!
 
W

William DePalo [MVP VC++ ]

perlen said:
I'm trying to write a program that simulates mouse input.
I want to be able to send mouseclick- and mousemove -
messages to other applications.

On the MSDN-CD or at http://msdn.microsoft.com search for mouse_event() or
SendInput(). The latter is to be used on more recent platforms. Rread the
caveats in the docs.

Regards,
Will
 

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