move a mouse pointer to a different location without moving the mouse 
Author Message
 move a mouse pointer to a different location without moving the mouse

hi!
i would like to know how to move a mouse pointer to a position on the screen
and then click the mouse ,
without actually moving the mouse physically
thanks in advance .
lior


Tue, 25 Dec 2001 03:00:00 GMT  
 move a mouse pointer to a different location without moving the mouse
Hi again! I just replied to your message about creating delays. You can set
cursor position with an API function called...well SetCursorPos  !!

You just need to pass the coordinates of the new location. Declare this
function in the Declarations section of the General object in a form or
module and then you will be able to use it. (You can get the declaration
from the API text viewer).

Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x As
Long, ByVal y As Long) As Long

Here's an example code for using the function:

Dim rNewX as long, rNewY as long

rNewX = 12        'new X coordinate
rNewY = 50        'new Y coordinate

SetCursorPos(rNewX, rNewY)

Hope that helps, feel free to ask more whenever you wish. Bye!

----------------------------------------------------------------------------
--------
Is there anybody out there?
----------------------------

Oscar A. Ross Gurrola

Este Lauder Cosmticos de Mxico
Departamento de Sistemas
----------------------------
Please remove "nospam" from e-mail address to reply.
Por favor, remover "nospam" de la direccin de correo para contestar.
----------------------------------------------------------------------------
--------

ICQ: 21657696
AIM: Oaross


Quote:
>hi!
>i would like to know how to move a mouse pointer to a position on the
screen
>and then click the mouse ,
>without actually moving the mouse physically
>thanks in advance .
>lior



Wed, 26 Dec 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Forcing mouse pointer to move to a co-ordinate

2. moving mouse pointer with code

3. Make mouse pointer move.

4. moving command button when mouse pointer gets near?

5. Making the mouse pointer move

6. move mouse pointer

7. Moving the mouse Pointer via Pgm Control

8. Moving Mouse Pointer

9. Moving the mouse pointer

10. Moving the mouse pointer

11. Moving mouse pointer via script

12. MOUSE Pointer - How to move/hide it programmatically

 

 
Powered by phpBB® Forum Software