How to Add Macro Actions to the Script

Macro Actions can be added to your script in multiple ways. This tutorial outlines the steps to quickly add actions to a script. Generally, macro actions either require screen coordinates (such as Left Click, Right Click, or Double Click) or do not require coordinates (such as Keystrokes, Launching Applications, or Window controls).

How to Add Macro Actions to the Script
How to Add Macro Actions to the Script

Picking Screen Locations and Adding Macro Actions Easily

When automating mouse actions in a script, you can use the Pick button to target screen locations. For example, to add a Left Click action, follow the steps below:

  1. Click on the Pick button. Note that the software will minimize automatically and the mouse cursor will transform into a target crosshair.
  2. Manually click on your desired screen location.
  3. The software window will restore automatically and append the Left Click action with your selected coordinates to the script.

You can repeat this process to add as many click actions as needed. This targeting method works for any coordinate-based action, including Right Click, Double Click, Middle Click, and Shift + Click.

Pick Screen Coordinates and Add Macro Action to the Script easily
Pick Screen Coordinates and Add Macro Action to the Script easily

The current mouse cursor position is displayed in real-time within the software status bar located at the bottom of the window (e.g., Current Mouse Cursor at X = 874, Y = 484). You do not need to record coordinates manually—the software captures and stores them automatically.

Add Selected Action Automatically with Pick Button - Other Settings
Add Selected Action Automatically with Pick Button - Other Settings

The operational mode of the Pick button can be customized via the Other Settings option in the right-click menu. The right-click menu provides access to numerous helpful features designed to streamline macro editing.

Right-Click menu with Other Settings Menu Item
Right-Click menu with Other Settings Menu Item

Adding Macro Actions using Keyboard Shortcuts

Another fast way to populate your script is by assigning a keyboard shortcut. Pressing the shortcut key automatically grabs the current cursor coordinates and appends your selected action to the script.

Assign a Keyboard Shortcut to Read Screen Location under Mouse Cursor and add a Macro Action to the Macro Script
Assign a Keyboard Shortcut to Read Screen Location under Mouse Cursor and add a Macro Action to the Macro Script

Keyboard shortcuts are especially efficient when capturing multiple screen locations in rapid succession. To assign a shortcut:

  1. Click on the hotkey box displaying None.
  2. Press your desired shortcut key combination (e.g., F6 or Ctrl + W).
  3. Click Assign.

Once configured, hovering over any screen point and pressing your shortcut will instantly log the coordinates and append the selected macro action. You can further customize shortcut behavior and confirmation popups inside the Other Settings screen.

Left Click Macro Actions added to the Macro Script with Keyboard Shortcut
Left Click Macro Actions added to the Macro Script with Keyboard Shortcut

This tutorial covers the primary methods for adding macro actions to your automation scripts. You can also watch Auto Mouse Click Video Tutorials to explore further script editing techniques and advanced automation capabilities.