Shoutbox

can this be done? - 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: can this be done? (/showthread.php?tid=62777)

can this be done? by AberNStein on 07-07-2006 at 09:52 PM

i want a script that will put a little icon beside each group name in my contact list, and when i click on it, it will toggle whether sign-in notifications and stuff are enabled for contacts in that group.

so first off, how do i add something to the contact list, and how do i enable/disable notifications for a contact without using /notif?

thanks


RE: can this be done? by deAd on 07-07-2006 at 09:54 PM

Not possible.


RE: can this be done? by AberNStein on 07-07-2006 at 09:55 PM

which bit?


RE: can this be done? by deAd on 07-07-2006 at 09:57 PM

The icons. The notifications are probably possible through the registry.


RE: can this be done? by AberNStein on 07-07-2006 at 10:09 PM

secondary question, quite unrelated:
in a script i'm working on, i need to compare the last message the user sent (stored into a variable when the user sends a message) with the last message in the conversation window. the only problem is that the last message in the window is after evaluating any commands, and the last one the user sent is before. is there any way to grab a message after commands have been evaluated?


RE: can this be done? by RaceProUK on 07-07-2006 at 10:21 PM

quote:
Originally posted by AberNStein
quite unrelated
So new thread? :P
quote:
Originally posted by AberNStein
is there any way to grab a message after commands have been evaluated
It's possible, but will be quite hard I think.
RE: can this be done? by AberNStein on 07-08-2006 at 04:22 AM

quote:
Originally posted by RaceProUK
It's possible, but will be quite hard I think.
possible how?

quote:
Originally posted by MPLScripting.chm
Remarks
This event is generated after Messenger Plus! checks the message for quick texts but before searching for commands or tags. The only exception is for the "/text" command, which, if specified, forces the message to be sent without any kind of modification, including those made by scripts.


RE: can this be done? by RaceProUK on 07-08-2006 at 10:29 PM

Actually, I just thought: it's not possible. I was going to suggest Active Accessibility, but that will get the last line of the conversation, which you want to get to compare in the first place. Short of evaluating all commands and tags yourself (basically part implementing Plus!), it can't be done.


RE: RE: can this be done? by AberNStein on 07-08-2006 at 11:02 PM

quote:
Originally posted by RaceProUK
Actually, I just thought: it's not possible. I was going to suggest Active Accessibility, but that will get the last line of the conversation, which you want to get to compare in the first place. Short of evaluating all commands and tags yourself (basically part implementing Plus!), it can't be done.


thanks.

as for the orignal question:
i've just taught myself resource hacking and I can add to the right click menu for a group. where does msgplus store the per-contact settings for notification?
RE: can this be done? by RaceProUK on 07-08-2006 at 11:09 PM

Registry ;)


RE: can this be done? by AberNStein on 07-08-2006 at 11:11 PM

quote:
Originally posted by RaceProUK
Registry ;)

real helpful
care to point me in the right direction?
RE: can this be done? by RaceProUK on 07-08-2006 at 11:15 PM

It shouldn't be hard to find at all. The main key is in HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live.


RE: can this be done? by AberNStein on 07-08-2006 at 11:18 PM

ahh
i forgot that i was looking for patchou
my bad

edit: ok so i can write a script that toggles notification for a contact or a list of contacts, but i can't find anything in MPLScripting.chm relating to groups. is there any way to get the email addresses of all the contacts in a group?

double edit: if that's not possible, then can I get the email address of the currently selected contact? MyContacts[SelectedIndex].Email or something?