Simulate Mouse Click Using SendInput
-
Sunday, March 19, 2006 12:39 PM
Hi,
I tried using http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=144808&SiteId=1 to simulate a mouse click but was unsuccesfull because of an 'inbalanced stack' error (what ever that means).
I read a bit more and found a comment that said i needed to SendInput API but i am unsure how to implement it.
I just need a single left mouse click.
Thanks in advance,
TheDarkestShadow
All Replies
-
Sunday, March 19, 2006 1:12 PM
Dont worry i figured it out once i stumbled upon this website:
http://www.pinvoke.net/default.aspx/user32.SendInput
Works a treat :)
--TheDarkestShadow -
Saturday, March 22, 2008 9:03 PM
Hello.
I know this is an old post but i just tryed the code in the link it and it does not work. I get errors
that INPUT and FieldOffset are not valid or defined.
Is there an updated version of Sendinput?
Thanks.

