I’m currently using a class found here:
http://www.qualitybrain.com/?p=84
All is working well, however I need the code to wait for the command to finish and then return a true/false type response so I can then continue with the the result.
I’m using it in conjunction with OpenOffice to convert some documents, so waiting for the document conversion to finish before using the resulting files is essential.
Thanks for any help, much appreciated 🙂
receiveWithinis a blocking method. You can test this yourself simply by running the examplemainfunction withsleep 10and aprintlnbefore and after.booleanresult from the run function should be pretty straightforward, you’ll just have to make a small modification to the run function.New
runfunction: