Shoutbox

[Request] DP by status - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] DP by status (/showthread.php?tid=91369)

[Request] DP by status by CO_ol on 07-07-2009 at 09:55 PM

Hi!

I wonder if it's possible to make the DP change when I select an other status?
Like this:

Online - Green pic
Busy - Red pic
Away - Orange pic

I will love if anyone could make this? I select a pic from my computer for each of my status.
Please?

//CO_ol


RE: [Request] DP by status by warmth on 07-07-2009 at 10:06 PM

There are already scripts that do that... search in data base :P


RE: [Request] DP by status by CO_ol on 07-07-2009 at 10:45 PM

I can't change the pics in it! x/


RE: RE: [Request] DP by status by ryxdp on 07-08-2009 at 08:41 AM

quote:
Originally posted by CO_ol
I can't change the pics in it! x/

You should be able to change the images if you go to the script's folder and look for them in there, eg.:

C:\Program Files\Messenger Plus! Live\Scripts\<scriptnamehere>
RE: [Request] DP by status by CO_ol on 07-08-2009 at 09:50 AM

I know but there's only jpg files and when I edit the script and set other images it doesn't listen! xD It still choose the jpg's


RE: [Request] DP by status by roflmao456 on 07-09-2009 at 05:01 AM

I will create the script for you.
will edit this post to attach script when finished


RE: [Request] DP by status by CO_ol on 07-09-2009 at 02:48 PM

Thank you! :)


RE: [Request] DP by status by matty on 07-09-2009 at 04:08 PM

Javascript 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 ];
}


RE: [Request] DP by status by CO_ol on 07-09-2009 at 05:15 PM

That doesn't work :S
How do you set your images? (Copy/Paste)


RE: [Request] DP by status by matty on 07-09-2009 at 05:23 PM

Look at the updated post for more information.
Then in the same folder that the script would be in (usually C:\Program Files\Messenger Plus! Live\Scripts\Script) you put the images in it.


RE: [Request] DP by status by CO_ol on 07-09-2009 at 05:42 PM

WTF is wrong with my laptop???!?!?!? x|
It still doesn't work. I have the images C:\Program Files\Messenger Plus! Live\Scripts\Script/here! but when I set my status to busy, away or whatever the ava doesn't change!


RE: [Request] DP by status by roflmao456 on 07-09-2009 at 06:08 PM

Here's the script I said I would create. Access the configuration window through the menu.



Matty, what's the use of the INVISIBLE/OFFLINE pictures? :P
RE: [Request] DP by status by CO_ol on 07-09-2009 at 06:20 PM

THANKS!! It works! :D
Can you make fields for offline/invisible (xD) and BRB too?


RE: [Request] DP by status by matty on 07-09-2009 at 06:54 PM

quote:
Originally posted by roflmao456
Matty, what's the use of the INVISIBLE/OFFLINE pictures? :P
If you appear offline you can have your dp say you are offline?
quote:
Originally posted by roflmao456
Here's the script I said I would create. Access the configuration window through the menu.

Javascript code:
function OnEvent_Initialize(MessengerStart){
    if(!MessengerStart)
        OnEvent_SigninReady();
    }

Never use the bMessengerStart parameter it isnt what you think it is. bMessengerStart only describes how the script was started not if the user is signed in. Instead use this:

Javascript code:
function OnEvent_Initialize ( ) {
    if ( Messenger.MyStatus < STATUS_INVISIBLE ) return false;
    Debug.Trace('user signed in');
}
 
function OnEvent_SigninReady ( ) {
    OnEvent_Initialize ( );
}


RE: [Request] DP by status by roflmao456 on 07-09-2009 at 07:36 PM

quote:
Originally posted by CO_ol
THANKS!! It works! :D
Can you make fields for offline/invisible (xD) and BRB too?
Sure, although I use WLM 2009 so I won't be able to test BRB.
Also,
quote:
Originally posted by roflmao456
what's the use of the INVISIBLE/OFFLINE pictures? :P
quote:
Originally posted by matty
If you appear offline you can have your dp say you are offline?
Contacts can't see it so there's not much point to it :P
quote:
Never use the bMessengerStart parameter it isnt what you think it is. bMessengerStart only describes how the script was started not if the user is signed in. Instead use this:

Will keep that in mind, thanks
RE: [Request] DP by status by CO_ol on 07-09-2009 at 07:50 PM

But you can create a new status and choose it to show you as BRB.


RE: [Request] DP by status by matty on 07-09-2009 at 08:00 PM

quote:
Originally posted by roflmao456
Contacts can't see it so there's not much point to it :P
The status doesn't actually change until OnEvent_MyStatusChanged as fired completly. Therefore if you set the DP then appear offline they will see it.

RE: [Request] DP by status by CO_ol on 07-09-2009 at 08:29 PM

@roflmao, Remember to tell me when you're done! :)


RE: [Request] DP by status by CO_ol on 07-11-2009 at 10:20 AM

Done yet? xD


RE: [Request] DP by status by CO_ol on 07-14-2009 at 02:30 PM

roflmaooo??