Shoutbox

How to send a file? - 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: How to send a file? (/showthread.php?tid=64117)

How to send a file? by Daerst on 07-28-2006 at 02:10 AM

Hi,

I know it's a typical "use the fxxin search enigne"-question, I did but I didn't find the answer.

I've got this script:

code:
if (Message=="!test1")
{
    if (ChatWnd.SendFile("C:/PICT0029.JPG")==true)
    {
        ChatWnd.SendMessage("successfully sent file");
    } else
    {
        ChatWnd.SendMessage("sending of file failed");
    }
}

He just says "successfully sent file" but doesn't send it. ChatWnd.SendMessage("/sendfile C:\PICT0029.JPG"); or ChatWnd.SendMessage("/dropfile C:\PICT0029.JPG"); don't work, too.

What's wrong?

Thx,
Daerst
RE: How to send a file? by matty on 07-28-2006 at 02:13 AM

quote:
Originally posted by Daerst
Hi,

I know it's a typical "use the fxxin search enigne"-question, I did but I didn't find the answer.

I've got this script:

code:
if (Message=="!test1")
{
    if (ChatWnd.SendFile("C:/PICT0029.JPG")==true)
    {
        ChatWnd.SendMessage("successfully sent file");
    } else
    {
        ChatWnd.SendMessage("sending of file failed");
    }
}

He just says "successfully sent file" but doesn't send it. ChatWnd.SendMessage("/sendfile C:\PICT0029.JPG"); or ChatWnd.SendMessage("/dropfile C:\PICT0029.JPG"); don't work, too.

What's wrong?

Thx,
Daerst
Firstly you need to use Double Slashes.

So the code would be:
code:
if (ChatWnd.SendFile('c:\\PICT0029.JPG')){
    ChatWnd.SendMessage("successfully sent file");
} else{
    ChatWnd.SendMessage("sending of file failed");
}

RE: How to send a file? by Daerst on 07-28-2006 at 02:14 AM

Thx, it works perfectly now. YEEHA! :)