October 28th, 1999, 01:26 AM
How would one make the mose move and send a click event or dbl-click event thru an API call ?
|
Click to See Complete Forum and Search --> : API for mouse movement October 28th, 1999, 01:26 AM How would one make the mose move and send a click event or dbl-click event thru an API call ? Lothar Haensler October 28th, 1999, 01:32 AM there's a mouse_event API. check it out on the platform sdk October 28th, 1999, 01:45 AM I know maybe I am pushing you a bit, but could u give the code for making a mouse move to a certain x,y co-ordinate and then sending the click event thru the API call ? I am running on a bare VB setup and dont know the API calls very well. Thanx Lothar Haensler October 28th, 1999, 01:54 AM option Explicit private Declare Sub mouse_event Lib "user32" (byval dwFlags as Long, byval dx as Long, byval dy as Long, byval cButtons as Long, byval dwExtraInfo as Long) private Const MOUSE_MOVED = &H1 private Const MOUSEEVENTF_ABSOLUTE = &H8000 private Const MOUSEEVENTF_LEFTDOWN = &H2 private Sub Command1_Click() mouse_event MOUSE_MOVED Or MOUSEEVENTF_ABSOLUTE, 0, 0, 0, 0 mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_ABSOLUTE, 0, 0, 0, 0 End Sub codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |