Shoutbox

error with ScriptFilesPath - 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: error with ScriptFilesPath (/showthread.php?tid=75455)

error with ScriptFilesPath by waterbottle on 06-18-2007 at 11:11 PM

Hi,

I'm running this simple script;

code:
var shell = new ActiveXObject("wscript.shell");
shell.Run( MsgPlus.ScriptFilesPath );

Which should open the directory "C:\Programfiler\Messenger Plus! Live\Scripts\testscript"

However it instead opens "C:\Programfiler\Messenger", in other words, it truncates everything after the first space.

Why is this and how can it be prevented?


Another problem I'm having is that the debugger doesn't work anymore, it doesn't appear. I have it activated but still the window isn't there.
RE: error with ScriptFilesPath by markee on 06-18-2007 at 11:35 PM

code:
var shell = new ActiveXObject("wscript.shell");
shell.Run('"'+MsgPlus.ScriptFilesPath+'"');
This is because of the space, you need to have quotations around it. Like in the code that I fixed for you ;)
RE: error with ScriptFilesPath by stu on 06-19-2007 at 01:27 AM

As for the debugger, click the Scrips icon from the contact list, and select Show Script Debugging, the first option - only available when Enable Debugging Options is checked in the script options.


RE: error with ScriptFilesPath by waterbottle on 06-19-2007 at 11:36 AM

Ah, so simple. Thanks to both of you. <3