Importing a Snapshot from a window off screen

Ray ray at linkit.com
Fri Sep 18 18:42:18 EDT 2015


Good point Richard. I had tried importing from the stack which didn't 
work so I [wrongly] assumed it also would not work from the card.  But 
it does!  That's even easier.

On 9/18/15 3:21 PM, Richard Gaskin wrote:
> Ray wrote:
>> Paul - once again thanks for this insight.  I'd thought I'd let you know
>> the following script which groups everything on the card, gets a
>> snapshot /of the group/, and then ungroups everything, is working well.
>>
>> on importGroupSnapshot snapName,myRect
>>     repeat with C=1 to number of controls
>>        set the selected of control C to true
>>     end repeat
>>     group
>>     import snapshot from rectangle myRect of last grp
>>     set the name of last img to snapName
>>     select last group
>>     ungroup
>>     select empty
>>     choose the browse tool
>> end importGroupSnapshot
>
> Unless you need the group for other purposes, you can use the card 
> object directly.
>





More information about the use-livecode mailing list