The other suggestions sound good, but if you really want to simulate the mouse click, you need to know the coordinates that you want the click at and the form name. Then,
MOUSE click AT 54,184 PIXELS WINDOW "MYFORM"
HTH
Ron Seidl
Independent Developer
VFP
"I'm playing in life's theater in anticipation of a great cast party!"