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

Send file
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. Send file
Hey.

I'm working on a script, which should make it possible to send a file by a comment, but it doesn't send the file.

I'm quite sure, that this topic has been before, but I can't seem to find it.

Can anybody tell me, what I'm doing wrong?

quote:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    if(Message.substr(0, 6) == "!hitme")
    {
        if (Message.substr(Message.length-1, 1) != "\\")
        {
            Message += "\\";
        }
       
        ChatWnd.SendFile(Message.substr(7, Message.length-7).replace(/\\/gi,'\\\\'));
   
        ChatWnd.SendMessage("-> " + Message.substr(7, Message.length-7).replace(/\\/gi, "\\\\"));
    }
}

Thanks in advance.

This post was edited on 07-24-2008 at 10:49 AM by SnuZZer.
07-24-2008 10:48 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Send file - by SnuZZer on 07-24-2008 at 10:48 AM
RE: Send file - by matty on 07-24-2008 at 01:19 PM
RE: RE: Send file - by SnuZZer on 07-24-2008 at 01:24 PM
RE: Send file - by matty on 07-24-2008 at 01:30 PM
RE: RE: Send file - by SnuZZer on 07-24-2008 at 01:49 PM
RE: Send file - by matty on 07-24-2008 at 01:54 PM
RE: Send file - by matty on 07-24-2008 at 01:55 PM
RE: Send file - by Spunky on 07-24-2008 at 02:08 PM
RE: Send file - by SnuZZer on 07-24-2008 at 03:19 PM


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