Hi all
I'm trying to simulate a mouse click, on Windows, with this code :
#if TargetWin32
Const MOUSEEVENTF_ABSOLUTE = &H8000
Const MOUSEEVENTF_LEFTDOWN = &H2
Const MOUSEEVENTF_LEFTUP = &H4
Declare Sub mouse_event Lib "User32" (dwFlags As Integer, dx As
Integer, dy As Integer, cButtons As Integer, dwExtraInfo As Integer)
mouse_event(MOUSEEVENTF_ABSOLUTE + MOUSEEVENTF_LEFTDOWN, 100,
100, 0, 0)
mouse_event(MOUSEEVENTF_ABSOLUTE + MOUSEEVENTF_LEFTUP, 100, 100,
0, 0)
#endif
for a click in (100, 100)
But the click comes always at the mouse position and not in 100, 100
Why ?
Thanks
Marc
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>