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

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

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: Download file
Oh, yes.. Embarrassing. But I'm also wondering how to find the path and put it into my .xml file.

EDIT: Seems like the path is just OutFile in OnEvent_DownloadFileComplete()

I have looked on the forums, but I can't find out how to solve my problem. I have tried this:

This is my script:
code:
var DownloadComic = "http://www.explosm.net/db/files/Comics/Matt/ive-got-some-homemade-stuff-for-that-wound-of-yours-too.png";

function OnEvent_Initialize(MessengerStart)
{
    MsgPlus.DownloadFile(DownloadComic);
}

function OnEvent_DownloadFileComplete(DownloadComic, OutFile, Success)
{
    if(Success)
    {
        MsgPlus.DisplayToast("Todays Comic", "Succes:\n" + OutFile);
       
        ComicWnd = MsgPlus.CreateWnd("comic.xml", "TodaysComic");
       
        ComicWnd.ImgElmt_SetImageFile("DisplayComic", OutFile);
    }
    else
    {
        MsgPlus.DisplayToast("Todays Comic", "Failed.");
    }
}

And this is my XML file:
code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <Window Id="TodaysComic" Version="1">
        <Attributes>
            <Caption>Todays Comic</Caption>
    </Attributes>
        <Position Width="212" Height="112"/>
    <Elements>
        <Element xsi:type="ImageElement" Id="DisplayComic">
            <Position Top="0" Left="0"/>
            <Image>
            <Name></Name>
            </Image>
        </Element>
    </Elements>
        <WindowTmpl>
        <Corners Shape="Round">
            <RoundSize>3</RoundSize>
        </Corners>
        <Borders Type="Dialog"/>
        </WindowTmpl>
        <Controls>

        </Controls>
    </Window>
</Interfaces>

This post was edited on 10-31-2007 at 07:35 PM by SnuZZer.
10-31-2007 07:01 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Download file - by SnuZZer on 10-31-2007 at 06:54 PM
RE: Download file - by Dempsey on 10-31-2007 at 06:57 PM
RE: Download file - by SnuZZer on 10-31-2007 at 07:01 PM
RE: Download file - by markee on 10-31-2007 at 11:04 PM
RE: Download file - by SnuZZer on 11-01-2007 at 05:46 AM
RE: Download file - by Matti on 11-01-2007 at 08:38 AM
RE: Download file - by SnuZZer on 11-01-2007 at 01:36 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