Shoutbox

Combo with Stuffplug - 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: WLM Plus! General (/forumdisplay.php?fid=23)
+----- Thread: Combo with Stuffplug (/showthread.php?tid=70595)

Combo with Stuffplug by Mada.f on 01-12-2007 at 03:02 AM

Okay so if you people haven't found out that there is a new stuff plug update then CHECK!

So to my point...

Stuffplug has Chat only name feature.

Is there a way to make a script that changes the "Chat Only" name to certain emails?

Say you open a chat with blabla@whatever.net
Is there a way to make it detect the email, then change the chat only name to like a preset name.

And then when you talk to another person and say it detects the email you are chatting with; wtf@lol.ca and changes the "chat only name" to another preset name.

Thank you for the time and effort you put in reading this, and I hope it works.


P.S. These are example Emails :D


RE: Combo with Stuffplug by deAd on 01-12-2007 at 03:06 AM

No. Just like your normal WLM nickname, you can't set it per contact.


RE: Combo with Stuffplug by markee on 01-12-2007 at 03:12 AM

This can be done.  All that needs to happen is when a message is sent then you need to check for the contact you are talking to and change the following registry accordingly.

code:
HKEY_LOCAL_MACHINE\SOFTWARE\iAvatars.com\StuffPlug\{User Id}\szChatName

I would do this for you but I'm a bit busy at the moment I'm sorry.
RE: Combo with Stuffplug by Mada.f on 01-12-2007 at 03:14 AM

Perhaps you could do it when you have free time? Or get someone else to do it?


RE: RE: Combo with Stuffplug by deAd on 01-12-2007 at 03:14 AM

quote:
Originally posted by markee
This can be done.  All that needs to happen is when a message is sent then you need to check for the contact you are talking to and change the following registry accordingly.
code:
HKEY_LOCAL_MACHINE\SOFTWARE\iAvatars.com\StuffPlug\{User Id}\szChatName

I would do this for you but I'm a bit busy at the moment I'm sorry.

..not necessarily. There's quite a few problems with that method. To name a few:
(1) Stuffplug probably doesn't read from the registry every time you send a message.
(2) It can sometimes take a bit to load the necessary activex and/or perform the actions you want. The message can already be modified and sent by this time.

There are of course many more problems..
RE: RE: RE: Combo with Stuffplug by markee on 01-12-2007 at 03:22 AM

quote:
Originally posted by deAd
(1) Stuffplug probably doesn't read from the registry every time you send a message.
I checked before posting to make sure it actually did check it every time.
quote:
(2) It can sometimes take a bit to load the necessary activex and/or perform the actions you want. The message can already be modified and sent by this time.

I have found that anything to do with StuffPlug is activated after Plus! has finished first so there should not be a problem there either.
RE: RE: Combo with Stuffplug by MattyRid on 01-12-2007 at 03:23 AM

quote:
Originally posted by markee
This can be done.  All that needs to happen is when a message is sent then you need to check for the contact you are talking to and change the following registry accordingly.
code:
HKEY_LOCAL_MACHINE\SOFTWARE\iAvatars.com\StuffPlug\{User Id}\szChatName

I would do this for you but I'm a bit busy at the moment I'm sorry.


Can't be done on a per contact basis as I said on the stuffplug forums....protocol does not allow a per contact setup, just like you can't have a dp for one contact.
RE: RE: RE: Combo with Stuffplug by markee on 01-12-2007 at 03:25 AM

quote:
Originally posted by MattyRid
quote:
Originally posted by markee
This can be done.  All that needs to happen is when a message is sent then you need to check for the contact you are talking to and change the following registry accordingly.
code:
HKEY_LOCAL_MACHINE\SOFTWARE\iAvatars.com\StuffPlug\{User Id}\szChatName

I would do this for you but I'm a bit busy at the moment I'm sorry.


Can't be done on a per contact basis as I said on the stuffplug forums....protocol does not allow a per contact setup, just like you can't have a dp for one contact.

I thought this was in the scripts section :$  Someone can create a script to do this doing so as I explained in my first post.
RE: Combo with Stuffplug by Mada.f on 01-12-2007 at 03:27 AM

Oops i put it in the wrong section, Move it if you want.


RE: Combo with Stuffplug by MattyRid on 01-12-2007 at 03:27 AM

Still won't work...because the user ID is YOUR user ID for stuffplug settings. So as I said...not possible from a protocol point of view


RE: RE: Combo with Stuffplug by markee on 01-12-2007 at 03:31 AM

quote:
Originally posted by MattyRid
Still won't work...because the user ID is YOUR user ID for stuffplug settings. So as I said...not possible from a protocol point of view

Which is the property Messenger.MyUserId 8-).  As I said this is perfectly possible for even some semi-good scripter to do (as in they have written a script over 20 lines).
RE: Combo with Stuffplug by Mada.f on 01-12-2007 at 03:46 AM

Prove them wrong by making it :P


RE: RE: RE: Combo with Stuffplug by MattyRid on 01-12-2007 at 04:15 AM

quote:
Originally posted by markee
quote:
Originally posted by MattyRid
Still won't work...because the user ID is YOUR user ID for stuffplug settings. So as I said...not possible from a protocol point of view

Which is the property Messenger.MyUserId 8-).  As I said this is perfectly possible for even some semi-good scripter to do (as in they have written a script over 20 lines).


Hate to break news to you but...this is from the documentation itself

quote:
MyUserId - Messenger User ID of the current user.

and it also says "A string specifying the Messenger User ID of the current user."


Now tell me if I understand this wrongly but doesn't that refer to your personal ID, not your contacts ID? so how in the world is that going to work?
RE: Combo with Stuffplug by markee on 01-12-2007 at 04:58 AM

Here is the script you were after.  I just wanted to prove that it could be done.  The script doesn't have any interfaces, you jut have to use the /chatonly command when in a chat with that person.  The contact specific Chat-Only name can only be set and used when there is only one other contact in the conversation with you.  I hope you enjoy it and that other people realize it wasn't impossible after all.


RE: Combo with Stuffplug by CookieRevised on 01-12-2007 at 05:13 AM

quote:
Originally posted by MattyRid
Can't be done on a per contact basis as I said on the stuffplug forums....protocol does not allow a per contact setup, just like you can't have a dp for one contact.
The existance of the ChatOnly Name feature is exactly because the protocol does allow you to send specific stuff to a specific chat*. Otherwise there wasn't a chatonly nickname feature to begin with.

Aka: when Messenger sends a line to a chat session*, the name of the sender is included. And it is exactly this name which is changed to have the ChatOnly Nickname feature.

quote:
Originally posted by MattyRid
Still won't work...because the user ID is YOUR user ID for stuffplug settings. So as I said...not possible from a protocol point of view
The ID hasn't got anything todo with the protocol...

PS: Code to calculate the ID of contact emails (or text for that matter) is well known (thanks to wtbw): CookieRevised's reply to MSN ID calculator

--------

The POC (proof of concept) script of markee, shows it is very well possible. But it has also some implications: eg: if you have automated messages reacting on something a contact says, the script does not change the nickname again to the contact specific one.

As such... such a request and addition to this feature is best to be implemented in StuffPlug itself (although it will always be limited to single contact conversations*).


* It will never ever be a contact specific nickname, but a chat specific nickname... Stuff is send to sessions, which can contain several contacts... hence ChatOnly nickname and not ContactOnly nickname.
RE: Combo with Stuffplug by MattyRid on 01-12-2007 at 05:18 AM

I tell you what you deserve credit markee...although I will say (and not many know this apart from my closefamily members) when I tried ages ago I kept failing miserably, and just forgot about doing it, hence why I thought it was a protocol thing preventing it.

But you have definately proved otherwise...oh and by the way, just as an idea for the interface, when I was doing my one (and kept failing) I was doing it so it was like a table showing the Nickname of the contact, their email address and the chat-only name that was going to be set. Perhaps an idea to have in your mind maybe?

quote:
Originally posted by CookieRevised
quote:
Originally posted by MattyRid
Can't be done on a per contact basis as I said on the stuffplug forums....protocol does not allow a per contact setup, just like you can't have a dp for one contact.
The existance of the ChatOnly Name feature is exactly because the protocol does allow you to send specific stuff to a contact. Otherwise there wasn't a chatonly nickname feature to begin with.

Aka: when Messenger sends a line to another contact, the name of the sender is included. And it is exactly this name which is changed to have the ChatOnly Nickname feature.

Fair enough, as I said I kept trying and fail each time...if only I kept it and didn't trash it when I formatted...oh well such is life I suppose.

Now to run along and watch Australia win :P
RE: Combo with Stuffplug by NanaFreak on 01-12-2007 at 05:22 AM

quote:
Originally posted by MattyRid
But you have definately proved otherwise...oh and by the way, just as an idea for the interface, when I was doing my one (and kept failing) I was doing it so it was like a table showing the Nickname of the contact, their email address and the chat-only name that was going to be set. Perhaps an idea to have in your mind maybe?
i think i will be doing an interface for it... it will be very simple... a list on the left with emails and default on to then a edit box on the right ;)
RE: Combo with Stuffplug by CookieRevised on 01-12-2007 at 05:25 AM

Remember that this will NOT be a contact specific nickname! Calling it that will be wrong (just as saying "open window notifiers" to "opened session notifiers").

The ChatOnly nickname is chat specific, not contact specific.

Keep this in mind when making an interface (or whatever else).

;)


RE: Combo with Stuffplug by MattyRid on 01-12-2007 at 05:26 AM

In fact it is contact specific...I checked before I posted back...markee has used the registry to store each one

See the attachment


RE: Combo with Stuffplug by CookieRevised on 01-12-2007 at 05:29 AM

quote:
Originally posted by MattyRid
In fact it is contact specific...I checked before I posted back...markee has used the registry to store each one
nope it isn't... this reply is exactly why I explicitly repeated again:
quote:
Originally posted by CookieRevised
Remember that this will NOT be a contact specific nickname! Calling it that will be wrong (just as saying "open window notifiers" to "opened session notifiers").

The ChatOnly nickname is chat specific, not contact specific.

Keep this in mind when making an interface (or whatever else).

;)

Thus it is not because this POC script stores it contact specific that the ChatOnly Nickname feature is contact specific.

The ChatOnly Nickname is chat specific....

--------------

On the matter of how to store its settings: markee, try to use the user ID to store stuff. Putting plain emails in the registry is not recommended...(and take in account yahoo contact emails which have a prefix, in case you use the sEmail parameter of events) ;)

--------------

To others: all this is again to say that markee's script is just a POC (proof of concept) to simply show it is possible and should not be used as a "final" script because as a "final" script it doesn't work without glitches and issues.
RE: RE: Combo with Stuffplug by markee on 01-12-2007 at 06:53 AM

quote:
Originally posted by CookieRevised
quote:
Originally posted by MattyRid
In fact it is contact specific...I checked before I posted back...markee has used the registry to store each one
nope it isn't... this reply is exactly why I explicitly repeated again:
quote:
Originally posted by CookieRevised
Remember that this will NOT be a contact specific nickname! Calling it that will be wrong (just as saying "open window notifiers" to "opened session notifiers").

The ChatOnly nickname is chat specific, not contact specific.

Keep this in mind when making an interface (or whatever else).

;)

Thus it is not because this POC script stores it contact specific that the ChatOnly Nickname feature is contact specific.

The ChatOnly Nickname is chat specific....
Exactly th point, hence why I made sure I said that it only works when there is only one other person in the conversation and it will return back to the normal ChatOnly name set in StuffPlug otherwise (and it will do this if there is no ChatOnly name set too).

quote:
On the matter of how to store its settings: markee, try to use the user ID to store stuff. Putting plain emails in the registry is not recommended...(and take in account yahoo contact emails which have a prefix, in case you use the sEmail parameter of events) ;)
I would use the user ID of the contact if there was an easy method.  I realise you have given instructions elsewhere on the forums and I would use it but I wanted to keep the script short and quick (especially seeing as though it is on a send message which is the most used function already).  I forgot about the yahoo thing though, thank you for reminding me and I'll see what I can do....

quote:
To others: all this is again to say that markee's script is just a POC (proof of concept) to simply show it is possible and should not be used as a "final" script because as a "final" script it doesn't work without glitches and issues.

Thank you for making this so explicit, just to make sure everyone is aware.

I'm not sure if I will continue work on this script as I only did it to prove it could be done as I said.  I'm sure it wouldn't take too much effort on my part to do the rest to have easy to use interfaces and the likes but I'm just trying to do a few other things at the moment.  I may come back and develop this script further in the future if no-body else decides to for me and this feature isn't implemented into StuffPlug itself.