Product Purchase Download Contact us Affiliates

Working with variables

»Download a trial now( Free )!!

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 a variable. For example, you use the action "Mouse Move" to place the mouse pointer to the position, you might use the variables to instead of the constant for the coordinates. When the action is executed, the mouse pointer will be placed in the position which is represented by the current value of the variables.

Macro Expert allows you to define up to 256 variables for a macro. You may utilize Macro Editor to add, modify and remove a variable.

To using a variable


  • In the action editor dialog, a variable name should be quoted with the percentage signs(%), like this %VARIABLE_NAME%. (VARIABLE_NAME is a placeholder which should be replaced with a real variable name.) At the runtime, the variable name and the percentage signs(%) will be replaced by the current value stored in the variable.

Notes:

  • If you want a percentage character to appear within the expression, use \% to instead, also, use \\ to represent the backslash character.

For example, in "Move mouse" action, the defined variable "var_x" represents the x coordinate, and "var_y" represents the y coordinate.

To add(define) a variable

  • Click the "Variables" menu, and then select the menu item "Add a variable...". As an easy way, you can click the button on the variables list.

To edit 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 variables list.

To remove the current selected variable

  • Select the variable which you'd like to remove, and click the "Variables" menu, and then select the menu item "Remove a variable...". In this case, you can also click the button on the variables list to remove the variable.

The below illustration shows you what the variables list looks like.




© 2002 - 2007 GrassSoftware, All rights reserved.
Privacy Policy | Contact us | About us | Links | Affiliate | Site map