Using export snapshot with a file dialogue box
richmondmathewson at gmail.com
Sat Jul 3 15:02:03 CDT 2010
On 07/03/2010 10:42 PM, J. Landman Gay wrote:
> Steve King wrote:
>> 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
>> 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
More information about the use-livecode