Script Boxes: The Script Box allows you to record any series of interactions with the simulator, including buttons pressed; keyboard commands; placing, moving, and altering objects; using tools; and running simulations. Warning: The Script Box will NOT record wiring actions. To use the Script Box:
If you make an error, click on Clear to delete the script. Then click on Record and re-execute your sequence of actions. You can also edit the script manually as if you were using a text editor. However, this is not recommended except with regard to the delay command. Delay Command: If you want to insert a pause between two commands (for example, between Run and Stop), you should type a delay command directly into the script. The delay command has a simple syntax: where the number indicates the delay in milliseconds. Thus, delay 1000 delays execution of the next command for one second; delay 6000 delays for six seconds; and delay 50 delays for 1/20 of a second. Example: Say your script features a Run command followed by a Stop. The script box will include these two commands: pressTool Run Since simulations that last a fraction of a second are not all that interesting, you decided to insert a delay command. If you want the simulation to run for 30 seconds, the script box should read: pressTool Run File Menu: Open the File menu by clicking on the word File above the script window. This menu has two options:
|