How do I move mouse to x, y position ? 
Author Message
 How do I move mouse to x, y position ?

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



Mon, 17 Jul 2000 03:00:00 GMT  
 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



Tue, 18 Jul 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Moving Mouse Cursor to position and click

2. move a mouse pointer to a different location without moving the mouse

3. moving the mouse to another position!

4. Changing to a Copy or Move DragIcon while in Drag mode but NOT moving the mouse

5. Moving mouse in VB (instead of regular mouse)?

6. mouse move event detected with no mouse movement?!?

7. Moving code from VBA to VB. Easily Done?

8. Doing Error Checking before moving to next record

9. Doing Mouse Events on a Transparent ActiveX Control?

10. Doing Mouse Events on a Transparent ActiveX Control?

11. Tracking shape position and rotation WHILE moving

12. Footnotes moved to their actual position in the text

 

 
Powered by phpBB® Forum Software