Product Logo

MMScript

Trigger and schedule scripts

Functions

MMScript_CreateImmediateScriptEvent

NameMMScript_CreateImmediateScriptEvent
Description

Use this function to call a script immediately. This is useful for processing fields when a user leaves them or for calling a dynamically named script.

Return TypeText
FormatMMScript_CreateImmediateScriptEvent ( Script ; DB ; EventName ; EventValue ; Priority ; CurrentScript )
Required Parameters
Script

The Script to call.

Optional Parameters
DB

The Database that contains the Script.

EventName

The Name of the Event you are creating.

EventValue

Any user defined Value you can retrieve when the Event occurs.

Priority

Defines how interruptive the Event is. (Specify “Low”, “Normal”, “High”, or “Highest”.)

Low - The Event occurs if the user has not done anything for 30 seconds or more.

Normal - The Event may occur even if the user has done something within the last 30 seconds, but no script is running.

High - The Event may occur if the user is running a script that is currently paused.

Highest - The Event attempts to run even if there is already a script running.

CurrentScript

Defines what to do with the currently running script (if any). (Specify “Halt”, “Exit”, “Resume”, or “Pause”.)