Shoutbox

RegisterWindowMessage & SendMessage - 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: RegisterWindowMessage & SendMessage (/showthread.php?tid=34153)

RegisterWindowMessage & SendMessage by limus on 11-06-2004 at 02:34 AM

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.


RE: RegisterWindowMessage & SendMessage by limus on 11-06-2004 at 06:23 PM

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


RE: RegisterWindowMessage & SendMessage by RaceProUK on 11-06-2004 at 11:10 PM

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.


RE: RegisterWindowMessage & SendMessage by CookieRevised on 11-08-2004 at 03:28 AM

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)...
RE: RegisterWindowMessage & SendMessage by limus on 11-08-2004 at 11:03 PM

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?