How to move the mouse??

pedroxs
01-30-2004, 10:49 AM
Hi, I am new to .NET and couldnīt figure it out how to move the mouse (get/set mouse cords) outside the form.

Thx in advance.

Mikecrosoft
01-30-2004, 11:35 AM
May be its with the Cursor Class

Me.Cursor.Position = New Point(0, 10)

pedroxs
01-30-2004, 12:19 PM
May be its with the Cursor Class

Me.Cursor.Position = New Point(0, 10)

Thx, that worked. And how about doing the get/set cursor position when the form is not on focus??

ie: have the form on backgrund and call it by keypress ("F1") and it executes the preseted cursor moves.

Mikecrosoft
01-30-2004, 03:13 PM
Use the API: GetCursorPos()

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum