I've been wanting a way to have fvwm perform tests for modules and respond
to the module for some time now. While it's possible to use SendToModule
with an argument 6 alias, or the program name, that may lead to the reply
being sent to more modules than the originating module. To allow this kind
of talkback I want to have a way to send a M_STRING (or a new similar
message) to the module in current execution context. This could be done
with an option to SendToModule, but that would risk breaking some configs
or modules using a name or alias matching the literal option. The other
way would be to add a new command, only usable form modules (similar to
Send_WindowList and Send_ConfigInfo). I think that Send_Reply is a
suitable name.
Another similar thing that would be very useful is a Send_Rc prefix
command with the following syntax:
Send_Rc token command
That should generate a package with the token and the return-code of
the command along with the usual window context to the originating
command. Another way to allow similar functionality for modules would be
to the returncode preserved for each module, so that it's possible to send
TestRc commands without having to define a function to do so.
What do you think? Which of these are useful, and which ways are the best.
/Viktor