Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically moving the mouse

Tags:

vb.net

A bit odd maybe, but how can I move the cursor using code in vb.net? I can't seem to find the proper method.

This is in vb.net

like image 406
Cyclone Avatar asked Oct 05 '09 23:10

Cyclone


People also ask

Is there a program that moves your mouse?

Move Mouse is a simple piece of software that is designed to simulate user activity. Originally designed to prevent Windows from locking the user session or going to sleep, Move Mouse can be deployed in a wide range of situations.

Can you move the mouse with Javascript?

You can't move the mouse pointer using javascript, and thus for obvious security reasons. The best way to achieve this effect would be to actually place the control under the mouse pointer.


1 Answers

You may use:

Windows.Forms.Cursor.Position = New Point(x, y)
like image 187
David Rutten Avatar answered Oct 21 '22 02:10

David Rutten