Complex Scripts

Scripting Templates make it pretty easy to create automation scripts that do complicated things, without writing any code (see Creating a Script). But you might want to build a script that does something that isn't covered by a template, or make a small change to a script that was built by a template. Easy Automation allows you to do that. All of the automation scripts are written in JavaScript. The good news is, even if you don't know JavaScript it is very easy and there are a number of websites that can teach you the basics.

The Easy Automation Script Editor provides you with a number of tools to make automation script writing easier, but this section of the tutorial will only focus one of them. The tools pane.



This portion of the Script Editor has three tools that will help you write scripts.
  1. The block pane which contains a number of blocks that you can drag and drop into your script to create code. A block is a pre-written code template (like the script templates) that prompts you for information and then writes a portion of a script.
  2. The trigger pane contains code templates that will help you create triggers. Triggers are the parts of your script that listen for things to happen and then run automation script code in response.
  3. The classes pane contains all of the JavaScript classes, functions and properties that your script can use. Classes, functions and properties are parts of the JavaScript that actually do work.
The tool windows provides instant help for all the items displayed in it. At any time you can click on any of the items in the tool pane and a description of what that item does will be displayed at the top of the pane. You can also hold your mouse over an item in the tool pane and a tool tip will pop-up with even more information on that item.

If you want to add an item in the tool window to your script you can either click on the item and then drag it and drop it into your script, or you can double click on the item and it will be added to the active script. If the item has a template it will ask you to fill in the properties needed to added the item. If it does not have a template it will just directly add it.

Next Blocks