Constants

Description

Allows a user to create and define Automate Desktop constants for this computer. Like variables, constants are used to represent data in a task. However, unlike variables, constants maintain the same value from task to task and the value cannot be modified from or within a running task. Constants are local to each computer. For more details, see Constants.

To access Constants settings, from the Task Administrator, navigate to Options > System Settings > Constants.

NOTE: Constants are stored in the Local Machine settings of the Windows registry in the Automate Desktop 2024 registry key. The exact location is HKEY_LOCAL_MACHINE\SOFTWARE\Automate Desktop\Constants. Be aware that serious problems might occur if you modify the registry incorrectly so modify the registry at your own risk.

Related Topics

Parameters

The User defined constants section displays a list of previously created constants. Upon creation of a new constant, this section is populated with its information.

Property Description
Name The name of the constant. This is how the constant is referred to in Automate Desktop tasks and scripts.
NOTE: A constant name must begin with a letter, contain only letters and numbers (no special characters), and contain no spaces.  
Value The value that is contained within the constant.  
Comment A user defined description for the constant. This is used only in the Constant options view as reference, and has no bearing on the actual constant itself.
Enabled Determines whether the constant is enabled or disabled.
Available buttons There are three available buttons to select from which allows the following actions to be performed:
  • Add - Click this button to add a new user defined constant.
  • Modify - Click this button to modify an existing constant.
  • Remove - Click this button to remove the selected (highlighted) constant.