Shoutbox

[REQUEST] Display Picture Change with Status script - 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] Display Picture Change with Status script (/showthread.php?tid=61301)

[REQUEST] Display Picture Change with Status script by vk3xem on 06-25-2006 at 01:45 PM

I would like a Display Picture Status changer so when I change my status it will automatically change my display picture.

I was using dpstatus.exe but it doesn't recognise any of my Personalised Statuses in Plus! Live.  The other thing is it runs as it's on application in my system tray which I don't particularly like.


RE: [REQUEST] Display Picture Change with Status script by nuwanda on 06-25-2006 at 02:19 PM

umm are there any function that changes display picture ?

there is something like that but i dont know how to use it :

The Messenger::MyDisplayPicture property returns the path to the display picture file used by the current Messenger user. It can also be used to change the display picture of the current user based on an existing file.


RE: [REQUEST] Display Picture Change with Status script by Fox-NL on 06-25-2006 at 02:58 PM

code:
function OnEvent_MyStatusChange(Stat) {
      if(Stat == 2) {
             //Appear Offline - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      } else if(Stat == 3) {
             //Online - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      } else if(Stat == 4) {
             //Busy - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      } else if(Stat == 5) {
             //Be Right Back - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      } else if(Stat == 6) {
             //Idle - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      } else if(Stat == 7) {
             //Away - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      } else if(Stat == 8) {
             //In a Call - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      } else if(Stat == 9) {
             //Out to Lunch - Set the DP Path here
             Messenger.MyDisplayPicture = "";
      }
}

Try something like that
RE: [REQUEST] Display Picture Change with Status script by nuwanda on 06-25-2006 at 03:03 PM

I wrote something like that , it changes display picture after a few seconds..

function OnEvent_Signin(mail)
{
    var Message = "Your picture will be changed!";
    MsgPlus.DisplayToast("",Message);
    MsgPlus.AddTimer("resim",50000);
}

function OnEvent_Timer(timerid)
{
    if(timerid=="resim")
    {
        Messenger.MyDisplayPicture="C:/dsc.jpeg";
    }
}


but it gives error ;


Function called: OnEvent_Signin
Function called: OnEvent_Timer
Error: Geçersiz yordam çağrısı veya değişken. (something like unaccepted variable or function in english)
       Line: 12. Code: -2146828283.
Function OnEvent_Timer returned an error. Code: -2147352567


what is wrong ? Thanks for your help.


RE: [REQUEST] Display Picture Change with Status script by nuwanda on 06-25-2006 at 03:22 PM

I just used that Fox-NL wrote..but it still gives same error ;

Function called: OnEvent_MyStatusChange
Error: Unaccepted function or variable.
       Line: 3. Code: -2146828283.
Function OnEvent_MyStatusChange returned an error. Code: -214735


RE: [REQUEST] Display Picture Change with Status script by matty on 06-25-2006 at 03:41 PM

You need to make sure you have two slashes in the path.

code:
function OnEvent_Initialize(MessengerStart){
     Messenger.MyDisplayPicture = 'C:\\look_listen_speak.jpg';
}

RE: [REQUEST] Display Picture Change with Status script by ThunderStorm on 06-25-2006 at 03:42 PM

Your attachment doesn't work


RE: [REQUEST] Display Picture Change with Status script by nuwanda on 06-25-2006 at 03:44 PM

Still gives the same error..I think there is a problem about function,it looks like undefined or something like that ?


RE: [REQUEST] Display Picture Change with Status script by ThunderStorm on 06-25-2006 at 03:49 PM

I have the same problem.
Here my script:

code:
function OnEvent_MyStatusChange(Stat) {
      if(Stat == 2) {
             //Appear Offline -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\offline.jpg";
      } else if(Stat == 3) {
             //Online -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\online.jpg";
      } else if(Stat == 4) {
             //Busy -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\busy.jpg";
      } else if(Stat == 5) {
             //Be Right Back -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\brb.jpg";
      } else if(Stat == 6) {
             //Idle -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\idle.jpg";
      } else if(Stat == 7) {
             //Away -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\away.jpg";
      } else if(Stat == 8) {
             //In a Call -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\onphone.jpg";
      } else if(Stat == 9) {
             //Out to Lunch -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\lunch.jpg";
      }
}


RE: RE: [REQUEST] Display Picture Change with Status script by mathieumg on 06-25-2006 at 03:52 PM

code:
function OnEvent_Initialize(MessengerStart){
     Messenger.MyDisplayPicture = '\C:\\look_listen_speak.jpg';
}

Perhaps?
RE: RE: [REQUEST] Display Picture Change with Status script by alexp2_ad on 06-25-2006 at 03:53 PM

quote:
Originally posted by ThunderStorm
I have the same problem.
Here my script:

code:
function OnEvent_MyStatusChange(Stat) {
      if(Stat == 2) {
             //Appear Offline -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\offline.jpg";
      } else if(Stat == 3) {
             //Online -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\online.jpg";
      } else if(Stat == 4) {
             //Busy -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\busy.jpg";
      } else if(Stat == 5) {
             //Be Right Back -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\brb.jpg";
      } else if(Stat == 6) {
             //Idle -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\idle.jpg";
      } else if(Stat == 7) {
             //Away -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\away.jpg";
      } else if(Stat == 8) {
             //In a Call -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\onphone.jpg";
      } else if(Stat == 9) {
             //Out to Lunch -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\lunch.jpg";
      }
}




You should replace the "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\" with MsgPlus.ScriptFilesPath  and all the \ should be \\
RE: [REQUEST] Display Picture Change with Status script by matty on 06-25-2006 at 03:54 PM

The function I posted does work.

Make sure you are pointing the image to set as one that is on the PC.


RE: RE: [REQUEST] Display Picture Change with Status script by nuwanda on 06-25-2006 at 04:00 PM

quote:
Originally posted by Matty
You need to make sure you have two slashes in the path.

code:
function OnEvent_Initialize(MessengerStart){
     Messenger.MyDisplayPicture = 'C:\\look_listen_speak.jpg';
}


Same error :S maybe i should give up for today...i dont think my problem is about the path its about the function,dont know... :(
RE: [REQUEST] Display Picture Change with Status script by ThunderStorm on 06-25-2006 at 04:02 PM

It works:D
Thank you


RE: [REQUEST] Display Picture Change with Status script by matty on 06-25-2006 at 04:03 PM

Oops looks like I may have forgot something

code:
Messenger.MyDisplayPicture = '\C:\\look_listen_speak.jpg';

According to the rest of the documentation you need to preceed the path with a \ before if you are using a relative path.
RE: [REQUEST] Display Picture Change with Status script by nuwanda on 06-25-2006 at 04:06 PM

code:
function OnEvent_Signin(Mail){
Messenger.MyDisplayPicture = '\C:\\dsc.jpeg';
}


that doesn't work..i give up for today..thnx for ur help :)
RE: [REQUEST] Display Picture Change with Status script by mathieumg on 06-25-2006 at 04:07 PM

Like I pointed out above :p *rolleyes*


RE: [REQUEST] Display Picture Change with Status script by Sepulcrum on 06-25-2006 at 04:12 PM

In the scripting documentation it says you have to put the slash ('\') BEFORE the path, like:

"\C:\My Documents\picture.jpg"

Dunno if it's right...

edit: oops.. too late :P


RE: [REQUEST] Display Picture Change with Status script by ThunderStorm on 06-25-2006 at 04:47 PM

I have my script finished en created to a .plsc file.
Include the ScriptInfo.xml.
I have sended my script to my girlfriend, but the script doensn't work.

At my PC work the script fine.

Whats the problem?


RE: [REQUEST] Display Picture Change with Status script by vk3xem on 06-25-2006 at 06:31 PM

Great Stuff guys!    (Y)

Unfortunately I don't know anything about scripting, but it looks like plenty of you guys are and interested in the Display Picture changing with the Status.

I love the way I can go to the Messenger Plus! Live Script page and download a script and it automatically installs for me.  So I look forward to seeing a script for this on there soon.    :D


RE: [REQUEST] Display Picture Change with Status script by retrojaffa on 06-26-2006 at 12:12 AM

right I've got this to work but I'm looking to extend its  usability, is there anyway to get the script to recognise custom statuses?

I have a dedicated picture for me in the bath and normally change it manually wen i change my status, if it was possible I'd like to be able to just change to my custom (In Bath) status and the picture change

the current script only detects the default statuses and my attempt at getting it to recognise a string variable failed :(


RE: RE: [REQUEST] Display Picture Change with Status script by mathieumg on 06-26-2006 at 12:32 AM

quote:
Originally posted by retrojaffa
I have a dedicated picture for me in the bath


I think I read that too fast :D (A)
RE: [REQUEST] Display Picture Change with Status script by cloudhunter on 06-26-2006 at 01:47 AM

Well maybe you could see if the status was away or busy, and then also parse the name for the status you require? The status are like this... "{In Bath}"

Cloudy


RE: [REQUEST] Display Picture Change with Status script by vk3xem on 06-26-2006 at 04:38 AM

quote:
Originally posted by retrojaffa
right I've got this to work but I'm looking to extend its  usability, is there anyway to get the script to recognise custom statuses?

I have a dedicated picture for me in the bath and normally change it manually wen i change my status, if it was possible I'd like to be able to just change to my custom (In Bath) status and the picture change

the current script only detects the default statuses and my attempt at getting it to recognise a string variable failed :(


Great stuff retrojaffa, looks like you are on the right track.  Good to see everyone helping out!    :D    (Y)
RE: [REQUEST] Display Picture Change with Status script by Lou on 06-26-2006 at 04:58 AM

If someone makes this with a gui, then it could very well be easily edited. All you'd need is the location for each status, then the script grabs the location, adds a / at the front, and another / everything a / is detected, and you can easily use this. Sorry if I sound complicated:P Just a suggestion.

I'd re-make it with a gui, but I havne't quite handled gui's yet:S


RE: [REQUEST] Display Picture Change with Status script by retrojaffa on 06-26-2006 at 08:01 AM

yeah the gui was something I was pondering about, but I've not attempted making scripts before. only along the lines of vb and actionscript so its pretty much trial and error on my behalf

My current code that works is below, thats minus the custom statuses

quote:
function OnEvent_MyStatusChange(Stat) {
      if(Stat == 2) {
             //Appear Offline -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\offline.jpg";
      } else if(Stat == 3) {
             //Online -
             Messenger.MyDisplayPicture = "C:\\Program Files\Messenger Plus! Live\Scripts\StatusDP\DP\online.jpg";
      } else if(Stat == 4) {
             //Busy -
             Messenger.MyDisplayPicture = "C:\\Program Files\\Messenger Plus! Live\\Scripts\\StatusDP\\DP\\busy.jpg";
      } else if(Stat == 5) {
             //Be Right Back -
             Messenger.MyDisplayPicture = "C:\\Program Files\\Messenger Plus! Live\\Scripts\\StatusDP\\DP\\brb.jpg";
      } else if(Stat == 6) {
             //Idle -
             Messenger.MyDisplayPicture = "C:\\Program Files\\Messenger Plus! Live\\Scripts\\StatusDP\\DP\\idle.jpg";
      } else if(Stat == 7) {
             //Away -
             Messenger.MyDisplayPicture = "C:\\Program Files\\Messenger Plus! Live\\Scripts\\StatusDP\\DP\\away.jpg";
      } else if(Stat == 8) {
             //In a Call -
             Messenger.MyDisplayPicture = "C:\\Program Files\\Messenger Plus! Live\\Scripts\\StatusDP\\DP\\onphone.jpg";
      } else if(Stat == 9) {
             //Out to Lunch -
             Messenger.MyDisplayPicture = "C:\\Program Files\\Messenger Plus! Live\\Scripts\\StatusDP\\DP\\lunch.jpg";
      }
}

RE: [REQUEST] Display Picture Change with Status script by stuartbennett on 07-22-2006 at 06:38 PM

i would also like to set custom images for custom status's in addition to the normal messenger built in status's that the script is currently designed to customize.


RE: [REQUEST] Display Picture Change with Status script by jerone on 09-10-2006 at 06:14 PM

anyone busy with making a gui for this script. i like this script, but it really needs a gui!!!


RE: [REQUEST] Display Picture Change with Status script by minipatchou on 09-10-2006 at 06:25 PM

display status changer

would that help