Shoutbox

Scripting Documentation - Windows for your Script (HELP!) - 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: Scripting Documentation - Windows for your Script (HELP!) (/showthread.php?tid=93537)

Scripting Documentation - Windows for your Script (HELP!) by 5n4k3 on 01-14-2010 at 11:18 PM

Okay so I'm new to scripting and realise this is probably just something I'm overlooking, but this is really starting to bug me.

Under the "Windows for your Script" section in the Scripting Documentation it says to copy a bunch of text into a plain text file (I used notepad) and call it "InterfaceTest.xml" and save it into your script's directory (which I assumed is your scripts folder).

Then it asks you to create a new script... which I did, but when I save the script the window doesn't appear.

I looked around and found the "MPInterfaceTester" and the window loaded with that but I was just wondering why it didn't load with my script.

Any help would be appreciated ~

5n4k3


RE: Scripting Documentation - Windows for your Script (HELP!) by Lou on 01-15-2010 at 03:05 AM

quote:
Originally posted by 5n4k3
script's directory (which I assumed is your scripts folder).

From what I understand, you simply put the xml file inside the scripts folder. You need to have a seperate folder created inside this folder for your script. However, if I misunderstood you, I apologize.
RE: Scripting Documentation - Windows for your Script (HELP!) by Spunky on 01-15-2010 at 03:43 AM

Make sure the file is saved as unicode else it won't open at all


RE: RE: Scripting Documentation - Windows for your Script (HELP!) by 5n4k3 on 01-15-2010 at 06:26 AM

EDIT: Fixed. >.>


RE: Scripting Documentation - Windows for your Script (HELP!) by Spunky on 01-15-2010 at 11:58 AM

Would you care to explain the problem for future reference?


RE: RE: Scripting Documentation - Windows for your Script (HELP!) by 5n4k3 on 01-15-2010 at 12:04 PM

quote:
Originally posted by Spunky
Would you care to explain the problem for future reference?

Sure I guess...

The instructions in the Scripting Documentation were just a bit misguiding.

It tells you to "... just copy paste it to a plain text file called "InterfaceTest.xml" and save it in your script's directory."

And then "Save the script. If you did alright, you'll see a window titled "Test Window..."

So... I never saved the XML file inside the specific script folder. I simply saved it inside "C:\Program Files\Messenger Plus! Live\Scripts".

~ 5n4k3
RE: Scripting Documentation - Windows for your Script (HELP!) by Dempsey on 01-15-2010 at 01:26 PM

quote:
Originally posted by 5n4k3
your script's directory

It does say your scripts directory, not the scripts directory, but I guess it could be cleared up yea.
RE: RE: Scripting Documentation - Windows for your Script (HELP!) by 5n4k3 on 01-15-2010 at 02:42 PM

quote:
Originally posted by Dempsey
quote:
Originally posted by 5n4k3
your script's directory

It does say your scripts directory, not the scripts directory, but I guess it could be cleared up yea.

Well it depends how you look at it. Also, when you follow instructions you usually do them in order, and seeing as you haven't actually make a script at that point the assumption (well my assumption) is to simply save it inside the general scripts folder. (However this is coming from the POV of a 15Y.O kid who was just looking at scripting out of boredom at like 6am)

~ 5n4k3
RE: Scripting Documentation - Windows for your Script (HELP!) by CookieRevised on 01-17-2010 at 02:18 AM

quote:
Originally posted by 5n4k3
Well it depends how you look at it. Also, when you follow instructions you usually do them in order, and seeing as you haven't actually make a script at that point the assumption (well my assumption) is to simply save it inside the general scripts folder.
The subsection "Windows for your scripts" isn't the first one and it comes after other sections. More importantly after the main section "Getting Started > Your First script", in which you do create your (first) script.

-------

Spelling police comes into action:
quote:
Originally posted by Dempsey
quote:
Originally posted by 5n4k3
your script's directory

It does say your scripts your script's directory, not the scripts directory, but I guess it could be cleared up yea.
in this case correct spelling is vital! :p

5n4k3:
"your script's directory" means the directory of your script.
"the scripts directory" means the directory named "scripts".

It is very clear if you understand the meaning of the apostrophe in English (which might be different from other languages).

This said, I too have sometimes troubles reading some instructions from those help files at 6am though :p...
You must have been bored indeed when you wanted to read such docs at such an hour, hehehe... night time lecture for the nerd :D

RE: Scripting Documentation - Windows for your Script (HELP!) by 5n4k3 on 01-19-2010 at 08:26 AM

Well, my bad I guess. But I still think it'd be much simpler to make the script first, then save the xml file into it.

~ 5n4k3