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 

[Solved] Sidebar: Limit the size of maximised windows

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Wouther



Joined: 01 May 2007
Posts: 78
Location: The Netherlands

PostPosted: Mon Jan 14, 2008 8:55 pm    Post subject: [Solved] Sidebar: Limit the size of maximised windows Reply with quote

Hey,

I've searched the forum but I couldn't find code that provided the ability to limit the size of a maximised window. My goal is to create some sort of sidebar, meaning a bar on the left or right of your screen, as tall as your screen, but the most important thing is that when you maximize a window it must 'adapt' itself to the sidebar!
What I mean is the same the taskbar does: windows never get larger than a certain area of the screen (from the top of the screen to the top of the taskbar), so windows never overlay the taskbar. When I try resizing a window I can also not go lower than the top of the taskbar.

Is there any way I can change this area directly? Rolling Eyes

~Wouther

P.S. I found Rajat's Desktop Sidebar, but it either did not work correctly on my pc or it was not suited for my needs. In all cases, it did not provide the ability to do the trick I described above. And I did not feel like posting in a two year old topic... it felt like digging up a grave of someone burried two years ago! Wink
_________________
Printing css/html-formatted text


Last edited by Wouther on Fri Jun 20, 2008 10:39 am; edited 1 time in total
Back to top
View user's profile Send private message
Sakurako



Joined: 10 May 2007
Posts: 142

PostPosted: Mon Jan 14, 2008 9:31 pm    Post subject: Reply with quote

If the result of +AlwaysOnTop not good enough, probably not have any solution yet. At least, not have similar program install at the moment ...
However, if it would be for personal use, try detecting the click on Maximize. Instead of Maximize, the script should save the previous size of that window, resize it to the size should be used, and recognize it as maximized ~
Back to top
View user's profile Send private message
Wouther



Joined: 01 May 2007
Posts: 78
Location: The Netherlands

PostPosted: Thu Jun 19, 2008 3:46 pm    Post subject: Reply with quote

To users searching the forum:
I found a program that does exactly this: Desktop Coral. Very Happy
_________________
Printing css/html-formatted text
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5790

PostPosted: Thu Jun 19, 2008 5:19 pm    Post subject: Re: Sidebar: Limit the size of maximised windows Reply with quote

Wouther wrote:
My goal is to create some sort of sidebar, meaning a bar on the left or right of your screen, as tall as your screen, but the most important thing is that when you maximize a window it must 'adapt' itself to the sidebar!


It is commonly known as Appbar, for example Windows Task bar is an AppBar.



Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
Wouther



Joined: 01 May 2007
Posts: 78
Location: The Netherlands

PostPosted: Thu Jun 19, 2008 7:36 pm    Post subject: Re: Sidebar: Limit the size of maximised windows Reply with quote

That's perfect! Shocked Thank you very much! Razz

[ Moderator!: Do not quote the previous post when unneeded ]
_________________
Printing css/html-formatted text
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4001
Location: Pittsburgh

PostPosted: Fri Jun 20, 2008 10:59 pm    Post subject: Reply with quote

Have you seen this, to set the working area of the monitor?
Code:
SetWorkArea(0,0,1800,1200)       ; maximized windows not to cover (not on-top, right edge) taskbar

SetWorkArea(left,top,right,bottom) { ; set main monitor work area; windows are not resized!
   VarSetCapacity(area,16)
   NumPut(left,  area, 0) ; left
   NumPut(top,   area, 4) ; top
   NumPut(right, area, 8) ; right
   NumPut(bottom,area,12) ; bottom
   DllCall("SystemParametersInfo", UInt,0x2F, UInt,0, UInt,&area, UInt,0) ; SPI_SETWORKAREA
}
Back to top
View user's profile Send private message
Wouther



Joined: 01 May 2007
Posts: 78
Location: The Netherlands

PostPosted: Sat Jun 21, 2008 1:28 pm    Post subject: Reply with quote

Waoh! Shocked You just made my day, thank you! Razz
_________________
Printing css/html-formatted text
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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