Selecting the Activation Method

When you create a script, you assign it a unique name and an activation method. A script with no activation method selected can still be called by another script, but it cannot be activated by itself. You can select from the following activation methods in the Script Editor:

Select from Menu

Activates the script from a script execution option added in the TE Client menu.

Called from Another Script

Activates the script only when it is called by another script.

On Key Combination

Activates the script when the key combination is pressed. For information on using the Diagnostics Utility to obtain key values, see Using the TE Client Diagnostics Utility.

When Session Connects

Activates the script when a session begins for the host profile the script supports. You should not have more than one script set to start when a session begins because the first script started will prevent any other scripts from running while it waits for the initial screen.

On Barcode, MSR, or RFID Scan

Activates the script when an item is scanned. This option is only available after you have created the string variable Scan_String to obtain the initial scan data and the number variable Scan_Type to obtain the type of scan data.

See the Terminal Emulation Scripting Reference Guide for the values of different symbologies.

If you want to perform special processing on items scanned into the computer, the Scan Handler is often powerful enough to make the changes you need. The Scan Handler settings, found in the Configuration Manager, are located in Emulation Parameters > Scanner > Common > Scan Handler.

On Screen Update

Activates the script every time the text on the emulation screen changes. This includes updates from the host or when the user presses a key and the key value is shown on the screen It is recommended that you limit the host profiles that a script using this method will support.

To select the activation method for a script, launch the Script Editor configuration dialog box and choose the appropriate method on the General tab.

In addition to the activation methods available in the Script Editor, you can also activate a script from the screen reformatter or, if you are using the Industrial Browser, from a web page. If you choose one of these methods, you don't need to specify the activation method in the Script Editor.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal