This documentation is for Macro Recorder v3 beta. Click here the for current production version 2 documentation.

Variables

Some Macro Recorder actions create data that is stored in variables and other actions may read variables as an input.

For example, Macro Recorder can find the X/Y position of a provided bitmap on your screen and store the X and Y coordinate in variables, e.g. a game character of a specific shape anywhere on the screen. The script can then click on the X/Y position later.

If the variable contains text, it can also be used in our productivity solution PhraseExpress.

Variables are volatile and dismissed on program shut-down.

Create new variable

To define a variable, simple type in the desired name in the corresponding input box in the dialog window of any Macro Recorder action that generates data:

You can also use the "Set variable" action to create a new variable and/or set the contents of an existing variable:

Use variables

To use a variable, enter its name or select from any existing variable that has been defined earlier in your script:

You can also use variables, created in Macro Recorder in the productivity solution PhraseExpress. Macro Recorder can also read variables defined in PhraseExpress.

Calculation

Macro Recorder can perform calculations with variables and store the result in a variable:

This feature allows you to create counters, calculate the distance between multiple images or text found on the screen or calculate mouse coordinate offsets, for example.

Table of Contents


Table of Contents