LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lpav.InsertAction - Set double click action on a graphical object

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax 

result = lpav.InsertAction(type,parameters) ;

Description

Define the mouse double click action attached to a graphical Active View Object.

Parameters

type - The type of action to perform. The list of available paramleters is stored in the file loriotinit.lua

dofile(lp.GetPath().."/config/script/loriotinit.lua");


type parameter
LPAV_ACTION_NONE
LPAV_ACTION_LOADMAP
LPAV_ACTION_WINEXEC
LPAV_ACTION_SHELLEXEC
LPAV_ACTION_PLUGIN
LPAV_ACTION_TABLE
LPAV_ACTION_SCRIPT_REP
LPAV_ACTION_SCI
LPAV_ACTION_FOUND_INDIR
LPAV_ACTION_MODAL_MAP
LPAV_ACTION_SET_OID
LPAV_ACTION_CLEAR_EVENTREF
LPAV_ACTION_CLEAR_EVENTFILTER
LPAV_ACTION_CLEAR_TRAPFILTER
LPAV_ACTION_CLEAR_EVENTGENERATED
LPAV_ACTION_CLEAR_TRAPGENERATED
LPAV_ACTION_CLEAR_TRAPREF
LPAV_ACTION_RUN_SCRIPT_LUA

parameter - The parameters link to this action. It is a character string that can be created from the graphical user interface. We recommend to use the user interface to create such commend line parameters.

Warning : the sofwtare doesn't test that your command line syntax is valid

Return Values

result=1 if ok, nil if error

Example




www.loriotpro.com