Shoutbox

Upload Complete Script Wont Work (First Script - 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: Upload Complete Script Wont Work (First Script (/showthread.php?tid=91417)

Upload Complete Script Wont Work (First Script by LukeZaz on 07-10-2009 at 09:35 PM

I just completed my first script, the Upload Completed Script, it notifies if a sent upload has just completed, but the thing is, my friend helped me test, and when he sent me a totally blank file and it completed the toast window never showed!

code:
function OnEvent_Initialize(MessengerStart)
{
    Debug.Trace("Hello World!");
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_UploadFileComplete(Server, Dest, SrcFile, Success)
{
    var Message = "Upload Complete! Success " + Messenger.MyName + "!";
    Message = MsgPlus.RemoveFormatCodes(Message);
    MsgPlus.DisplayToast("", Message);
}
Please Help
RE: Upload Complete Script Wont Work (First Script by pollolibredegrasa on 07-10-2009 at 10:05 PM

It looks like you misunderstood the purpose of OnEvent_UploadFileComplete.

from the scripting docs:

quote:
The OnEvent_UploadFileComplete event is fired when an upload operation previously initiated by MsgPlus::UploadFileFTP completes.

It has nothing whatsoever to do with file transfers, but notifies you when an upload (through Messenger Plus! scripting) to an FTP server has completed.
RE: Upload Complete Script Wont Work (First Script by LukeZaz on 07-10-2009 at 10:08 PM

Well, How can i make it work with file transfers?


RE: Upload Complete Script Wont Work (First Script by Spunky on 07-10-2009 at 10:55 PM

Only through using Xniff and it would be extremely difficult. A few of us have tried to get information from file transfers and it never really completed.