Does exporting a snapshot from a rect work on mobile?

jonathandlynch at jonathandlynch at
Thu Aug 31 09:34:40 EDT 2017

Hi Mark,

I am trying to hack together a way to detect the height of the keyboard on Android. My plan is to have an image 1-pixel wide, but full height of the screen, with an rgb color of 0,0,1. 

If the snapshot includes the keyboard, then the image data of the snapshot will include a point where the color changes to something other than 0,0,1. I can use that point to calculate how high the keyboard is.

Yes, this is a ridiculous hack, but I do not see another solution.

I can work with getting a snapshot just from the browser widget, for my particular case. As long as it also includes the keyboard in the image.

I still have to test for that.

Thanks for looking into this issue.


Sent from my iPhone

> On Aug 31, 2017, at 8:25 AM, Mark Waddingham via use-livecode <use-livecode at> wrote:
> Hi Jonathan,
>> On 2017-08-31 14:09, Jonathan Lynch via use-livecode wrote:
>> Thanks for checking Paul. It appears that, with a browser widget on
>> screen, I am only getting an image from the parts of the screen with
>> the browser widget.
>> With import snapshot, the non-browser parts of the image are
>> transparent (and black). With exporting a snapshot to a variable and
>> putting that variable into an image, the non-browser parts are visible
>> but black.
>> I will do more exploring and file a bug report if I can isolate the issue more.
> This is - back when this was reported there was no way to do as you are wanting. However, it seems like since then there is a new way to get a snapshot of the screen:
> So we can try that to fix the problem (it might still not work for some layer types).
> Warmest Regards,
> Mark.
> -- 
> Mark Waddingham ~ mark at ~
> LiveCode: Everyone can create apps
> _______________________________________________
> 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