What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Need help with list of files in array...

[Help] Need help with list of files in array...
Author: Message:
can16358p
Junior Member
**

WLM + MP!L User

Posts: 58
34 / Male / –
Joined: Oct 2005
Status: Away
RE: Need help with list of files in array...
I think max. number was 1100 chars. Let's consider it as that.

You may use a for loop. Or even two.
Make a for loop that will add the text (in this case file paths) to the message, and another for adding those messages to another array which contains the mesages to be sent.
Let sendstr be the message going to be sent.

More detailed step by step:
Make array of song names (you did this one)
Make another array which will hold the strings to be sent.
Make an empty string
Make a loop that will;
Check if the string + next item on the first array (the one with songs names) exceeds 1100 chars, if doesn't exceed, add the text (don't also forget to add line breaks etc.), if exceeds, put the string to the second array (messages to be sent/forget indexing, just use push method), empty the string, and continue the loop until the first array is empty.

Ok, now, read that sentence slowly :D

After this is easy, you'll just send the messages until the second array is empty, each item as one message.

This post was edited on 06-26-2006 at 07:16 AM by can16358p.
[Image: anathema.gif][Image: hax0r.png]
06-26-2006 07:15 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Need help with list of files in array... - by b0rna on 06-26-2006 at 07:04 AM
RE: Need help with list of files in array... - by can16358p on 06-26-2006 at 07:15 AM
RE: [Help] Need help with list of files in array... - by -dt- on 06-26-2006 at 07:30 AM
RE: [Help] Need help with list of files in array... - by b0rna on 06-26-2006 at 07:44 AM
RE: [Help] Need help with list of files in array... - by mathieumg on 06-26-2006 at 11:46 AM


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