Programmatically click and move the mouse using VB.NET

I want to build a program in VB.net that will allow me to control my computer using my laptop. The only question I have is how can I programmatically click without using some kind of click event, say if I want to click the start frame and my mouse is in that exact place, I need a sub or whatever what clicks in the subject. Now I only know how to click on the form.

thanks

+6
click move mouse
source share
2 answers
+2
source share

You can set the cursor position using the Cursor.Position property.

You will need P / Invoke mouse_event in user32.dll to simulate a mouse click.

An example code in C # is here: http://www.gamedev.net/community/forums/topic.asp?topic_id=321029

+9
source share

All Articles