On Sunday 27 January 2008, [EMAIL PROTECTED] wrote: > dcop konqueror-6352 'konqueror-mainwindow#1' openURL > 'http://slashdot.org' > dcop konqueror-6352 html-widget2 print true > > There's a bit more than that, since widget names change, but a simple > perl program handles it easily (so far!). > > However, there's a problem. The "openURL" command returns without > waiting for the web page to finish loading, and the "print" command > does not wait for it to finish loading. The "print" command does wait > for printing to finish before returning, which is nice. >[cut] > 1. Is there either a DCOP command to wait for a URL to be loaded or a > DCOP command like openURL which waits?
I know of no direct method, and I can't answer your other questions either. However, the following (admittedly *really* kludgy and quick-and-dirty) method *seems* to work: dcop konqueror-6352 'konqueror-mainwindow#1' openURL 'http://my.url' while true; do # check if the "stop" button is clickable stat=`dcop konqueror-6352 konqueror-mainwindow#1 actionIsEnabled stop` if [ "$stat" == "true" ]; then # "stop" button is active, so page is still loading sleep 5 else # "stop" button is not active, page has loaded break fi done # do what you want here As I said above, I did some tests and this seems to work. However, I'm not claiming that it's the solution to your problem, nor that it will always work as expected. Therefore, I strongly suggest you test it thoroughly before using it. Hope that helped. -- gentoo-user@lists.gentoo.org mailing list