Welcome Guest ( Log In | Register )

Hey there! While you are enjoying browsing the site, why not take a few seconds to register for an even better experience! It's absolutely free and a painfree process!
Here are some of the benefits of registering: Registering is so easy and quick, we don't even require you to deal with those annoying CAPTCHA graphics! Register Now!
 
Reply to this topicStart new topic
> [download] Module: ScriptTools -> support for Rob Brun's Modules.
123
post Nov 3 2009, 10:17 AM
Post #1


Cocoonut
****

Group: Registered
Posts: 1439
Joined: 01.09.06
From: Montreal, QC
Member No.: 1259



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Add to Google Lo-Fi Version Time is now: 20th November 2009 - 10:48 PM
Bridged By IpbWiki © GlobalSoft