Sends a mouse click command to a given control.
ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y]]]] )
| title | The title of the window to access. |
| text | The text of the window to access. |
| controlID | The control to interact with. See Controls. |
| button | [optional] The button to click, "left", "right", "middle", "main", "menu", "primary", "secondary". Default is the left button. |
| clicks | [optional] The number of times to click the mouse. Default is 1. |
| x | [optional] The x position to click within the control. Default is center. |
| y | [optional] The y position to click within the control. Default is center. |
| Success: | Returns 1. |
| Failure: | Returns 0. |
| Button | Normal | Swapped |
| "" | Left | Left |
| "left" | Left | Left |
| "middle" | Middle | Middle |
| "right" | Right | Right |
| "primary" | Left | Right |
| "main" | Left | Right |
| "secondary" | Right | Left |
| "menu" | Right | Left |
ControlClick("[CLASS:Notepad]", "", "MDIClient1")