Position your mousepointer from VB

You can place your mousepointer anywhere in the desktop using an API function called SetCursorPos. By supplying X and Y coordinates to this function, you can move the mousepointer anywhere.

'** Include this statement in declaration
Public Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x As Long, ByVal y As Long) As Long

Dim X as integer
Dim Y as integer
Dim lRetVal as Long

'Call the function to position the mousepointer
X=200
Y=100
lRetValue=SetCursorPos(X,Y)

Note: X and Y values should be in pixels