Working with variables


Variable is a symbol that can hold temporary values when a macro is playing. You might use it to perform different operations on an action, depending on the value of the variable.

In Macro Expert, there are two type variables, the global variables and user variables. The global variables are predefined by Macro Expert, and you cannot remove or change them. They provide the global information, such as the current time, mouse pointer position, path of the windows folder, etc. The user variables (or local variables) are defined by you to collect the data of action in a macro. It allows you to define up to 256 user variables in a single macro.

For more information about the variable and expression, please click here.

Adding a variable

  • In Macro Editor, click the "Variables" menu, and then select the menu item "Add a Variable...". As an easy way, you can click the button on the User Variables.

Editing a variable

  • Select the variable which you'd like to modify, and click the "Variables" menu, and then select the menu item "Edit Variable...". As an easy way, you can click the button on the User Variable.

Deleting variables

  • Select the variable which you'd like to remove, and clicks the "Variables" menu, and then select the menu item "Remove Variable". You can also click the button on the User Variable to do that.

Using variables

  • The most actions support using variables. In the action editing dialog, you use the percentage sign % to quote the variable, for example: %now%, %v_number%, %=v_text+"abc"%.
The below illustration shows you what the variables list looks like.