> For the complete documentation index, see [llms.txt](https://exbot.obrassard.ca/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://exbot.obrassard.ca/methods-summary.md).

# Methods Summary

Exbot class include several action methods based on Java Robot. It allows you to quickly create robot workflow that interacts with the operating system of a computer.

| Method and Description                                                                                                                                                                                                                   | Modifier and Type | Operating system                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | --------------------------------------------------------- |
| <p><a href="/getting-started.md#getting-started">Exbot</a>()<br><em>Constructs an <strong>Exbot</strong> object in the coordinate system of the primary screen.</em></p>                                                                 | -                 | All                                                       |
| <p><a href="/methods-detail.md#mouseclickat">mouseClickAt</a>(int x, int y)<br><em>Perform a click at the specified coordinates</em></p>                                                                                                 | void              | All                                                       |
| <p><a href="/methods-detail.md#mouserightclickat">mouseRightClickAt</a>(int x, int y)<br><em>Perform a right click at the specified coordinates</em></p>                                                                                 | void              | All                                                       |
| <p><a href="/methods-detail.md#mousedoubleclick">mouseDoubleClick</a>(int x, int y)<br><em>Perform a double click at the specified coordinates</em></p>                                                                                  | void              | All                                                       |
| <p><a href="/methods-detail.md#mousedraganddrop">mouseDragAndDrop</a>(int srcX, int srcY, int destX, int destY)<br><em>Drag and drop form a source coordinate to a destination coordinate</em></p>                                       | void              | All                                                       |
| <p><a href="/methods-detail.md#pressenter">pressEnter</a>()<br><em>Press the ENTER key</em></p>                                                                                                                                          | void              | All                                                       |
| <p><a href="/methods-detail.md#typetext">typeText</a>(String text)<br><em>Write text as direct keyboard input (A-Z letters, space, numbers or dot only)</em></p>                                                                         | void              | All                                                       |
| <p><a href="/methods-detail.md#writetext">writeText</a>(String text)<br><em>Write text with the bot by pasting a given string from the clipboard</em></p>                                                                                | void              | All                                                       |
| <p><a href="/methods-detail.md#closecurrentwindows">closeCurrentWindows</a>()<br><em>Close the current windows</em></p>                                                                                                                  | void              | All                                                       |
| <p><a href="/methods-detail.md#closecurrentwindows">closeCurrentWindows</a>(boolean quit)<br><em>Close the current windows or quit the current app (on macOS)</em></p>                                                                   | void              | All                                                       |
| <p><a href="/methods-detail.md#shortcut">shortcut</a>(int keycode)<br><em>with the cmd or ctrl key (depending of the os) and another specified key</em></p>                                                                              | void              | All                                                       |
| <p><a href="/methods-detail.md#macshowspotlight">macShowSpotlight</a>(String text)<br><em>Do a "cmd + space" to show the Spotlight search box on mac</em></p>                                                                            | void              | [macOS](/methods-summary.md#about-os-exclusive-methods)   |
| <p><a href="/methods-detail.md#windowsshowstart">windowsShowStart</a>(String text)<br><em>Press on the "windows" key to show the start menu on Windows</em></p>                                                                          | void              | [Windows](/methods-summary.md#about-os-exclusive-methods) |
| <p><a href="/methods-detail.md#messagesender">messageSender</a>(int x, int y, String text)<br><em>Write string in a text box and "send" it one times (by pressing enter)</em></p>                                                        | void              | All                                                       |
| <p><a href="/methods-detail.md#messagesender">messageSender</a>(int x, int y, String text, int frequency)<br><em>Write string in a text box and "send" it several times (by pressing enter)</em></p>                                     | void              | All                                                       |
| <p><a href="/methods-detail.md#messagesender">messageSender</a>(int x, int y, String text, int frequency, int interval)<br><em>Write string in a text box and "send" it several times (by pressing enter), at a given interval.</em></p> | void              | All                                                       |
| <p><a href="/encryption-methods.md#encode">encode</a>(String textToEncode)<br><em>Encode a string using BASE64</em></p>                                                                                                                  | static String     | All                                                       |
| <p><a href="/encryption-methods.md#decode">decode</a>(String textToDecode)<br><em>Decode a BASE64 string</em></p>                                                                                                                        | static String     | All                                                       |

## About OS exclusive methods

Methods starting with *mac* or *windows*, for instance `macShowSpotlight()`, are exclusive to their operating system. You should only use them on the appropriate OS. Of course, other methods can be use on all systems.
