Shoutbox

Received Windows Messages (HELP!) - 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: Received Windows Messages (HELP!) (/showthread.php?tid=36601)

Received Windows Messages (HELP!) by Ace on 01-07-2005 at 10:14 PM

Let's see... this is my first post in these forums...
I am developing a plugin for MsgPlus and I've come to a part where I have to make the user change his status... I can make it through Messenger API but it's a mess in case the user has more than 1 MSN session opened...
There is a way to change user's nick... which is like this (in VB)

code:
Public Function SetNewName(ByVal sMessage As String) As Boolean
    Dim nMsg As Long
    nMsg = RegisterWindowMessage("MessengerPlus_SetName")

    Dim nResult As Long
    nResult = SendMessage(HWND_BROADCAST, nMsg, StrPtr(sMessage), 1)
    If (nResult = 0) Then
        SetNewName = False 'Can happen if the user if offline
    Else
        SetNewName = True 'There is no absolute way to detect if the function was successful
    End If
End Function

You can see that it "sends" MessengerPlus_SetName plus the desired name to MsgPlus process... So I want to know if there is any "message" that would change user status, and if there is a list of these messages.
Thx a lot in advance :)
RE: Received Windows Messages (HELP!) by Choli on 01-07-2005 at 10:47 PM

nope, there isn't any. The only messages that the plus process understands, are the one that changes the nick, the one that tells that a new pluging has been installed and the one that displays a notification window. All of them are documented in the plugin api documentation of plus.

quote:
Originally posted by Ace
So I want to know if there is any "message" that would change user status
why don't you just make your plugins return the text "/away" (or "/busy", etc..) so plus sends it (and then change the status)?
RE: Received Windows Messages (HELP!) by Ace on 01-07-2005 at 11:02 PM

because it should do /appearoffline and /online... and /online cant be sent if the user appears offline... you know, the box grays

Edit: where can i find that documentation?


RE: Received Windows Messages (HELP!) by Tochjo on 01-07-2005 at 11:06 PM

At http://www.msgplus.net/help_plugins.php you should be able to find what you need :)


RE: Received Windows Messages (HELP!) by Ace on 01-07-2005 at 11:12 PM

yeah but... there is no documentation, there is just examples and a couple modules :(


RE: Received Windows Messages (HELP!) by Choli on 01-08-2005 at 02:03 AM

each function in the examples has a comment that explains what it does and when it's called. Read all that carefully and try to understand what the code does, it should be enough for you to learn the API of Plus.

quote:
Originally posted by Ace
because it should do /appearoffline and /online... and /online cant be sent if the user appears offline... you know, the box grays
Ah, I see.
I'm afraid you'll have to use the Messenger API.