Running a Script

Running a script from inside the script editor is very simple. Just click on the 'Play' button in the menu bar.



You will be asked to save your script before it runs. If you choose to not save the script, then it will not run. The first time the script is saved it will ask you for some information about the script.



That screen is used to give the script a name, description, and to set if it should run automatically when the Script Manager starts up. Once you fill in that information then you can click on 'OK' and you will be asked to choose the file name to save the script under. If you want to change that information later click on the 'Properties' button on the menu bar.

Once the script is saved it will start running. It will look like nothing has happened, but really your script is waiting for you. If you remember we put a trigger in the script that looks for the Ctrl, Alt, and N keys to be pressed (see Creating a Script). So press those three keys now, and Notepad will start up. The script will then go back to sleep and wait for you to press those three keys again. While the script is running if you would like to stop it just click on the 'Stop' button on the menu bar and a moment later the script will stop. Any log messages the script generates will be displayed in the 'Information from the Script' section at the bottom of the Script Editor.



When the script is finished running you can click on any message in the 'Information from the Script' window to jump to the line in the script that generated that log statement.

Now that you have a script built and you know it runs, you can close the Script Editor. Once more you should see the Script Manager.



If you don't then click on the Script Manager icon on the task bar to display it again. The script you just created will now be in the list of available scripts. If you would like to run the script from there, click on the script in the list, then click on 'Run'. Again it will seem like nothing has happened, but if you click the Ctrl, Alt, and N keys at the same time, Notepad will pop-up again. You can stop a script by clicking on the script then clicking on 'Stop'.

Next Editing Scripts