i have a similar application. ListPrint() worked. But the problem, I am having is that the next time i do a GetContents(), the dialog already closed so how do I workaround this? i tried tweaking on the sleep times but that didn't help. any ideas. thanks!
I can't dream of a foolproof method for this, but seemingly you can set you Sleep value at a pretty low tick count. Just playing around with it, I set it at 0.005 and it accpeted that as a valid value. I don't know... It may default to a higher setting.
Here's the little test I did...
I'm guessing it took longer to print the statement each time than it did to actally sleep for 0.005 seconds.
Anyway, with this, you can do a GetContents just about a rapidly as you computer can grab them. Like I said, it isn't foolproof, but I imagine it will grab the last bit of data written before the dialog goes away.