Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Description

This function adds a new SCRIPT task definition during runtime.

Signature

nxa.AddScriptTask (string, string, bool, bool, bool, number, string, number)

Parameters

NameTypeMandatory/OptionalDescription
sourceItemID stringM
destinationItemIDstringM
triggerOnReceiveboolMcorresponds to the OnReceive parameter of the task definition
triggerOnSendboolMcorresponds to the OnSend parameter of the task definition
triggerOnSetboolMcorresponds to the OnSet parameter of the task definition
delaynumberMtime interval in milliseconds that the task will be delayed when triggered
scriptstringMLUA script name that will be executed when the task is triggered
moduleIDnumberOHas to be > 1000. Can be referenced in the nxa.RemoveScriptTask function.

Return

TypeDescription
stringTaskID for reference in nxa.RemoveItemTask(), nxa.ActivateItemTask(), nxa.DeactivateItemTask().
  • No labels