Shoutbox

Offline Script Testing - 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: Offline Script Testing (/showthread.php?tid=63782)

Offline Script Testing by chicco on 07-22-2006 at 12:20 PM

hello,
i have a little question: is there a way to test scripts while the messenger and the pc are offline?

Thanks


RE: Offline Script Testing by andrewdodd13 on 07-22-2006 at 12:46 PM

Due to the way events are called and such, I don't think this would be quite possible.

The original Microsoft JScript parser would fail because the Messenger Plus! library would not be available if you ran the script outside MP!L.

It's maybe a feature that could be added to MP!L or if anyone wants to make a full-fledged development environment :).


RE: Offline Script Testing by John Anderton on 07-22-2006 at 12:59 PM

quote:
Originally posted by andrewdodd13
It's maybe a feature that could be added to MP!L or if anyone wants to make a full-fledged development environment (Smilie).
i dont think so. I highly doubt it. Imo to recreate the actual triggers, you do need to actually be online :)
RE: Offline Script Testing by andrewdodd13 on 07-22-2006 at 01:24 PM

What I meant was a sort of dummy-event.

For example, it could parse the code, and you could tell the system to call that function with dummy arguments...

Code:

code:
function MessengerFunction(arg1,arg2)
Debug.Trace ("This function was called with " + arg1 + " " +arg2);
end

Then from the new area (I'll call it the debugger window) you could type
MessengerFunction("hi","noobs");
and it would call those functions as if that's what was actually happening.

As I said, it might be too much to include in the messenger plus! live client, but a dev-environment would be nice :P (or even a plug in to the MS VS IDE... * goes and researches).