With the toolbar object wrapper you can simulate clicks on the buttons of a standard Windows toolbar. Its select method accepts either a zero-based button index or a button text. Searching by text only works if buttons are displayed as text.
// Click on the "Open" button on the standard bar Toolbar.select(1);
| select | Simulates a click on the specified toolbar button. No actual mouse events are generated so the application does not need to be in the foreground. |
|---|---|
| click | Generates a real mouse click on the specified button. The application is brought to foreground if required. |
| count | Returns the number of buttons on the toolbar. |
|---|