AutoHotkey Community

It is currently May 27th, 2012, 1:19 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: August 9th, 2008, 5:15 am 
Offline

Joined: June 15th, 2008, 8:01 am
Posts: 111
Location: Sydney, Australia
I'm not sure if this has been thought of before but I thought I'd share my idea.

Basically it substitutes any screen resolution without altering the screen property settings.

I was getting annoyed when I was working on a project that required a partcular screen resolution ie./ 800x 600. Usually I use 1280x 1024x 2 (dual screens) but I got jacked whenever I set the screen properties back to find all my desktop icons, approx. 200 of them, scattered all over the place and about 50 of them stacked on top of on another in the top left corner...Grrrr!

Anyway this works a treat... I'm sure someone will find it useful.

Alt + SPACE :activates GUI Mask
Alt + X :destroys it
Escape to exit


BTW... this obviously will only give you screen res settings less than what your display settings are set to.

Code:
#SingleInstance,Force
#Persistent


TemplateWidth = 800  ;sets your required screen width
TemplateHeight = 600  ;sets your required screen height


!SPACE::
MASK1Width := (A_ScreenWidth - TemplateWidth)
MASK1Height := (A_ScreenHeight)
MASK2Width := (A_ScreenWidth)
MASK2Height := (A_ScreenHeight - TemplateHeight)

GUI 1:-Caption +AlwaysOnTop
GUI 1:Color, 0
GUI 1:Submit, nohide
GUI 1:Show, x%TemplateWidth% y0 h%MASK1Height% w%MASK1Width%, SCREEN_MASK

GUI 2:-Caption +AlwaysOnTop
GUI 2:Color, 0
GUI 2:Submit, nohide
GUI 2:Show, x0 y%TemplateHeight% h%MASK2Height% w%MASK2Width%, SCREEN_MASK
Return

!X::
GUI 1: destroy
GUI 2: destroy
return

Esc::ExitApp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2008, 11:35 am 
This would be good to see how website's look on different resolutions.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2008, 9:47 pm 
Offline

Joined: August 28th, 2007, 7:35 am
Posts: 10
I just test it, its kinda cool! :D

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group