Home   |   Software   |   Practical Jokes   |   Code Corner   |   Workshops


Delphi Secret #3

Simulating a Mouse Click
 
 
     This command will send a mouse click to the WinControl specified by its handle. You can specify whether you want a left-button click or a right-button click.

Code:
Left Button:
   PostMessage(handle, WM_LBUTTONDOWN, 0, 0);

Right Button:
   PostMessage(handle, WM_RBUTTONDOWN, 0, 0);




This page was developed by FoxWare Design & Support.
Hosted by www.Geocities.ws

1