What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » RegisterWindowMessage & SendMessage

RegisterWindowMessage & SendMessage
Author: Message:
limus
New Member
*


Posts: 4
Joined: Nov 2004
O.P. RegisterWindowMessage & SendMessage
In the sample plugin, the code for changing your nick is

     UINT nMsg = RegisterWindowMessage("MessengerPlus_SetName");
    SendMessage(HWND_BROADCAST, nMsg, (WPARAM)sName, FALSE);


also, to open a toast, it uses RegisterWindowMessage and SendMessage. This means that there is more functionality than that provided by the commands and tags. My question is:

Does anyone know which messages are available and what parameters they have?

In particular, i want to set/change custom names of my contacts, for what there are no commands.
11-06-2004 02:34 AM
Profile E-Mail PM Find Quote Report
limus
New Member
*


Posts: 4
Joined: Nov 2004
O.P. RE: RegisterWindowMessage & SendMessage
And you all do your plugins with the commands and tags provided?

But!... there are a lot of cool features that could be used :D
Custom names, boss mode, desktop contacts, etc

there MUST be a way to use them :D
11-06-2004 06:23 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: RegisterWindowMessage & SendMessage
You could always read the keyboard shortcut for some features from the Registry, and simulate in code the pressing of that combination. That could work quite well.
[Image: spartaafk.png]
11-06-2004 11:10 PM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RegisterWindowMessage & SendMessage
quote:
Originally posted by limus
And you all do your plugins with the commands and tags provided?

But!... there are a lot of cool features that could be used
Custom names, boss mode, desktop contacts, etc

there MUST be a way to use them
It's not because it uses RegisterWindowMessage and SendMessage that there are more commands/handles that you can use. The specific window/thread must also listen to the commands. If it doesn't listen to other commands (and thus also doesn't have code to interract with it) you can't do anything else.

Also, there are many security issues in accepting more things (like you suggest). Malicious plugins could be made for example. So limitations are build in (or simply "commands" not programmed in) to prevent this.

It is true that Patchou _could_ implement lots of more stuff regarding the programming of plugins. But this wont be done because of the things above.

As it is now, you can already do tons of stuff in one way or another (look at the hundreds of plugins)...

This post was edited on 11-08-2004 at 03:29 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-08-2004 03:28 AM
Profile PM Find Quote Report
limus
New Member
*


Posts: 4
Joined: Nov 2004
O.P. RE: RegisterWindowMessage & SendMessage
quote:
Originally posted by CookieRevised
Malicious plugins could be made for example. So limitations are build in (or simply "commands" not programmed in) to prevent this.

It is true that Patchou _could_ implement lots of more stuff regarding the programming of plugins. But this wont be done because of the things above.

hmmm i can see the security issues. My thought is that you should be able to do with a plugin anything that can be done manually with messenger plus.

HAve you guys found out something you thought you could do but there was no api for it?

This post was edited on 11-09-2004 at 03:16 AM by WDZ.
11-08-2004 11:03 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