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

How to send a file?
Author: Message:
Daerst
New Member
*


Posts: 2
Joined: Jul 2006
O.P. Tongue  How to send a file?
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
07-28-2006 02:10 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to send a file?
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");
}

This post was edited on 07-28-2006 at 02:16 AM by matty.
07-28-2006 02:13 AM
Profile E-Mail PM Find Quote Report
Daerst
New Member
*


Posts: 2
Joined: Jul 2006
O.P. RE: How to send a file?
Thx, it works perfectly now. YEEHA! :)
07-28-2006 02:14 AM
Profile E-Mail PM Find Quote Report
« 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