Recording a Script

Electronics Desktop can record a script based on UI actions and save this script in Python (*.py) format.

Scripts can be saved to an external file, or to the project.

Important:

When you record a script, every subsequent action you take is recorded. You must manually stop recording.

Recording a Script to File

To record a script to file:

  1. Click Tools > Record Script to File, or select the Automation tab and click the Record Script icon:

    Scripting Icons

    A Save As file browser appears.

  2. Navigate to the location where you want to save the script.
  3. In the File Name field, type a name for the script file.
  4. Click Save.

    The Record Script button transforms into a Stop Recording button, and Electronics Desktop begins recording your actions.

    Stop Recording

  5. Perform the steps you want to record.
  6. When you have finished recording the script, click Stop Recording, or select Tools > Stop Script Recording.

    The recorded script is saved to the folder you specified.

Recording a Script to a Project

To record a script to a project:

  1. Click Tools > Record Script to Project, or select the Automation tab and use the Record Script drop-down menu to select Record Script to Project.

    Record Script to Project

    The Save Script to Project dialog box appears:

    Save Script to Project

  2. Enter a name for the script in the text box, then click OK.
  3. Perform the steps you want to record.
  4. When you have finished, click Stop Recording, or select Tools > Stop Script Recording.

    The recorded script is saved to scriptname.py in the Scripts library and can be accessed from the Project Manager. See: Working with Project Scripts.