On 07/03/2010 10:42 PM, J. Landman Gay wrote:
Steve King wrote:
Hi

I am exporting a screen image of a card to file.
I allow the user to select a filename then save the image using the script
below. I have had to add a 400mS wait in for the save dialogue to vanish
before the snapshot is taken. This works OK, but is there a better way to do
it that guarantees that the save dialogue will be gone first?

I can't figure out why that's happening, since file dialogs halt the script until they are closed.

You could avoid the whole issue by not using the screen coordinates (which capture everything) and instead use the card as the reference. That will capture only the card's bitmap and will ignore any other windows that are open.

 export snapshot from this card to file UserFileName as JPEG


Here we go again; Jacque obviously keeps a well-sharpened copy of Occam's
razor under the kitchen sink . . . Bravo; the simplest way is always the best.
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to