Page 1 of 1

Browser Snapshot

Posted: Mon Aug 24, 2015 10:41 am
by doobox
Hi there,

For LC 6.7 Mac OS X application.

Reading around old posts, I am thinking revBrowserSnapshot has been broken for ever, and it does still appear to be broken for me in LC6.7

Code: Select all

local tSnapshot
revBrowserSnapshot tBrowserID, "tSnapshot"
Error = "card id 1002: execution error at line 29 (Chunk: no such object) near "browser", char 22"

Not 100% sure if this would have even done what I want anyway.
What I'd like to do is take a snapshot of the browser, but the browser will be off the visible card.
Using export snapshot from rect or from object with global co-ords, won't shoot the browser in my tests because, well, its not visible at those off card co-ords, the window below is.

So the question is this.. Is there any way to take a snapshot of a browser that is not within the bounds of the current card.?

Re: Browser Snapshot

Posted: Mon Aug 31, 2015 9:55 am
by MaxV
This code works for me on windows:

Code: Select all

on mouseUp
   local myImage
   revBrowserSnapshot bowserID, "myImage"
   set the imagedata of image 1 to myImage
end mouseUp

Re: Browser Snapshot

Posted: Mon Aug 31, 2015 10:37 am
by doobox
I am afraid this does not seem to work on OS X using the stable version of 6.7.
Generates the error shown in my post above.

Re: Browser Snapshot

Posted: Mon Aug 31, 2015 12:54 pm
by zaxos
You could lock screen, go to the card the browser is, take the snapshot and then go back to the old card, in theory the user wont see anything in the proccess, havent tested it tho.

Code: Select all

on mouseUp
lock screen
go card "browserCard"
local tSnapshot
revBrowserSnapshot tBrowserID, "tSnapshot"
go card "mainCard"
unlock screen
end mouseUp