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

Pages: (3): « First « 1 2 [ 3 ] Last »
List file
Author: Message:
KnRd_WC
Junior Member
**

Avatar
Florian PAQUET

Posts: 74
Reputation: 1
35 / Male / Flag
Joined: Aug 2006
RE: RE: List file
Hi !

quote:
Originally posted by SnuZZer
Hi!
That works!!
But, i'm a perfectionist and i would like to delete the "\" before the filename :-D

Ohh.. I'm so sorry to be troublesome :-(


Instead of using:
quote:
/list C:\Documents and Settings\Basse\Dokumenter\Billeder

Use :
quote:
/list C:\Documents and Settings\Basse\Dokumenter\Billeder\

It was a pleasure to help you, and I hope you understand how the script works... If not, I advise you to use Google to find more infos about these functions ;)

This post was edited on 08-23-2006 at 01:25 PM by KnRd_WC.
08-23-2006 01:22 PM
Profile PM Web Find Quote Report
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: List file
Hi.
Yeah, that works! <3

Thanks!! (L)
08-23-2006 01:25 PM
Profile E-Mail PM Web Find Quote Report
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: List file
Hi.
Oh, i'm sorry... If you want.. A last question.

How can i make sure that the users remember the last "\"?

I've tried this:
code:
        if (Message.substr(Lengde-1, Lengde) == "\")
        {
            Message = Message;
        }
        else
        {
            Message = Message + "\";
        }

I think this was to much for a newbie like me, but now we are finish :-P

This post was edited on 08-23-2006 at 01:33 PM by SnuZZer.
08-23-2006 01:33 PM
Profile E-Mail PM Web Find Quote Report
KnRd_WC
Junior Member
**

Avatar
Florian PAQUET

Posts: 74
Reputation: 1
35 / Male / Flag
Joined: Aug 2006
RE: List file
Hi !

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
if (Message.substr(0,5)=="/list") {
if (Message.substr(Message.length-1,1)!="\\") {
// Get the Message string length using that : Message.length
// To get the last letter : Message.length-1
// EX : TEST (len = 4), the first character is at position 0, so, the last T is at position 3 (4-1)
// If you use "\", your script will not work, because "\" is for specials characters, EX : "\n" >> Return.
// So, you have to use "\\"
    Message+="\\"
// If the last letter is not ('!=') "\", just add ('+=') \ ('\\') to Message string !
}
ListDirectory(Message.substr(6,Message.length-6).replace(/\\/gi,'\\\\'),ChatWnd);
return "";
}
}

This post was edited on 08-23-2006 at 02:38 PM by KnRd_WC.
08-23-2006 02:32 PM
Profile PM Web Find Quote Report
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: List file
Hi!
Og thanks!! (L)
08-23-2006 03:32 PM
Profile E-Mail PM Web Find Quote Report
Pages: (3): « First « 1 2 [ 3 ] Last »
« 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