The DoClick method emulates a mouse click.
object.DoClick
Object:Form, Command, Option, CheckBox, RichEdit, TextBox Ocx
Emulates a mouse click in the named Ocx objects.
Ocx Command cmd1 = "Click Me...", 10, 10, 100, 22
Ocx Command cmd2 = "...to Activate Me", 120, 10, 100, 22
Global cmdclick As Byte
Do : Sleep : Until Me Is Nothing
Sub cmd1_Click
cmdclick = 1 : cmd2.DoClick
EndSub
Sub cmd2_Click
If cmdclick = 1 Then Message "Button 2 activated by Button 1"
cmdclick = 0
EndSub
Form, Command, Option, CheckBox, RichEdit, TextBox
{Created by Sjouke Hamstra; Last updated: 03/10/2014 by James Gaite}