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.Paste - Paste object(s) from internal clipboard

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.Paste(mode) ;

Description

Paste the last object or group of objects copied in the Active View Internal clipboard.

Parameters

mode - If mode equal 0, all the pasted graphical object are selected, if equal to 1 all the paste graphicaled object are not selected.

Return Values

result=1 if ok, nil if error

Example

lp_value = 0;
lp_buffer ="error";

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

zz=LPAV_OBJ_ANALOGIC_METER_01;

k=0;
lpav.Insert(10,1,9,9,zz);
lpav.SetClipart( lp.GetPath().."/card/vumeters/vumeter8.emf");
lpav.Insert(20,1,9,9,zz);
lpav.SetClipart( lp.GetPath().."/card/vumeters/vumeter12.emf");
lpav.Copy();

lpav.DeleteAll();
lpav.Paste(0);
lp_buffer ="ok";
lp.Trace("fin");
lpav.RefreshMap();





www.loriotpro.com