Script Reference : Registry

These functions are intended to store data to registry.

Registry Functions
Name Return type Description
string CfgGetValue(string name) string Retrieves value stored in the registry
bool CfgSetValue(string name,string ) bool Saves value to the registry.
bool CfgDeleteValue(string name) bool Delete value from registry

All values are stored in priPrinter registry branch:

HKEY_CURRENT_USER\Software\Pelikan Software KFT\priPrinter\script

Name of the value may contain name of value and key: "bNumber/index"

Sample:
local i;
local data=CfgGetValue("bNumber/index");
if(data.len())
	i=data.tointeger()
else i=0;

i+=1;
CfgSetValue("bNumber/index",i);