What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Variable isn't defined

Variable isn't defined
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. Variable isn't defined
Hi.
I'm still a bit new at coding MSG Plus! scripts. I have made this script:

code:
function OnEvent_Initialize(MessengerStart)
{
    StartDownload();
}

function StartDownload()
{
    var HTTP = new ActiveXObject("Microsoft.XMLHTTP");
    var XML = new ActiveXObject( "Microsoft.XMLDOM" );
   
    HTTP.onreadystatechange = function()
    {
        if((HTTP.readyState == 4) && (HTTP.status == 200))     
        {
            var Feed = HTTP.responseText;
       
            XML.loadXML(Feed);

            var Image = XML.getElementsByTagName("title")[1].text;
            var Width = XML.getElementsByTagName("title")[2].text;
            var Height = XML.getElementsByTagName("title")[3].text;


            MsgPlus.DownloadFile(Image);
        }
    }
   
    HTTP.open("POST", "http://www.snuzzer.dk/msgplus/php/explosmnet.php", false);
   
    HTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
   
    HTTP.send("");
}

function OnEvent_DownloadFileComplete(URL, OutFile, Success)
{
    if(Success)
    {
        ComicWnd = MsgPlus.CreateWnd("comic.xml", "TodaysComic");
           
        ComicWnd.ImageElmt_SetImageFile("DisplayComic", "\\" + OutFile);
           
        ComicWnd = Interop.Call("user32.dll", "SetWindowPos", ComicWnd.Handle, 0, 0, 0, Width, Height, 18);
    }   
}

My problem is, that the debugger says, that Width and Height isn't defined. Can someone please tell me what it gives me that error?

Thanks in advance.
Simon

This post was edited on 11-02-2007 at 07:41 PM by SnuZZer.
11-02-2007 07:40 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Variable isn't defined - by SnuZZer on 11-02-2007 at 07:40 PM
RE: Variable isn't defined - by Matti on 11-02-2007 at 08:17 PM
RE: Variable isn't defined - by SnuZZer on 11-02-2007 at 08:43 PM
RE: Variable isn't defined - by Matti on 11-03-2007 at 09:55 AM
RE: Variable isn't defined - by SnuZZer on 11-03-2007 at 03:43 PM
RE: Variable isn't defined - by roflmao456 on 11-03-2007 at 06:42 PM
RE: Variable isn't defined - by Felu on 11-04-2007 at 03:57 AM
RE: Variable isn't defined - by Matti on 11-04-2007 at 10:28 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