What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Retrieving friendly name of contact who sends action

Retrieving friendly name of contact who sends action
Author: Message:
can16358p
Junior Member
**

WLM + MP!L User

Posts: 58
34 / Male / –
Joined: Oct 2005
Status: Away
O.P. Huh?  Retrieving friendly name of contact who sends action
I have a very small c++ knowledge but still can make some small things with it.

In my plugin, if you write a command that start with /x, users on your list with this plugin are notified with a toast that you did this, making this is very simple as you all know :)

But I have three problems;
1. The same notification comes to me too, which I don't want.
2. I just use a specific string for example "Mary has typed the command!", but I want to retrieve this person's friendly name and use it in that toast. (the main reason I opened this topic) How do I retrieve the friendly name of my contact that sent this command to me?
3. When I click the toast, I want to open convo with that person, just like in the way you click when someone sends a message or signs in.
10-16-2005 07:13 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Retrieving friendly name of contact who sends action
1.  -  I'd have a boolean, which I set to true at the beginning of the ParseCommand and before showing the notification, check if the boolean value is false and if it is you know it's running from the computer that sent the command.

2.  -  You need to use the Messenger API to do that, look at the Advanced Visual C++ 7 sample in the Plus! Plugins download.

3.  -  Again, this can be easily achieved using the Messenger API, there is a function to open a new conversation with someone.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
10-16-2005 08:52 PM
Profile E-Mail PM Web Find Quote Report
can16358p
Junior Member
**

WLM + MP!L User

Posts: 58
34 / Male / –
Joined: Oct 2005
Status: Away
O.P. RE: Retrieving friendly name of contact who sends action
thanks, ill look at the advanced sample, but i didnt understand the solutoion about the first problem. i will declare a boolean, but whats next.. :D
10-19-2005 02:16 PM
Profile E-Mail PM Find Quote Report
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
RE: Retrieving friendly name of contact who sends action
Ok, you make a boolean, lets call it HasSendCommand.

It should be set to false by default. As soon as your function sends the notification, set it to true.

In the receivenotification function, you have to check if HasSendCommand is true. If it is, it should be set to false again and the rest of the function should be ignored (because it was your own notification). If it is false, it was a notification of another person, so it should be parsed(Y)
10-19-2005 06:44 PM
Profile E-Mail PM Find Quote Report
can16358p
Junior Member
**

WLM + MP!L User

Posts: 58
34 / Male / –
Joined: Oct 2005
Status: Away
O.P. RE: Retrieving friendly name of contact who sends action
thanks.

now i have another problem.
i cant send a notify action (the ones that are 5 characters) and a text message at the same time. it sends the text message, but not the action. what should I do?
10-20-2005 07:30 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On