Hi all, I'm having some difficulty understanding the interface of the Java MethodCall constructor, as the javadoc doesn't explain the arguments at all.<br><br>I want to be able to replicate the call:<br>dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/firepaint/allscreens/add_particle org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'` string:'x' double:320 string:'y' double:240<br>
<br>I've replicated the low-level example in the java documentation, and am just altering the MethodCall parameters to suit my case. My attempt is:<br><br> Message addParticle = new MethodCall(<br> "org.freedesktop.compiz", //dest<br>
"/org/freedesktop/compiz/firepaint/allscreens/add_particle", //path<br> "org.freedesktop.compiz", //iface<br> "activate", //member<br>
(byte)0, //flags<br> null, //signature<br> "root", (int)0xC2, //args<br> "x", (double)320.0,<br> "y", (double)440.0);<br>
<br>However this doesn't appear to work, so any help in making the correct constructor would be appreciated!<br><br>Second (off-topic) question:<br>0xC2 was the result of `xwininfo -root | grep id: | awk '{ print $4 }'` at the time I was testing this program. Is there a way I can get this information from java?<br>
<br>Cheers,<br>Ben<br>