Shoutbox

[Request] Save Own DP - 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: [Request] Save Own DP (/showthread.php?tid=72581)

[Request] Save Own DP by Eddie on 03-12-2007 at 02:07 PM

Hey scripters :P i am wanting a Script so you can save your own Display Picture in a chosen file, simply because anything i put in my display picture i drag and drop into files and i just forget where i got them from, so is this possible? :)

EDIT
: Going to bed so won't see till tomorrow sometime sorry. :)


RE: [Request] Save Own DP by Eddie on 03-13-2007 at 04:18 AM

Is this possible guys? :(


RE: [Request] Save Own DP by Felu on 03-13-2007 at 04:49 AM

quote:
Originally posted by Eddie
Is this possible guys? :(
Yes, its possible.
code:
var sEmail = "name@domain.com";//Edit to the email you want this to work for
var sFile = "D:\\DisplayPicture.gif";//Edit to the file path where you want the DP to be saved. NOTE: Use '\\' instead of '\'.
function OnEvent_Initialize(MessengerStart) {
    if(Messenger.MyStatus > 1 && Messenger.MyEmail == sEmail)
        new ActiveXObject("Scripting.FileSystemObject").CopyFile(Messenger.MyDisplayPicture, sFile);
}

RE: [Request] Save Own DP by Eddie on 03-13-2007 at 08:12 AM

Cheers felu, is it possible to be able to save it with a name i choose ? :) (without having to edit the script)


RE: [Request] Save Own DP by Felu on 03-13-2007 at 08:15 AM

quote:
Originally posted by Eddie
is it possible to be able to save it with a name i choose ?
Yes it would be possible, but we'll need to create windows for that. Sorry, but I'm not intrested to do that atm. I can do it on saturday if you want :).
RE: [Request] Save Own DP by the DtTvB on 03-13-2007 at 09:57 AM

You can do that with this code on mpscripts.net.

Just change ShowOpen to ShowSave and edit the filter.

Now you can call the function BrowseForFile and put it in the sFile variable.


RE: [Request] Save Own DP by Felu on 03-14-2007 at 07:49 AM

quote:
Originally posted by the DtTvB
You can do that with this code on mpscripts.net.

Just change ShowOpen to ShowSave and edit the filter.

Now you can call the function BrowseForFile and put it in the sFile variable.
I know, i only posted that code at mpscript.net :P. But it won't work in Vista. So, you should use GetOpenFileName instead. Here is an example of how to.

I'm not intrested to make this script as i have my exams going on, this is just a tip for anyone who might want to make such a script
RE: [Request] Save Own DP by Eddie on 03-14-2007 at 08:35 AM

Ok thanks anyway Felu :)