Snaptshot of Browser Widget in iOS?

jonathandlynch at jonathandlynch at
Thu May 18 20:13:48 EDT 2017

There are some JavaScript libraries that can convert an HTML page into an image (not just a canvas object) - that could be your backup if all else fails.

Sent from my iPhone

> On May 18, 2017, at 6:26 PM, JOHN PATTEN via use-livecode <use-livecode at> wrote:
> Hi All!
> I am trying to lay some objects (text fields, graphics, etc.) over a browser widget. I am essentially just taking a screen capture and then layering the objects on top of the image. Here is my script:
> on mouseUp
> lock screen
> put the rect of current stack into tCoord
> set the width of image 1 to the width of current stack
> set the height of image 1 to the height of current stack
> set the topleft of image 1 to 0,0
> export snapshot from rect tCoord to file specialFolderPath("documents") & "File1.png"
> set the visible of widget "browser" to false
> set the filename of image id 1008 to ""
> wait 2
> set the filename of image id 1008 to SpecialFolderPath("documents") & "File1.png"
> -- I believe i needed the three previous lines to get this to work for some reason???
> show image id 1008 with visual effect dissolve slowly
> unlock screen
> end mouseUp
> This works fine on my Mac, but when I test it in the iOS simulator it does not work. Is it not possible to take a snapshot of the browser widget in iOS?
> Thank you!
> John Patten
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list