Sendinput example desperately needed

G

Guest

Hi, Can anyone send me a working example of using the sendinput API with
VB.NET to send keystrokes and mouse commands to other active windows? I’ve
been struggling with this for ages and just cant get it to work. Please don’t
direct me to documentation on MSDN or elsewhere – I’ve looked at all of this
and still cant get it to work!! My code doesn't report any errors, it just
doesn’t seem to send any input to whatever has the focus. Most of the posts
I’ve found elsewhere make it sound so simple – could there be a security
‘feature’ on my machine preventing this from working? I’m using XP SP2, .NET
1.1 and I also use Zonealarm Pro.

Lou.
 
R

Rangi Keen

Have you looked at the SendKeys class? This allows you to send keystrokes to
the active application, but I don't know how you would send mouse events
other than using the SendInput API.
 

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