send command to plugin
Posted by: xray
Date: September 02, 2008 03:59PM

whats the proper way to send a message (command) from one plugin to another? thanks!

Re: send command to plugin
Posted by: JamesD
Date: September 02, 2008 08:04PM

This is from the Macro Language. http://kmeleon.sourceforge.net/wiki/MacroLanguage2

Quote
http://kmeleon.sourceforge.net/wiki/MacroLanguage2
The K-Meleon Plugins


plugin( PLUGIN, COMMAND ); Since version 0.7


pluginmsg( PLUGIN, COMMAND, ARGS ); Since version 0.7



$REPLY = pluginmsgex( PLUGIN, COMMAND, ARGS, TYPE ); Since version 0.7

Runs a plugin command. The possible values of COMMAND, ARGS and TYPE depend on the specific plugin. See the complete list of plugin commands.


Re: send command to plugin
Posted by: xray
Date: September 02, 2008 11:49PM

JamesD, thanks for trying to help. I'm aware of the available macro commands. My purpose is to call a plugin-command from within another >own written< plugin though. Maybe Dorian could be so kind to give an explanation how to do that. Thanks.

Re: send command to plugin
Posted by: xray
Date: September 03, 2008 01:20AM

btw, also I managed to do what I wanted by using the GetID-function I'm not sure if thats the proper way.
In any case, whats the purpose of the BroadcastMessage-function?

Re: send command to plugin
Posted by: Dorian
Date: September 03, 2008 05:25PM

You have to use SendMessage to send message to other plugin.

BroadcastMessage was used to send windows message to all kmeleon window. Not something you really want to use.

Re: send command to plugin
Posted by: xray
Date: September 06, 2008 03:16PM

thanks for your reply!

K-Meleon forum is powered by Phorum.