Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Simulate a mouse click on our form (control)
3 comments. Current rating: (2 votes). Leave comments and/ or rate it.
This is easily done by position the mouse cursor onto the form using SetCursorPos, then using mouse_event to fake a mouse click.
 | |  | | SetCursorPos (Form1.Left+50, Form1.Top+50);
mouse_event (MOUSEEVENTF_LEFTDOWN, 0,0,0,0);
mouse_event (MOUSEEVENTF_LEFTUP, 0,0,0,0); | |  | |  |
Comments:
|
valentin_f14@hotmail.com from Mexico
|
 |
|
|
muchas gracias, me sirvió bastante el codigo
|
2007-11-23, 11:40:49 (updated: 2007-11-23, 11:43:10) |
AllHappyDates from Portugal
|
 |
|
|
|
|
|
|
|
|
|