matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [Request] DP by status
js code: /* status2dp
written by matty 2009 */
/* instructions:
put the name of the picture you want to correspond for each status
put the picture itself in the scripts folder
*/
var oStatus = {
STATUS_INVISIBLE : 'offline.png',
STATUS_ONLINE : 'online.png',
STATUS_BUSY : 'busy.png',
STATUS_BRB : 'away.png',
STATUS_IDLE : 'away.png',
STATUS_AWAY : 'away.png',
STATUS_INCALL : 'busy.png',
STATUS_OUTLUNCH : 'away.png'
};
function OnEvent_Initialize ( ) {
if ( Messenger.MyStatus < STATUS_INVISIBLE ) return false;
OnEvent_MyStatusChanged ( Messenger.MyStatus );
}
function OnEvent_SigninReady ( ) {
OnEvent_MyStatusChanged ( Messenger.MyStatus );
}
function OnEvent_MyStatusChanged ( nNewStatus ) {
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath+'\\'+oStatus [ nNewStatus ];
}
This post was edited on 07-09-2009 at 05:22 PM by matty.
|
|