What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Now playing/Display picture.

[Question] Now playing/Display picture.
Author: Message:
cirix
New Member
*


Posts: 10
Joined: Jun 2006
RE: [Question] Now playing/Display picture.
Here is the scrip, Im onli having a problem with the second time I dont know whats wrong, the problem is that I need a pause between executing samurizeserver and setting the DP notice the quoted parts:

quote:
var objShell = new ActiveXObject("Shell.Application");
var one;
var changemedia;
var two;
function OnEvent_MyMediaChange(changemedia){

playerHwnd = Interop.Call('User32','FindWindowW','Winamp v1.x',0);

var lBuffer = Interop.Call('user32', 'GetWindowTextLengthW', playerHwnd)+1;

var sBuffer = Interop.Allocate(2*(lBuffer+2));

var Title = Interop.Call('user32', 'GetWindowTextW', playerHwnd, sBuffer, lBuffer);

one = sBuffer.ReadString(0);

Debug.Trace('sBuffer: '+ one );

//Debug.Trace('sBuffer: '+sBuffer.ReadString(0));

objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe', "i=mcover c=msnc.ini close", "", "", 1);

MsgPlus.AddTimer ("check",3000);

}

function OnEvent_Timer(TimerId)
{
    if (TimerId == "check")
    {
   
    Debug.Trace( one);

    var lBuffer = Interop.Call('user32', 'GetWindowTextLengthW', playerHwnd)+1;

    var sBuffer = Interop.Allocate(2*(lBuffer+2));

    var Title = Interop.Call('user32', 'GetWindowTextW', playerHwnd, sBuffer, lBuffer);

    two = sBuffer.ReadString(0);
   
    Debug.Trace('sBuffer: '+ two + one);
   
   
    if (two == one)
    {
   
    objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe', "i=mcover c=msnc.ini", "", "", 1);
    //MsgPlus.AddTimer ("samur",2000);
}


//function OnEvent_Timer(TimerId)
//{
  //if (TimerId == "samur")
  //{   
  //Debug.Trace('CHANGE ');
    //Messenger.MyDisplayPicture = "C:\\Program Files\\Samurize\\samurizeoutput.png";
    //objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe close', "i=mcover c=msnc.ini -close", "", "", 1);

//} 
//}
}   
}


function OnEvent_Uninitialize(MessengerExit)
{
objShell.ShellExecute('C:\\Program Files\\Samurize\\SamurizeServer.exe', "i=mcover c=msnc.ini trayiconvisible=0 close", "", "", 1);
             
}



This post was edited on 06-29-2006 at 06:56 PM by cirix.
06-29-2006 06:54 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Question] Now playing/Display picture. - by Eisenkanzler on 06-29-2006 at 11:21 AM
RE: [Question] Now playing/Display picture. - by rob_botch on 06-29-2006 at 11:59 AM
RE: [Question] Now playing/Display picture. - by geeksada on 06-29-2006 at 12:01 PM
RE: [Question] Now playing/Display picture. - by rob_botch on 06-29-2006 at 12:04 PM
RE: RE: [Question] Now playing/Display picture. - by Eisenkanzler on 06-29-2006 at 01:26 PM
RE: [Question] Now playing/Display picture. - by rob_botch on 06-29-2006 at 01:30 PM
RE: [Question] Now playing/Display picture. - by Eisenkanzler on 06-29-2006 at 01:38 PM
RE: [Question] Now playing/Display picture. - by MGrove03 on 06-29-2006 at 01:50 PM
RE: RE: [Question] Now playing/Display picture. - by alexp2_ad on 06-29-2006 at 05:37 PM
RE: [Question] Now playing/Display picture. - by can16358p on 06-29-2006 at 05:46 PM
RE: [Question] Now playing/Display picture. - by cirix on 06-29-2006 at 06:50 PM
RE: [Question] Now playing/Display picture. - by cirix on 06-29-2006 at 06:54 PM
RE: [Question] Now playing/Display picture. - by Ža7oŽ on 06-29-2006 at 07:39 PM
RE: [Question] Now playing/Display picture. - by Voldemort on 06-29-2006 at 08:11 PM
RE: RE: [Question] Now playing/Display picture. - by alexp2_ad on 06-30-2006 at 09:00 AM
RE: [Question] Now playing/Display picture. - by noroom on 06-29-2006 at 08:13 PM
RE: [Question] Now playing/Display picture. - by can16358p on 06-29-2006 at 08:17 PM
RE: [Question] Now playing/Display picture. - by cirix on 06-29-2006 at 08:50 PM
RE: [Question] Now playing/Display picture. - by can16358p on 06-29-2006 at 10:47 PM
RE: [Question] Now playing/Display picture. - by -dt- on 06-29-2006 at 11:07 PM
RE: [Question] Now playing/Display picture. - by noroom on 06-30-2006 at 06:57 AM
RE: [Question] Now playing/Display picture. - by giken on 06-30-2006 at 08:13 AM
RE: [Question] Now playing/Display picture. - by Eisenkanzler on 06-30-2006 at 09:52 AM
RE: [Question] Now playing/Display picture. - by noroom on 06-30-2006 at 11:25 AM
RE: RE: [Question] Now playing/Display picture. - by Eisenkanzler on 06-30-2006 at 01:48 PM
RE: [Question] Now playing/Display picture. - by Veggie on 06-30-2006 at 12:06 PM
RE: [Question] Now playing/Display picture. - by cirix on 06-30-2006 at 05:34 PM
RE: [Question] Now playing/Display picture. - by noroom on 07-01-2006 at 01:18 AM
RE: [Question] Now playing/Display picture. - by robochief on 07-01-2006 at 04:07 AM


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