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

checking the file..
Author: Message:
koekwaus
New Member
*


Posts: 3
Joined: Jul 2006
O.P. RE: checking the file..
@ the joker: i want if its censeld of compleet that a var downloads -1 so wat i do is this

code:
function OnEvent_ChatWndReceiveMessage(wnd, user, message, kind)
{
Debug.Trace(kind);
    if(message.charAt(0) == "!")
    {
        var command = trim(message.substring(1, message.indexOf(" ")));
        var param = trim(message.substring(message.indexOf(" ")));
       
        Debug.Trace("Command: " + command + ", param: " + param);
       
        switch(command)
        {
            case "send":
           
                var valid = false;
               
                for(var i = 0; i < valid_files.length; i++)
                {
                    if(param == valid_files[i].getName())
                    {
                        downloaders++
                        totaaldownloaders++
                        Messenger.MyPersonalMessage = 'Downloaders nu: '+downloaders+ ', Totaal aantal bestanden gedownload: '+totaaldownloaders+',';
                        wnd.SendFile(valid_files[i].getPath());
                        valid = true;
                           
                        break;
                    }
                }
                if(!valid)
                {
                    var message;
                    message = "Het opgegeven bestand is niet geldig.\nJe kan kiezen uit de volgende bestanden:\n\n";
               
                    for(var i = 0; i < valid_files.length; i++)
                    {
                        message += (i+1) + ". " + valid_files[i].getName() + "\n";
                    }
               
                    wnd.SendMessage(message);
                }
            break;
        }
    }
                if (kind == 0)
                {
                downloaders--
                }
}           


the 0 means:

this is from scripting documentation:
MessageKind
[enum] Number specifying the kind of message received. It can be one of the following identifiers:

0 - Unknown.
1 - Text message typed by the user.
2 - A wink being sent.
3 - A voice clip being sent.
4 - A search made with the "Search" button.
5 - The result of a search made with the "Search" button.
6 - A text message sent while the current user was offline.



but you have a true and a false with SendFile
so maybe can i use that
07-14-2006 10:47 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
checking the file.. - by koekwaus on 07-14-2006 at 08:39 AM
RE: checking the file.. - by The_Joker on 07-14-2006 at 10:11 AM
RE: checking the file.. - by koekwaus on 07-14-2006 at 10:47 AM
RE: checking the file.. - by The_Joker on 07-14-2006 at 05:15 PM
RE: checking the file.. - by koekwaus on 07-14-2006 at 07:44 PM
RE: RE: checking the file.. - by The_Joker on 07-15-2006 at 09:17 AM
RE: checking the file.. - by Eljay on 07-15-2006 at 09:20 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