The pausetime attribute

The pausetime attribute of the <HAScript> element specifies a time period for the macro runtime to wait as follows:
  • After performing an Input action or a Prompt action, to allow all the possible side effects of either of these two actions to complete
  • After performing the last action in a macro screen, to allow any other side effects of action-processing to complete
Through HCL ZIETrans Version 5, the pausetime attribute was implemented as a pause after every type of action, not just after Input and Prompt actions. It is now implemented as follows:
  • The macro runtime waits for the following:
    • An interval equal to 50% of the pause time after every Input action or Prompt action except the last one in a macro screen.
    • An interval equal to 100% of the pause time after the last action in a macro screen.
  • The macro runtime does not wait for the following:
    • After the last Input action or Prompt action in a macro screen, unless it is the last action in the macro screen.
    • After any other type of action, unless it is the last action in the macro screen.
By default, the pausetime attribute is enabled and the timeout value is set to 300 milliseconds. Therefore by default the macro runtime:
  • Waits 150 milliseconds after every Input action or Prompt action except the last one in a macro screen.
  • Waits 300 milliseconds after the last action in a macro screen.

Notice that the pausetime attribute affects every macro screen. Therefore this one setting allows you avoid timing errors throughout the macro, without having to change each macro screen that might have a problem.