Shoutbox

VBScript & JScript - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: VBScript & JScript (/showthread.php?tid=93388)

VBScript & JScript by SmokingCookie on 12-31-2009 at 07:37 PM

I've been thinking (pretty rare eh); in HTML pages, JScript and VBScript can run side-by-side. Can this be done easily within Plus!, like through a VBScript engine that has its own ActiveX control?

Oh and happy new year everyone!


RE: VBScript & JScript by matty on 12-31-2009 at 07:52 PM

If you were to design a Plugin system I am sure you could make it work.


RE: RE: VBScript & JScript by SmokingCookie on 12-31-2009 at 07:57 PM

quote:
Originally posted by matty
If you were to design a Plugin system I am sure you could make it work.

That was one of my first thoughts too, yet I have absolutely no idea where to begin. :S
What exactly do you mean with "Plugin system"..?
RE: VBScript & JScript by Eljay on 12-31-2009 at 07:58 PM

There already is an ActiveX to do it, "MSScriptControl.ScriptControl". Enjoy :P


RE: VBScript & JScript by SmokingCookie on 01-01-2010 at 11:07 AM

Well, I think that'll make it a little easier :P

The page at MSDN says there's very little documentation on the ScriptControl object, so I'm afraid I'll need to come back to this topic some time..

Anyway, thank you for this link, I'll see if I get some of it :P
Grtz

EDIT: cool (H) I've managed to expose the MsgPlus object to the VBScript engine and display a toast through a .vbs file. Pretty useless, but hey, it's a start :P


RE: VBScript & JScript by SmokingCookie on 01-22-2010 at 07:56 PM

Well, I'm almost done writing the plug-in system. However, is it possible that the MSScriptControl.ScriptControl object is not available on all machines?


RE: VBScript & JScript by Eljay on 01-22-2010 at 08:09 PM

quote:
Originally posted by SmokingCookie
Well, I'm almost done writing the plug-in system. However, is it possible that the MSScriptControl.ScriptControl object is not available on all machines?

Well, Plus! uses the script control I believe (not sure if it uses the activex, but it definitely uses WSH), so if it wasn't available, then Plus! scripts wouldn't work at all, so this is not really a problem :P
RE: VBScript & JScript by SmokingCookie on 01-22-2010 at 08:13 PM

So the ActiveX is always available...?


RE: VBScript & JScript by Eljay on 01-22-2010 at 08:22 PM

quote:
Originally posted by SmokingCookie
So the ActiveX is always available...?

As far as I know, yes. The script control (msscript.ocx) is part of WSH which is installed with Windows afaik. If WSH isn't installed then your script will never load so it shouldn't be a problem.

Edit: I mean your script will never load as in Plus!'s scripting system won't work, not your script specifically, this is rather awkward to word :P
RE: VBScript & JScript by SmokingCookie on 01-22-2010 at 08:26 PM

I got it :P

All there's left to do, is finding a way to relay window events to the plug-in system *-)


RE: VBScript & JScript by matty on 01-22-2010 at 08:52 PM

What EllyJelly is trying to say is the Scripting Engine wouldn't work in itself if the control didn't exist or was corrupted on the system.


RE: VBScript & JScript by SmokingCookie on 01-22-2010 at 08:58 PM

It's quite clear now, thanks for the advice :)