AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dummy Screen Resolution Template/Mask

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Muzzi



Joined: 15 Jun 2008
Posts: 65
Location: east coast of Australia

PostPosted: Sat Aug 09, 2008 4:15 am    Post subject: Dummy Screen Resolution Template/Mask Reply with quote

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

_________________
̊˳ɱטᶚᶚї˳̊
Back to top
View user's profile Send private message
Tycho
Guest





PostPosted: Sat Aug 09, 2008 10:35 am    Post subject: Reply with quote

This would be good to see how website's look on different resolutions.
Back to top
Scorge



Joined: 28 Aug 2007
Posts: 10

PostPosted: Tue Aug 12, 2008 8:47 pm    Post subject: Reply with quote

I just test it, its kinda cool! Very Happy
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group