User Control Panel
|
|
|
 |
Advertisements
|
 |
|
|
|
HELP US, HELP YOU!
|
| Author |
Message |
dubbeld Newbie

Joined: 23 Jan 2005 Posts: 9
  
|
Posted: Wed May 11, 2005 8:33 am Post subject: |
|
|
| Code: | | sub setPSMData<br />{<br /> my $self = shift;<br /> my $psm = shift;<br /> my $type = shift;<br /> my $music = shift;<br /> my $artist = shift;<br /> my $title = shift;<br /> my $btween = $title ? ' - {1}' : ''; <br /> my $ifmusic = $music ? '<CurrentMedia>\0'.$type.'\0'.$music.'\0{0}'.$btween.'\0'.$artist.'\0'.$title.'\0\0\0</CurrentMedia>' : '';<br /> my $data = '<Data><PSM>'.$psm.'</PSM>'.$ifmusic.'</Data>';<br /> <br /> $self->sendraw("UUX", length($data)."\r\n" . $data);<br />} |
I've changed it a bit for the "new" things you can do with it...
for the music icon: $msn->setPSMData("","Music",1,"title","artist");
for the game icon: $msn->setPSMData("","Games",1,"the game...","");
for the office icon: $msn->setPSMData("","Office",1,"the document...","");
if you don't want to use an icon: $msn->setPSMData("Type the message you want","",0,"","");
(You must run a MSNP11 bot to use this script ) |
|
| Back to top |
|
 |
Addict Not Yet a God

Joined: 21 Jan 2004 Posts: 473
   
|
Posted: Wed May 11, 2005 1:13 pm Post subject: |
|
|
Nice work. Good coding.  |
|
| Back to top |
|
 |
Farkie1 Newbie

Joined: 30 Nov 2005 Posts: 7
     
|
Posted: Sun Dec 04, 2005 10:48 pm Post subject: |
|
|
| Quote: | sub setPSMData
{
my $self = shift;
my $psm = shift;
my $type = shift;
my $music = shift;
my $artist = shift;
my $title = shift;
my $btween = $title ? ' - {1}' : '';
my $ifmusic = $music ? '<CurrentMedia>\0'.$type.'\0'.$music.'\0{0}'.$btween.'\0'.$artist.'\0'.$title.'\0\0\0</CurrentMedia>' : '';
my $data = '<Data><PSM>'.$psm.'</PSM>'.$ifmusic.'</Data>';
$self->sendraw("UUX", length($data)."\r\n" . $data);
} |
|
|
| Back to top |
|
 |
|
|