Importing a Snapshot from a window off screen

Richard Gaskin ambassador at fourthworld.com
Fri Sep 18 15:21:26 EDT 2015


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.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list