Shoutbox

Smiley Saver? - 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: Smiley Saver? (/showthread.php?tid=64332)

Smiley Saver? by BunnY_ on 08-01-2006 at 07:51 PM

Is it possible to make a script that saves all your smileys as *.gif files (or w.e)
i would appreciate that very much because im planning to reinstall windows and then all of my smileys will be lost :O :(:(


RE: Smiley Saver? by Huhu_Manix on 08-01-2006 at 08:34 PM

I make a little C++ script to copy all smileys ( .dat files ) to a folder "huhu" ( in the exe path ). It works only on win xp.

Just compil it.

code:
#include <dirent.h>
#include <fstream.h>
#include <sstream>

std::string stringify(int x){
   std::ostringstream p;
   p << x;
   return p.str();
}

std::string getHomePath(){
    system("mkdir huhu");
    system("echo %HOMEDRIVE%%HOMEPATH%\\Application Data\\Microsoft\\MSN Messenger>tmp.dat");
    std::string line;
    ifstream file( "tmp.dat" );
    getline( file, line );
    file.close();
    system("del tmp.dat");
    return line;
}

int main(){
DIR *pdir;
struct dirent *pent;
int i=1;
std::string homepath=getHomePath();
pdir=opendir(homepath.c_str());
if (!pdir)exit(1);
while ((pent=readdir(pdir))){
     std::string dd = pent->d_name;
     std::string url = homepath+"\\"+dd+"\\CustomEmoticons";
     if(opendir(url.c_str())){
        std::string com = "copy \""+url+"\\*.dat\" \"huhu\\"+stringify(i)+"_*.gif\"";
        system(com.c_str());
        com = "del \"huhu\\"+stringify(i)+"_.gif\"";
        system(com.c_str());
     }
     i++;
}
closedir(pdir);
exit(0);
}

But i think there's already a script for msg plus, backup extrem ^o)


EDIT : smileys....
RE: Smiley Saver? by BunnY_ on 08-01-2006 at 08:54 PM

ehm.... and.. how do i use that code? :P

there is still a lot of smileys in the post..


RE: Smiley Saver? by Huhu_Manix on 08-01-2006 at 09:15 PM

Nevermind...

> http://www.msgpluslive.net/scripts/browse/index.php?act=view&id=106


RE: Smiley Saver? by BunnY_ on 08-01-2006 at 09:42 PM

Thx :D

Edit:
It doesnt save smileys :(:( it only saves settings, chat logs (that is really easy to do on your own) and custom sounds.. :/


RE: Smiley Saver? by Huhu_Manix on 08-01-2006 at 10:40 PM

Alright, you don't know how to compile my C++ script so i give you the EXE file.

Launch it, it'll create a batch wich copy all your smiley on a new folder.


RE: Smiley Saver? by BunnY_ on 08-01-2006 at 11:22 PM

Thx a LOT :D


RE: Smiley Saver? by ombadboy on 08-02-2006 at 12:20 AM

and is there a way to automatically install em back to MSN than havin to add em manually?


RE: Smiley Saver? by BunnY_ on 08-02-2006 at 12:33 AM

i found some dp importer at www.mess.be ... look there ;)


RE: Smiley Saver? by ombadboy on 08-02-2006 at 01:28 AM

not dp.. smiley importer :P


RE: Smiley Saver? by Huhu_Manix on 08-02-2006 at 01:45 AM

No DP Importer.

I don't know how to add smileys automatically but i think it's possible...

We can create a script to control keyboard and mouse to leave the computer adds all smileys alone ! ^^


RE: Smiley Saver? by mickael9 on 08-02-2006 at 03:07 AM

I've made this script for saving smileys into gifs/png/bmp files


RE: Smiley Saver? by BunnY_ on 08-02-2006 at 09:28 AM

but it imports smileys too^^
http://www.mess.be/pafiledb/pafiledb.php?action=download&id=390


RE: Smiley Saver? by Huhu_Manix on 08-02-2006 at 11:49 AM

Good script mickeal but messenger can give you directly the adress ID so you don't need to "calcul" it.


code:
var PassportID = Messenger.MyUserId;

instead of

code:
var PassportID = 0;
   
for (var i=0; i < email.length; i++)
{
    PassportID *= 101;
    PassportID += email.charCodeAt(i);
   
    while (PassportID >= Math.pow(2,32))
        PassportID -= Math.pow(2,32);
}

RE: RE: Smiley Saver? by mickael9 on 08-02-2006 at 04:07 PM

quote:
Originally posted by Huhu_Manix
Good script mickeal but messenger can give you directly the adress ID so you don't need to "calcul" it.


code:
var PassportID = Messenger.MyUserId;

instead of

code:
var PassportID = 0;
   
for (var i=0; i < email.length; i++)
{
    PassportID *= 101;
    PassportID += email.charCodeAt(i);
   
    while (PassportID >= Math.pow(2,32))
        PassportID -= Math.pow(2,32);
}

Ooops

And it's not mickeal (A)
RE: Smiley Saver? by dbgarza on 08-03-2006 at 06:28 PM

Here is a better one: http://www.baisoft.it/msnbackup_english.asp

Is called MSNBackup and it not only backups and restores smilies, it also can backup and restore Winks, Background, your user picture and even the dinamic pictures you have (Meego, Kiwee and Quebles) :D


RE: RE: RE: Smiley Saver? by kaid on 08-03-2006 at 11:06 PM

quote:
Originally posted by mickael9
quote:
Originally posted by Huhu_Manix
Good script mickeal but messenger can give you directly the adress ID so you don't need to "calcul" it.


code:
var PassportID = Messenger.MyUserId;

instead of

code:
var PassportID = 0;
   
for (var i=0; i < email.length; i++)
{
    PassportID *= 101;
    PassportID += email.charCodeAt(i);
   
    while (PassportID >= Math.pow(2,32))
        PassportID -= Math.pow(2,32);
}

Ooops

And it's not mickeal (A)



can you add a restore function too?  and setings for outpout/iput directory?