Page 1 of 1

Simulating A Left/Middle/Right Mouse Button Click [VB2010]

Posted: Thu Jan 26, 2012 1:02 pm
by visualbasicje
You can find this on the internet somewhere, but (as to my experience) it takes a lot of searching before you actually find a good and working easy piece of code. I solved this problem by writing a tutorial on simulating these left, middle or right mouse clicks with the help of another answer on the internet and I'm hoping it will be on top of Google fast to prevent any more unnecessary searching by other people.

My article on how to simulate a mouse click in VB2010 can be found here, my source can be found here:http://social.msdn.microsoft.com/Forums ... f5d452e8a9

Comments are always appreciated.

Re: Simulating A Left/Middle/Right Mouse Button Click [VB2010]

Posted: Thu Jan 26, 2012 11:49 pm
by mandai
These tutorials are easy to find if you know what you are looking for.
SendInput has superseded mouse_event.