Script Setting

  1. Time Stop: The waiting time after executing each instruction.
  2. Spt Step Speed: The minimum waiting time between instructions.

Normal machine

Example: Time Stop

Use both settings.

Normal machine

Normal machine

Observe the figure below, where the second instruction takes an additional 3s compared to the first instruction.

Normal machine

How to get the 3s?

  • “Time stop” is 1000ms
  • “Sleep” is 3
  • 3s = Time stop * Sleep

Example: Spt Step Speed

Set “Spt Step Speed” to 1000ms.

Normal machine

Notice that the second instruction runs with a 1s delay after the first instruction.

Normal machine

Scripts Management

Provides Multi-Script Management to define the trigger command table.

In other words, you can use RESTFUL or MSMQ to trigger the required script.

Open the MSMQ Execute Scripts Management

Path: Tools > MSMQ Execute Scripts Management Normal machine

1. Choose the MSMQ Cmd

Normal machine

2. Select the Scripts file

Normal machine

3. Click Change.

Normal machine

Attachments MSMQ & RESTFUL sample

  • MSMQ C# Sample (Download)
  • Python Sample
    1. Download and install python from python.org
    2. Run pip3 install requests
    3. Sample code
    import requests
    import json
    
    #trigger script
    url3 = "http://127.0.0.1:5555/executescript/2"
    headers = {'Content-Type': 'application/json'}
    response3 = requests.post(url3, headers=headers)
    print(response3.text)
    
    #stop
    url4 = "http://127.0.0.1:5555/stopscript"
    headers = {'Content-Type': 'application/json'}
    response4 = requests.post(url4,headers=headers) 
    print(response4.text)
    

AutoRun

Set up the Background Schedule.

Path: Tool > Config > Background Schedule Setting

Normal machine

Select the “Script File” you want to run.

Note: Enable the “Run script if HID keeps idling over timeout.”

Normal machine

You can also click Start(Auto) without selecting the “.spt” file again once you have selected the script file.

Normal machine

HID idle time: The script will AutoRun when both keyboard & mouse have been idle for the set time.

Autorun screensaver timeout: A 10-second countdown will begin before automatic execution.

Normal machine