 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Wouther
Joined: 01 May 2007 Posts: 78 Location: The Netherlands
|
Posted: Mon Jan 14, 2008 8:55 pm Post subject: [Solved] Sidebar: Limit the size of maximised windows |
|
|
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?
~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!  _________________ 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 |
|
 |
Sakurako
Joined: 10 May 2007 Posts: 142
|
Posted: Mon Jan 14, 2008 9:31 pm Post subject: |
|
|
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 |
|
 |
Wouther
Joined: 01 May 2007 Posts: 78 Location: The Netherlands
|
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5790
|
Posted: Thu Jun 19, 2008 5:19 pm Post subject: Re: Sidebar: Limit the size of maximised windows |
|
|
| 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.
 _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Wouther
Joined: 01 May 2007 Posts: 78 Location: The Netherlands
|
Posted: Thu Jun 19, 2008 7:36 pm Post subject: Re: Sidebar: Limit the size of maximised windows |
|
|
That's perfect! Thank you very much!
[ Moderator!: Do not quote the previous post when unneeded ] _________________ Printing css/html-formatted text |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4001 Location: Pittsburgh
|
Posted: Fri Jun 20, 2008 10:59 pm Post subject: |
|
|
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 |
|
 |
Wouther
Joined: 01 May 2007 Posts: 78 Location: The Netherlands
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|