Often times you will need a script to run when no one is around to start it (i.e. overnight). Windows includes a reliable function to do this for you called “Task Scheduler”. With the task scheduler you can start your EMUE program at any time, and run a script with a couple of different options. Let’s take a look at the process.

Step-by-step guide

Running EMUE Automatically with Task Scheduler

Step 1: Open the Task Scheduler

Type “Task Scheduler” directly into the start menu search bar, and click on the program when it comes up.

Step 2: Using the Wizard to create a task

Click on “Create Task…” to open the task scheduling wizard.

    1. On the “General” tab, give your task a name.

    1. If you like you can add a description, but it is not required.

    1. Make sure that the radio button next to “Run only when user is logged on” is selected. This means that the account you used when creating the task must be logged in to the computer for your scheduled script to run. It is okay to lock the computer, but if you log in with a different account or turn off the computer, the script will not launch. Check the box next to “Run with highest privileges”

Step 3: Setting Triggers

Next, click on the “Triggers” Tab and click the “New” button.

    1. Select the radio button next to how often you want your script to run.

    1. Next, select the options for the interval you chose.

Step 4: Creating a new “Action

Now, click “New” to add an action on the “Actions” tab.

    1. Ensure that the type of action is set to “Start a program”.

    1. Click the “Browse” button and then navigate to the EMUE program.

Note About Actions: Multiple scripts can be scheduled within one Task Scheduler "Action". Simply repeat this step for each script you would like to start at the same time. Once the task executes, scripts will be completed in the order they are entered into the actions tab. For example, Script 1 will start and complete, then script 2 will start and complete, etc. with each starting and completing before starting the next task in the list.

Step 5: Conditions and Settings

Next, set “Conditions” and “Settings” as appropriate to your situation. In general, you will need to decide on at least two options that are shown below on the settings tab:

    1. “Run task as soon as possible after a scheduled start is missed” – By selecting this option, the task will run as soon as possible should the computer accidentally be shut down or restarted when a script is scheduled to run.

  1. “Stop the task if it runs longer than:” – This option should be unchecked to allow EMUE to remain in debug mode until you are able to see the screen. Otherwise, the task may be closed and error reporting may not be sent correctly.

Step 6: Finishing Up

Lastly, click “OK” to finish scheduling the task. This completes the scheduling task and brings you back to the main screen. To verify that the task has been successfully scheduled, click on “Task Scheduler Library”, and then search for your task as shown below. From here you can edit or delete the task as necessary by right clicking on the task itself. 

If you want to learn more, check out this video: Click Here for the Scheduling a Script Video

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues