moving the mouse to another position! 
Author Message
 moving the mouse to another position!

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  
 moving the mouse to another position!
So you only have the X,Y Coordinates and want to click there without moving
the mousecursor there???

You can do it with the following function:

Declare Function WindowFromPoint Lib "user32" Alias "WindowFromPoint" (ByVal
xPoint As Long, ByVal yPoint As Long) As Long

So you have to call WindowFromPoint(x,y) and it will return the
WindowHandle! (hWnd)

To make a click there call the SendMessage function with this Hwnd! You have
to find out the parameters for a mouse click!
Its a specific message! I dont know it exactly.. ask somebody or look it up!

i hope i could help!  cya



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



Tue, 25 Dec 2001 03:00:00 GMT  
 moving the mouse to another position!
OK - go to the following page:
http://www.kather.net/VisualBasicSource/VBTips/72.txt

Kather's got a page here that, even though it's not exactly what you want,
it's close enough that it can get you started understanding what to do.
--
David Wier
http://www.aspexpress.com
http://www.augustwind.com
Designer of the Best ASP Editor in the Galaxy

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



Thu, 27 Dec 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

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

2. Moving Mouse Cursor to position and click

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

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

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

6. Tracking shape position and rotation WHILE moving

7. Footnotes moved to their actual position in the text

8. Moving scrollbar position in listview controls.

9. Restrict moving of form position

10. Move or position

11. Moving position of List Box elements

12. Treeview - how to position node when moving?

 

 
Powered by phpBB® Forum Software