What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » error with ScriptFilesPath

error with ScriptFilesPath
Author: Message:
waterbottle
New Member
*


Posts: 6
Joined: Dec 2006
O.P. error with ScriptFilesPath
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.
06-18-2007 11:11 PM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: error with ScriptFilesPath
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 ;)
[Image: markee.png]
06-18-2007 11:35 PM
Profile PM Find Quote Report
stu
Junior Member
**

Avatar
Stu

Posts: 82
Reputation: 1
39 / Male / Flag
Joined: Sep 2004
RE: error with ScriptFilesPath
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.
06-19-2007 01:27 AM
Profile E-Mail PM Web Find Quote Report
waterbottle
New Member
*


Posts: 6
Joined: Dec 2006
O.P. RE: error with ScriptFilesPath
Ah, so simple. Thanks to both of you. <3
06-19-2007 11:36 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On