AutoHotkey Community

It is currently May 26th, 2012, 8:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: January 14th, 2008, 8:55 pm 
Offline

Joined: May 1st, 2007, 8:36 pm
Posts: 83
Location: The Netherlands
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? :roll:

~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 June 20th, 2008, 10:39 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2008, 9:31 pm 
Offline

Joined: May 10th, 2007, 2:52 am
Posts: 194
Location: China/ Canada
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 ~


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2008, 3:46 pm 
Offline

Joined: May 1st, 2007, 8:36 pm
Posts: 83
Location: The Netherlands
To users searching the forum:
I found a program that does exactly this: Desktop Coral. :D

_________________
Printing css/html-formatted text


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 19th, 2008, 5:19 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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.



:)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 19th, 2008, 7:36 pm 
Offline

Joined: May 1st, 2007, 8:36 pm
Posts: 83
Location: The Netherlands
That's perfect! :shock: Thank you very much! :P

[ Moderator!: Do not quote the previous post when unneeded ]

_________________
Printing css/html-formatted text


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2008, 10:59 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2008, 1:28 pm 
Offline

Joined: May 1st, 2007, 8:36 pm
Posts: 83
Location: The Netherlands
Waoh! :shock: You just made my day, thank you! :P

_________________
Printing css/html-formatted text


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, poserpro, sjc1000, Yahoo [Bot] and 58 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