Shoutbox

[vb] getting own msn nick(without messenger api) - 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: [vb] getting own msn nick(without messenger api) (/showthread.php?tid=27859)

[vb] getting own msn nick(without messenger api) by DJmorphine on 06-29-2004 at 07:09 AM

Im making a plugin.. one of the function is that its replacing current nick with special unicode characters. To do that I need to get the friendly name. I can use  messenger api for that, the problem is that many poeple have problems with my plugin when I'm using that method becouse they have a not Or older version of messenger. Isnt there a way I can use msn plus commands or something so I can het my friendly nick without the use of the messenger api?

sorry for my bad english


RE: [vb] getting own msn nick(without messenger api) by Choli on 06-29-2004 at 08:28 AM

You should try use the messenger api, it works, however there's a (very dodgy) work arround to this:

Say your command to do that is /xspecial_nick . Then when your plugin parses that command, it'll output /xspecial_nick2 (!NP) and then it parses xspecial_nick2 and you'll have the nick (and then you output the a /nick command to change the nick)


RE: [vb] getting own msn nick(without messenger api) by DJmorphine on 06-29-2004 at 08:51 AM

No that one doesnt work, because i first must read the nickname then I convert all the characters, and then I set the new nick.

this is the current code:

ElseIf (StrComp(LCase(sCommand), "/xunireplacenick",    vbTextCompare) = 0) Then
        UniForwards (Messenger.MyFriendlyName)
        sResult = "/nick " & newnick
        ParseCommand = True
Exit Function

It works great on my machine, but I tried it on serveral others but it doenst work I installed windows messenger 4.7..it doenst work..I installed windows messeger 5.0.. it doenst work..

isnt there a way to do somethinh with:
Sending command (!P) getting the output without printing???


RE: [vb] getting own msn nick(without messenger api) by DJmorphine on 06-29-2004 at 08:52 AM

edit: sorry i mean (!N)


RE: [vb] getting own msn nick(without messenger api) by Choli on 06-29-2004 at 09:14 AM

quote:
Originally posted by DJmorphine
No that one doesnt work, because i first must read the nickname then I convert all the characters, and then I set the new nick.
that's just what i w<anted to say. it'd something like this:
code:
ElseIf (StrComp(LCase(sCommand), "/xunireplacenick",    vbTextCompare) = 0) Then
        sResult = "/xunireplacenick2 (!NP)"
        ParseCommand = True
        Exit Function
ElseIf (StrComp(LCase(sCommand), "/xunireplacenick2",    vbTextCompare) = 0) Then
        UniForwards (sCommandArg)
        sResult = "/nick " & newnick
        ParseCommand = True
Exit Function

quote:
Originally posted by DJmorphine
edit: sorry i mean (!N)
hehe, you can edit your posts, no need to post another one ;)
RE: [vb] getting own msn nick(without messenger api) by DJmorphine on 06-29-2004 at 09:44 AM

YEAH that worked, very nice!!!!