View Full Version : How to get and set EXACT window size?
gfroyle
Sep 21, 2007, 03:50 AM
I am writing some training materials that include lots of screenshots.
On Windows (shudder) I use this incredibly handy little freeware tool called "Sizer" which allows me to simply snap the size of any window to an EXACT size - say 800 x 600 - so that every screen shot I take has the exact same size and the whole effect looks more consistent and professional. It takes me less than a second to set up again for a new session of writing/recording at exactly the same size as the previous session..
But I can't find anything similar for Mac OS - in fact I can't even find out how to FIND OUT the size of a window, let alone SET it to something... There are a couple of "screen rulers" out there, but surely there is some easy way of getting a window to report its size?
Thanks
Gordon
Habakuk
Sep 21, 2007, 04:50 AM
For Safari type or copy the code in it's address field then press the return key:
1024x800
javascript:self.resizeTo(1024,800)
Sometimes (mostly esp. with blank pages) it works, sometimes not. You can create shortcuts for it and save them as bookmarks. Other scripts:
800x(max)
javascript:self.resizeTo(800,screen.availHeight)
Full screen
javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
800x600
javascript:self.resizeTo(800,600)
gfroyle
Sep 21, 2007, 11:37 PM
For Safari type or copy the code in it's address field then press the return key:
1024x800
javascript:self.resizeTo(1024,800)
Wow.. thanks a lot - I am working with Firefox and it works beautifully..
Cheers
Gordon
highres
Sep 21, 2007, 11:39 PM
For Safari type or copy the code in it's address field then press the return key:
1024x800
javascript:self.resizeTo(1024,800)
Sometimes (mostly esp. with blank pages) it works, sometimes not. You can create shortcuts for it and save them as bookmarks. Other scripts:
800x(max)
javascript:self.resizeTo(800,screen.availHeight)
Full screen
javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
800x600
javascript:self.resizeTo(800,600)
nice trick...will add that to my bag of shortcuts...
JBat
Sep 21, 2007, 11:42 PM
For Safari type or copy the code in it's address field then press the return key:
1024x800
javascript:self.resizeTo(1024,800)
Sometimes (mostly esp. with blank pages) it works, sometimes not. You can create shortcuts for it and save them as bookmarks. Other scripts:
800x(max)
javascript:self.resizeTo(800,screen.availHeight)
Full screen
javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
800x600
javascript:self.resizeTo(800,600)
Wow. That's really cool. Thanks for the info.
Pants Dragon
Sep 21, 2007, 11:56 PM
Just so you know, I have my computer set to not allow sites to resize my window. It's annoying and pointless. Just show the image in the current window's size.
gfroyle
Sep 22, 2007, 12:05 AM
Just so you know, I have my computer set to not allow sites to resize my window. It's annoying and pointless. Just show the image in the current window's size.
I'm not trying to resize anyone else's window.. I'm trying to resize my OWN windows, so that the screenshots that I take are all consistently and identically sized...
What Habakuk told us is that you can size your OWN Safari/Firefox window to the exact size you want by typing the javascript into the address bar..
Pants Dragon
Sep 22, 2007, 02:09 PM
Oh, heh, well then. Silly me.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.