Multiple Command Script Wizard

The Multiple Command Script Wizard enables you to create a sequence of commands, using one or more Command Experts, that is triggered by one of these types of events: a mouse click on an object in a picture, a time-based or event-based Scheduler entry, or a key macro.

When you open the wizard and select a command, the Expert associated with the command will appear.  The selections you make in the Expert automatically create a VBA script that is run when the trigger event occurs.  Each time you add a command in the wizard, its corresponding Expert will appear, enabling you to append the Expert's VBA script to the scripts created by the previous commands in the sequence.

You can use the wizard to delete or re-order commands in the sequence.  When you do this, the VBA script associated with the affected commands will be automatically deleted or re-ordered to reflect the new sequence displayed in the wizard.

To use the Multiple Command Script Wizard:

  1. In the Key Macro Editor, Scheduler, or the Basic Animation dialog box, access the Multiple Command Script Wizard.
  2. Add one or more commands by either selecting one from the Select Action to Append list, or clicking the Append Action button to add the currently selected command.
  3. Optionally, move a command to a different position in the sequence by selecting it and clicking the Up or Down arrow button.
  4. Optionally, delete a command from the sequence by selecting it and then clicking the Delete Action button, or delete all commands by clicking the Delete All Actions button.
  5. Optionally, modify a command by clicking the Modify a Selected Action button. When the Expert for the associated command appears, make your changes to the Expert's settings and click OK.

NOTES:

  • Although the Multiple Command Script Wizard's purpose is to fully automate the VBA command scripting process, you can manually edit scripts generated by the wizard with the VB Editor. You may add or edit VBA scripts anywhere before the Scripts Authoring Tool header line (***** Scripts Authoring Tool *****), or directly between a "WizardEnd" and a “Wizard[x]=” statement. Do not edit any of the commented areas in the wizard-generated script. If the Multiple Command Script Wizard detects an improperly customized VBA script, you may encounter an error.
  • The Multiple Command Script Wizard does not check the command sequence to make sure commands occur in a logical order.

See Also

How Do I...