What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Received Windows Messages (HELP!)

Received Windows Messages (HELP!)
Author: Message:
Ace
New Member
*


Posts: 3
Joined: Jan 2005
O.P. Received Windows Messages (HELP!)
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 :)
01-07-2005 10:14 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Received Windows Messages (HELP!)
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)?
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
01-07-2005 10:47 PM
Profile PM Find Quote Report
Ace
New Member
*


Posts: 3
Joined: Jan 2005
O.P. RE: Received Windows Messages (HELP!)
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?

This post was edited on 01-07-2005 at 11:02 PM by Ace.
01-07-2005 11:02 PM
Profile E-Mail PM Find Quote Report
Tochjo
forum super mod
******

Avatar

Posts: 4207
Reputation: 78
37 / Male / Flag
Joined: Sep 2003
RE: Received Windows Messages (HELP!)
At http://www.msgplus.net/help_plugins.php you should be able to find what you need :)
01-07-2005 11:06 PM
Profile PM Find Quote Report
Ace
New Member
*


Posts: 3
Joined: Jan 2005
O.P. RE: Received Windows Messages (HELP!)
yeah but... there is no documentation, there is just examples and a couple modules :(
01-07-2005 11:12 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Received Windows Messages (HELP!)
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.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
01-08-2005 02:03 AM
Profile 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