Creating a Script

Automating tasks in Easy Automation is pretty simple. All you need to do is create an automation script to tell the Script Manager what it needs to do. New scripts are built using the Script Editor.



To create a new script you start by clicking on the 'New' button on the tool bar. This will bring up the 'New Script' dialog.



The 'New Script' dialog shows a number of different types of tasks that can be automated. Each type of task is represented by a template. Clicking on a category on the left, will present you with a selection of templates in that category. When you select one of the templates on the right, a description of what that type of script would do is displayed at the top.

For our example we will create a script that will run Notepad, any time the Ctrl, Alt, and N keys are pressed at the same time. To do that start by clicking on the 'Appliction Helpers' category. Then click on the 'Run Application on Event' template. Then click on 'OK'. You will now be presented with a template properties dialog.



You will see this type of dialog in a lot of places in Easy Automation. What it is asking you to do is provide information the template needs to create your customized automation script. In this case it needs to know what application you want to run, and when you want to run it. If you click on a 'Property' in the list, a description of what that property is used for is displayed at the bottom of the dialog. You can then click on the value part and fill in a value. Some values you edit directly, some values you can pick from a list, and some values will present a ... button you can used to fill in the information.

For our example (running Notepad when Ctrl, Alt, N is pressed) we want to choose Notepad as the application to run. Drop down the list and select Notepad. Now we need to say when we want the script to run it. Click on 'Run the Application' then click on the ... button in the 'Value' column. Now drop down the list presented and choose 'When a Specific Key Combination is Pressed' then click on 'OK'.

You are now presented with a second template dialog (I told you they are used in a lot of places.) This one is asking you for the properties needed by the 'When a Specific Key Combination is Pressed' trigger. More on what a trigger is later. For now click on the ... button for the 'Key Combination' property, check 'Ctrl' and 'Alt', then drop down the list and choose 'N'. When you are done click on 'OK'. You have now set the key combination that will cause this trigger to fire. Click on 'OK' and you will see that the 'Run the Application' property is now filled in. You are now done and can click on 'OK'. Once you do that your customized script will be created. Now all that is needed is to run it.

Next Running a Script