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

lp.SetIconForUID

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

value = lp.SetIconForUID('uid','imgfile_ico')

Description

Change the current icon of an object of the directory.

Parameters

uid - the Unique number of the object in the LoriotPro directory

imgfile_ico - the name of the icon file. The path should be related to the /bin directory of LoriotPro. ex: icons/computers/pda.ico

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

ret= lp.SetIconForUID('5838789326292385802','icons/computers/pda.ico')

->After replacement Icon Before


www.loriotpro.com