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

Call2 function
Author: Message:
smeuuh
New Member
*


Posts: 4
Joined: Apr 2006
O.P. RE: Call2 function
I can't believe i've been so stupid :)
In fact, the functions I use to retrieve the filename are in the windows API, and can be called directly by the script.
dt's Music now playing script helped me alot, and my plugin now works correctly. Thanks everybody.
If someone wants it, it's really simple, if using the Winamp class od dt's script :
function OnEvent_Initialize()
{
    MsgPlus.AddTimer("timer",100);
    win = new Winamp();
}
var win;
function OnEvent_Timer(TimerId)
{
    var filename;
    if(win.isOpen()) filename = win.CurrentFilename();
    var pos = filename.lastIndexOf("\\");
    Messenger.MyDisplayPicture = filename.substring(0,pos) + "\\folder.jpg";
   
   
   
    MsgPlus.AddTimer("timer",1000);
}


11-04-2006 02:13 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Call2 function - by smeuuh on 11-03-2006 at 03:38 PM
RE: Call2 function - by Delphi Thunderbolt on 11-04-2006 at 05:13 AM
RE: Call2 function - by phalanxii on 11-04-2006 at 08:35 AM
RE: Call2 function - by smeuuh on 11-04-2006 at 02:13 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