123
Senior Member
File Name: Module: ScriptTools -> support for Rob Brun's Modules.
File Submitter: 123
File Submitted: 3 Nov 2009
File Category: Premise
Author: Rob Brun
Contact: None
Version: 2.01
Original Author: Rob Brun
Created: 2003-03-17
Original post.
ScriptTools is a support Module containing Global functions. Many of Rob's Modules use these functions and require the presence of the ScriptTools module.
-------------------------------------------------------------------
ScriptTools is a module that contains reusable functions that may be called from other user submitted modules.
Function DotThePath(strTemp)
This function converts a SYS object path from its URL form to a dot notation form.
Example:
sys://Devices/NetWatch/Monitored Devices/LocalHost
becomes
Devices.NetWatch.Monitored_Devices.LocalHost
This is particularly useful when you want to create a timer on the fly. See the CreateTimer(objDevice) function in the Global script of the NetWatch user contributed module.
The following were stolen from the irrigation module and made more generic. Also added ability to add an image to a ScriptMenu
Function g_GetOrCreateChildObject(oTemp, stType, stName)
sub g_AddBrowserImage(oTemp, strImagePath)
sub g_AddScriptMenuItem(oTemp, stName, stScript, strScriptPattern, strImagePath)
Click here to download this file
File Submitter: 123
File Submitted: 3 Nov 2009
File Category: Premise
Author: Rob Brun
Contact: None
Version: 2.01
Original Author: Rob Brun
Created: 2003-03-17
Original post.
ScriptTools is a support Module containing Global functions. Many of Rob's Modules use these functions and require the presence of the ScriptTools module.
-------------------------------------------------------------------
ScriptTools is a module that contains reusable functions that may be called from other user submitted modules.
Function DotThePath(strTemp)
This function converts a SYS object path from its URL form to a dot notation form.
Example:
sys://Devices/NetWatch/Monitored Devices/LocalHost
becomes
Devices.NetWatch.Monitored_Devices.LocalHost
This is particularly useful when you want to create a timer on the fly. See the CreateTimer(objDevice) function in the Global script of the NetWatch user contributed module.
The following were stolen from the irrigation module and made more generic. Also added ability to add an image to a ScriptMenu
Function g_GetOrCreateChildObject(oTemp, stType, stName)
sub g_AddBrowserImage(oTemp, strImagePath)
sub g_AddScriptMenuItem(oTemp, stName, stScript, strScriptPattern, strImagePath)
Click here to download this file