RevBrowser - snapshots: not good.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: RevBrowser - snapshots: not good.
Hello,
You can use command line utilities to create snapshots of websites.
Kind regards,
Mark
You can use command line utilities to create snapshots of websites.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: RevBrowser - snapshots: not good.
Hi Mark,Mark wrote:Hello,
You can use command line utilities to create snapshots of websites.
Kind regards,
Mark
Do you have any recommended tools that run on the Mac? The tools would ideally be royalty free and re-distributable with an application.
Thanks, David.
Re: RevBrowser - snapshots: not good.
David: http://qurl.tk/lf
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: RevBrowser - snapshots: not good.
Thanks for the link Mark. I wasn't being lazyMark wrote:David: http://qurl.tk/lf

If anyone is interested here are the links to those tools:
http://www.paulhammond.org/webkit2png/
http://code.google.com/p/wkhtmltopdf/
Kind Regards, David.
Re: RevBrowser - snapshots: not good.
For anyone still willing to do this without any 3rd party external applications, you could do it the long way and set your browser window to the formatted width and height of the actually content then import a snapshot of it followed by adjust it's size again. (You can get the full width and height of a site's page or certain content by using a small VBS script or an even simpler PHP script. It's a cumbersome method, but it works and doesn't require any dependencies outside of itself besides revBrowser.dll 

Re: RevBrowser - snapshots: not good.
Hi qberty,
Thanks, do you have any idea what the VBScript might be or how to do this on Mac?
Best regards,
Mark
Thanks, do you have any idea what the VBScript might be or how to do this on Mac?
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: RevBrowser - snapshots: not good.
Hey Mark,Mark wrote:Hi qberty,
Thanks, do you have any idea what the VBScript might be or how to do this on Mac?
Best regards,
Mark
You could do it the long way and resize the whole image frame to get the screenshot, but a better plan would be using a script. Now i'm not too privvy with VBScript but I can give you js that can be converted.
Code: Select all
<script type="text/javascript">
function doClick(){
var x, y, msg='';
// for all except Explorer
if (self.innerHeight) {
x = self.innerWidth;
y = self.innerHeight;
msg += 'self.innerHeight/Width: '
+ y + ', ' + x + 'px';
// Explorer 6 Strict Mode
} else if (document.documentElement
&& document.documentElement.clientHeight) {
x = document.documentElement.clientWidth;
y = document.documentElement.clientHeight;
msg += 'document.documentElement.clientHeight/Width: '
+ y + ', ' + x + 'px';
// other Explorers
} else if (document.body) {
x = document.body.clientWidth;
y = document.body.clientHeight;
msg += 'document.body.clientHeight/Width: '
+ y + ', ' + x + 'px';
}
alert(msg);
}
</script>
Code: Select all
var scnWid,scnHei;
if (self.innerHeight) // all except Explorer
{
scnWid = self.innerWidth;
scnHei = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
scnWid = document.documentElement.clientWidth;
scnHei = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
scnWid = document.body.clientWidth;
scnHei = document.body.clientHeight;
}