What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » How to get Username or other User-info

How to get Username or other User-info
Author: Message:
TWDman
Junior Member
**

Avatar

Posts: 83
38 / Male / –
Joined: Nov 2002
O.P. How to get Username or other User-info
Hello everyone,

I downloaded the source of that xSlap! plug-in because we are allowed to tweak it. I am trying to make it like this:

TWDman slaps %CONTACTNAME% around a bit with a large trout.

I tried this first with just "(!N)" but then Plus! doesnt convert it to the contactname. Then I saw in the Header some Control Characters and thats why I tried to put an extra code-line in the header:

const char* sCCContactName  = "(!N)";

But it doesnt make any sence.

Who can help me??

Thanks!!!


[EDIT] mmm i was thinking: maybe this isn't possible yet. Patchou, tell me: is this possible? If not, could you please add it to you next Plus!API??[/EDIT]

[EDIT2]when i type /me (!N) in the conversation windows it works, but not when i do it with the plug-in :S[/EDIT2]

This post was edited on 07-04-2003 at 05:26 PM by TWDman.
EMODEROR感R釀EPTORIS意ON惹VM
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
Rate me!!!
07-04-2003 04:58 PM
Profile E-Mail PM Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: How to get Username or other User-info
did you try sCCContactName? thats the constant which is (!N) ...
The previous sentence is false. The following sentence is true.
07-04-2003 05:07 PM
Profile PM Find Quote Report
TWDman
Junior Member
**

Avatar

Posts: 83
38 / Male / –
Joined: Nov 2002
O.P. RE: How to get Username or other User-info
yes I tried that. Sorry I thougt you guys would understand that. SORRY !!!! Yes I tried sCCContactName but then I got:

TWDman slaps (!N) around a bit with a large trout.
EMODEROR感R釀EPTORIS意ON惹VM
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
Rate me!!!
07-04-2003 05:09 PM
Profile E-Mail PM Find Quote Report
Predatory Kangaroo
Full Member
***


Posts: 144
– / Male / –
Joined: Jul 2003
RE: How to get Username or other User-info
I'm starting to get this...
It seems that the order of precedence is to run all the plugins after the standard messenger plus functions, effectively stopping us from using any of the flags that are processed on sending, only on recieving.
So here's an official request: Maybe in the next version of the SDK we could have the ability to either choose to run plugins before the standard functions, or to call the standard ones from within the function with a call like stdParseCommand(const char*sCommand, const char* sCommandArg, PLUGIN_PARAM* pParam, char* sResult).
It could be a bit more trouble in the code (although it should be okay), but it would give people *much* more freedom with their plugins.
07-05-2003 05:49 AM
Profile PM Web Find Quote Report
Derusc
Junior Member
**

3簧繕$|<

Posts: 20
41 / Male / –
Joined: Jul 2003
Status: Away
RE: How to get Username or other User-info
i think that with this : PLUGIN_PARAM* pParam u can get the name of who had genereted the action but with a session code before.

U can get this  <sessioncode><nickname>


07-28-2003 10:18 AM
Profile E-Mail PM Find Quote Report
Xerxis
Full Member
***


Posts: 234
Reputation: 1
41 / Male / –
Joined: Jul 2003
Status: Away
RE: How to get Username or other User-info
you can use the oConversationWnd argument of the parsecommand and parsetag functions

use it like this

oConversationWnd.contacts(0).friendlyname

in vb at least

you should use the oconversationwnd as a MessengerAPI.IMessengerConversationWnd interface

good luck
07-28-2003 10:23 AM
Profile E-Mail PM Web Find Quote Report
TWDman
Junior Member
**

Avatar

Posts: 83
38 / Male / –
Joined: Nov 2002
O.P. RE: How to get Username or other User-info
Thanks DJ for writing this code. I will test it after I come back from my holiday in Turkey!

Thanks
EMODEROR感R釀EPTORIS意ON惹VM
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
Rate me!!!
07-28-2003 11:32 AM
Profile E-Mail PM Find Quote Report
user2319
Disabled Account


Posts: 1779
Joined: Oct 2002
Status: Away
RE: How to get Username or other User-info
TWDman, can you make it that i uses the custom name you specified? :gfdrin:

so it won't be

* user2319 slaps   hello ppl I'm on holiday on the other side of the world and i'm making fine :D it is nice weather and this internet cafe rocks! grtz someone   around a bit with a large trout,

but,

* user2319 slaps someone around a bit with a large trout
07-29-2003 02:47 PM
Profile PM Find Quote Report
Orkblutt
Junior Member
**

Avatar

Posts: 74
Joined: Aug 2004
RE: How to get Username or other User-info
Hi,

when I'm trying to use the Msn API, I've compilation problem...
one library is missing...

look at the error:

error LNK2019: external symbols _IID_IMessengerContact, _IID_IMessengerContacts, _IID_IMessengerConversationWnd unresolved.

Could you help me please? any idea about which library I must to link ?
( I'm using VC++ 7.1 on XP sp1 )


This post was edited on 09-01-2004 at 04:59 PM by Orkblutt.
09-01-2004 01:42 AM
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