Skip to main content

DoClick Method

Programmatically fires the OnClick event

Definition​

DoClick(Point, Point, Button, Shift, Ctrl)

Parameters​

ParameterDescription
PointThe mouse coordinates, formatted as "x,y"
ButtonThe button pressed
ShiftShift key status
CtrlControl key status

Remarks​

The DoClick method programmatically fires the button's OnClick event. The parameters are passed "as is" through the event, so be sure to adhere to the parameter format and values described in the OnClick event. (See the OnClick event for details).

Example​

// Fire the on click event for the left mouse button
Send_Message(@Window:".OLE_BUTTON", "OLE.DoClick", "0,0", "Left", 0, 0)

See Also​

OnClick