Shoutbox

Question for Patchou [Personal Away Msg] - 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)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Question for Patchou [Personal Away Msg] (/showthread.php?tid=46385)

Question for Patchou [Personal Away Msg] by XM4ST3RX on 06-16-2005 at 01:27 AM

Hi,

Would it be possible for you to allow plugins to change the personal away message please? If not how come? Thanks


Kind Regards,
XM4ST3RX


RE: Question for Patchou [Personal Away Msg] by Mnjul on 06-16-2005 at 03:50 AM

If you desire, access the registry directly (that's what I do for Hopper :p)

HKCU\Software\Patchou\MsgPlus2\(User Email)\Preferences\PersoAways\PersoAwayx -> Message

Note x is the zero-based index. :)


RE: Question for Patchou [Personal Away Msg] by XM4ST3RX on 06-16-2005 at 04:18 AM

Hi,

Sorry i meant Personal Status... so that you can change the personal status via plus! plugin along with its message


Kind Regards,
XM4ST3RX


RE: Question for Patchou [Personal Away Msg] by Dempsey on 06-16-2005 at 08:19 AM

yea i think this would be good (Y)

Would be good if there were other functions accesible to Plugins like SetNewName, maybe things like:

  • Add things to task scheduler
  • Get contact info like last time online etc
  • uhh more I cant think of atm

RE: Question for Patchou [Personal Away Msg] by (CyBeRDuDe) on 06-16-2005 at 09:59 AM

The personal status is very easy!!! :D... But not setting the away message...
I tihnk I have posted this somewhere before.. .I'll just post it again...

bnameresult = SetNewName("somenick" & Chr(160) & "{somestatus}")

That should do the trick.. This code is VB.. I think it is easy to convert to c++/others....

the Chr(160) is just the Ascii character of 160... :S... If you understand...


RE: Question for Patchou [Personal Away Msg] by Dempsey on 06-16-2005 at 10:24 AM

yea but he needs to set the custom auto-reply message, not just the custom status


RE: Question for Patchou [Personal Away Msg] by Mnjul on 06-16-2005 at 12:06 PM

And if you do what (CyBeRDuDe) said, Messenger Plus! doesn't automatically remove the name suffix tag when you change your status.

Anyway, I'd like to see this (Plugin-trigger-Personalised Status) function get included too...Patchou? :p


RE: Question for Patchou [Personal Away Msg] by RaceProUK on 06-16-2005 at 01:45 PM

If keyboard shortcuts are set up, you could get them from the Registry and simulate the pressing of those keys.

EDIT: Note it's a DWORD value, and so may need parsing.


RE: Question for Patchou [Personal Away Msg] by Plik on 06-16-2005 at 03:39 PM

quote:
Originally posted by Dempsey
yea but he needs to set the custom auto-reply message, not just the custom status

You can set the auto-reply message using the commands, assuming he's setting the status from ParseCommand, or ReceiveNotify.
All he has to do is return the status command with the automessage appended. Like this:
code:
sResult = "/brb Im not here"
and Im not here will be the autoreply method.

You could then use CyBeRDuDe's method to set the tag if you could work out a way to tell if the contacts status has changed (could be done using the messenger api).

But this is complicated and dodgy, so a function in the API would be the best (y)
RE: Question for Patchou [Personal Away Msg] by Mnjul on 06-16-2005 at 04:34 PM

But what I want, and I guess what XM4ST3RX and Dempsey want, is that Plus! provides a function for plugins to trigger Personalised Status anywhere (not only in ParseCommand), just like SetNewName() function... ;)


RE: Question for Patchou [Personal Away Msg] by Plik on 06-16-2005 at 04:41 PM

quote:
Originally posted by Mnjul
But what I want, and I guess what XM4ST3RX and Dempsey want, is that Plus! provides a function for plugins to trigger Personalised Status anywhere (not only in ParseCommand), just like SetNewName() function... ;)

quote:
Originally posted by Madman
But this is complicated and dodgy, so a function in the API would be the best (y)

I agree that a function is the best way for it, i was just posting a work around.

RE: Question for Patchou [Personal Away Msg] by RaceProUK on 06-16-2005 at 08:47 PM

Wasn't there a /persostat at one point?


RE: Question for Patchou [Personal Away Msg] by Dempsey on 06-16-2005 at 09:30 PM

quote:
Originally posted by raceprouk
Wasn't there a /persostat at one point?
yea there is

quote:
Originally posted by MsgPlus Help
/persostat
   

(none)
number, "1" to "20"
   

Open the Personalised Status window
Changes status to pre-recorded one

But it only allows setting of preset statuses, not changing it on the fly