Originally Posted by silver18
Some WAFs use kindle.messaging.sendMessage to send messages to lipc. Here's how the adviewer does it:
kindle.messaging.sendMessage('com.lab126.adManager', 'adViewerMessage', buildMsgReq(START_BROWSE, params));
As lipc it something outside the WAF, this is used to send messages for logs and for performing actions.
If we could bind our WAFs lipcId to some properties, we could use lipc to run a script from inside a WAF by sending the corresponding message.
I'm here again...The biggest problem when using a WAF is the lack of shell scripting.
While I still think the solution posted above is the real solution to this problem, one could also act this way:
kindle.messaging.sendMessage(YOUR_WAF_HERE, YOUR_PROPERTY_HERE, YOUR_MESSAGE_HERE);
2) place in config.xml
<kindle:app name="YOUR_WAF_HERE" value="yes" />
3) once the sendMessage command is launched, you can see this in showlog -f:
121119:133711 wafapp: W lipc:pnr:prop=YOUR_PROPERTY:Property not registered
121119:133711 wafapp: E com.silver18.komic001:LipcAdapter::setProperty:Failed to set string property YOUR_PROPERTY:
4) One could, hypothetically, run a script in background (using the same starting script used to run the WAF with the launcher) to continuously check the log for the correct property and, if found, do something.
This means, on the other hand, having something running in background (I don't like this!!)