Hey every1,
Just to let you know I've updated vbscript plugin host (Lets call it scripting host). I think I've done enough to raise the major version number from one to two.
This update is a beta version like the first version always was (
) but hopefully il get this to a release standard.
I have made a simple self extracting installer which will do all the work for most users. Well all except those with a nondefault plugin directory location. This is attached to this post.
Please use the update log and the examples to see what has changed.
The update includes:
- Old scripts should work find with this version, if they dont, just add a blank GetPublishInfo sub, that should do the job, i.e.
code:
Sub GetPublishInfo
End Sub
- New Sub (GetPublishInfo) in vbscripts to allow commands and tags to be listed, with help commands and etc.
- New 'Helper' class which will help with developing more advanced plugins. It will allow you to change the users friendly name cleanly through the plus api. You will be able to Display Toasts with the full options of the Plus Api. The Helper class is self explanatory, it basically implements everything from the MPPluginConst.bas module for VB6. It also includes two other functions AddCommand and AddTag which can only be called during GetPublishInfo, these functions are what allow you to add commands to the Plus! Menu.
- Examples have been heavily updated and are a bit more advanced although still do not demostrate the potential power for making a useful plugin quickly
- Touched up the code to give a huge speed improvement.
- VBScripts are now loaded on Initialize.
- Added more error handling, if a script has an error in it, an advanced error dialog will be shown showing the exact error in the script and location etc. Also, an error by one script will not affect all the other scripts, they will continue to run. Also, the error'ed plugin if possible will remain in memory so working functions within the script can still be called
- NOTE: If an error occurs in GetPublishInfo or a syntax error occurs the script will not be loaded into memory and initialized, however the advanced error dialog will still show you what is wrong with the script.
- I have removed some ActiveX references and needless untidy code so the dll should be smaller and more reliable.
UPDATE AGAIN: Jscript support has now been added, please see the following post for the new build with JScript.
http://shoutbox.menthix.net/showthread.php?tid=20...d=348297#pid348297