-
1
- #1
Stretchwickster
Programmer
I was trying to find a way to provide OnMouseOver hints on a TChart and found it useful to simulate a mouse click. Here is the code to be able to do this:
For more information on the mouse_event procedure and related variations see the following link:
Hope this helps!
Clive
Code:
// to simulate a left mouse button press use this line:
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
// to simulate a left mouse button release use this line:
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
For more information on the mouse_event procedure and related variations see the following link:
Hope this helps!
Clive