snapshot and animation capture

J. Landman Gay jacque at hyperactivesw.com
Fri Jan 29 16:30:52 EST 2016


On 1/29/2016 1:35 PM, Richmond wrote:
> So, I thought I'd have a bash at rolling my own, but got stuck:
>
> on mouseUp
>     put topleft of img "border.png" & "," & the bottomright of img
> "border.png" into ZZZZ
>     put quote & ZZZZ & quote into fld "guff"
>     put fld "guff" into QQQQ
>     export snapshot from rect QQQQ of stack "Super Snap" to file
> "QQQQ.png" as PNG
> end mouseUp
>
> the thing gets stuck on the "export snapshot" line . . . cannot think
> why . . .
>
> image "snapBTN.png": execution error at line 5 (import: error in
> expression), char 1
>
> that stuff about "char 1" makes NO sense at all.

I think in general it means the line won't compile at all, there's no 
specific place it errors.

By adding quotes to the variable, you are specifying a string rather 
than a rect. Omit the quotes from the field.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list