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

Smiley Saver?
Author: Message:
Huhu_Manix
Full Member
***

Avatar
Upload me again... *salivate*

Posts: 106
– / Male / –
Joined: Jul 2006
RE: Smiley Saver?
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....

This post was edited on 08-01-2006 at 08:35 PM by Huhu_Manix.
08-01-2006 08:34 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Smiley Saver? - by BunnY_ on 08-01-2006 at 07:51 PM
RE: Smiley Saver? - by Huhu_Manix on 08-01-2006 at 08:34 PM
RE: Smiley Saver? - by BunnY_ on 08-01-2006 at 08:54 PM
RE: Smiley Saver? - by Huhu_Manix on 08-01-2006 at 09:15 PM
RE: Smiley Saver? - by BunnY_ on 08-01-2006 at 09:42 PM
RE: Smiley Saver? - by Huhu_Manix on 08-01-2006 at 10:40 PM
RE: Smiley Saver? - by BunnY_ on 08-01-2006 at 11:22 PM
RE: Smiley Saver? - by ombadboy on 08-02-2006 at 12:20 AM
RE: Smiley Saver? - by BunnY_ on 08-02-2006 at 12:33 AM
RE: Smiley Saver? - by ombadboy on 08-02-2006 at 01:28 AM
RE: Smiley Saver? - by Huhu_Manix on 08-02-2006 at 01:45 AM
RE: Smiley Saver? - by mickael9 on 08-02-2006 at 03:07 AM
RE: Smiley Saver? - by BunnY_ on 08-02-2006 at 09:28 AM
RE: Smiley Saver? - by Huhu_Manix on 08-02-2006 at 11:49 AM
RE: RE: Smiley Saver? - by mickael9 on 08-02-2006 at 04:07 PM
RE: RE: RE: Smiley Saver? - by kaid on 08-03-2006 at 11:06 PM
RE: Smiley Saver? - by dbgarza on 08-03-2006 at 06:28 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