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

ImageElement + Internet
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: ImageElement + Internet
code:
function _download(_path){
    Interop.Call('urlmon', 'URLDownloadToFileW', 0, _path, _getTempFile(_getTempPath()), 0, 0);
}

function _getTempPath(){
    var sBuffer = Interop.Allocate((100+1)*2);
    Interop.Call('kernel32', 'GetTempPathW', 100, sBuffer);
    return sBuffer.ReadString(0);
}

function getTempFile(_spath){
    var sBuffer = Interop.Allocate((260+1)*2);
    Interop.Call('kernel32', 'GetTempFileNameW', _spath, 'img', 0, sBuffer);
    return sBuffer.ReadString(0);
}
01-01-2007 10:36 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
ImageElement + Internet - by LifelesS on 01-01-2007 at 09:08 PM
RE: ImageElement + Internet - by Spunky on 01-01-2007 at 09:14 PM
RE: ImageElement + Internet - by LifelesS on 01-01-2007 at 09:22 PM
RE: ImageElement + Internet - by Spunky on 01-01-2007 at 09:23 PM
RE: ImageElement + Internet - by Ezra on 01-01-2007 at 09:26 PM
RE: RE: ImageElement + Internet - by LifelesS on 01-01-2007 at 09:41 PM
RE: ImageElement + Internet - by matty on 01-01-2007 at 10:36 PM
RE: ImageElement + Internet - by LifelesS on 01-01-2007 at 10:42 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