
How do I move mouse to x, y position ?
Hi Dobermann,
Check out the SetCursorPos and GetCursorPos API Calls. They should
do what you want. Here's the Declarations you will need. Let me know
If I can help more!
Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x
As Long, ByVal y As Long) As Long
Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (lpPoint
As POINTAPI) As Long
Type POINTAPI
x As Long
y As Long
End Type
Mike Drew
Kishwaukee College
Programmer/Analyst
Quote:
> Hello everybody,
> I want to move the mouse arrow to x/y position with VB code.
> How can I manage ist?
> I know it's a simple thing. But please answer.
> thanks
> Dobi