crashdemons Posted May 14, 2008 Posted May 14, 2008 (edited) I wrote this application over the last couple of days because a friend was complaining that Windows needed a Roll-up button that minimizes a window to it's titlebar, aside from regular minimize.(Note: you must actually activate a window to see the button.)More than that - this button can be right-clicked to display and change information about a window quickly.The information includes the basics like HWnd, Title, State(using state values, not flags), Transparency, Position, Dimensions and Processname/PID.Note: You can find the Exit option by right-clicking the button as well.***Grabby Movement***To change the horizontal placement you can click the "grabby" button and move the mouse until the buttons are placed where you want them and then click the grabby button again to set them there.Current Script Version - 16RollupPro_16.zipFunction Credits:_ReduceMemory - w0uterWinGetTrans* - Valik_ProcessGetName - Process.au3 UDF (Erifash?, Wouter?)_ProcessGetPriority - Process.au3 UDF_Win_TBHeight - Zedna - (v12 and lower - Prog@ndy, WinAPI.au3, Structures.au3)_ProcessSuspend/Resume - The Kandie Man_WinAPI_GetAncestor - PaulIA - WinAPI.au3_WinAPI_GetClassName - PaulIA - WinAPI.au3_WinAPI_PtInRect - PaulIA - WinAPI.au3_WinAPI_GetWindowRect* - PaulIA - WinAPI.au3* notes a function was modified in operation slightly.5-5-13 Edit: fixed posted images. Edited May 6, 2013 by crashdemons NassauSky 1 My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
James Posted May 14, 2008 Posted May 14, 2008 OK, so the button is in the wrong place. It hovers over the minimize button, which is annoying. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 (edited) OK, so the button is in the wrong place. It hovers over the minimize button, which is annoying.Right-click the button and hit "change titlebar offset"then increase the negative value to a larger negative value.By default it's -74 (just left of minimize on "XP Classic" Visual Style)but you could make it like -90 or so to fit your visual style.Also, once this is changed, it will be saved in an INI for later so you don't have to continually change it Edited May 14, 2008 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
James Posted May 14, 2008 Posted May 14, 2008 OK By the way, your images aren't displayed, could be college blocking them.. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 (edited) OK By the way, your images aren't displayed, could be college blocking them..Sighs, everybody picks on the free host. Do these work instead? - second host doesnt allow off-site linking to images and this forum wont allow images relayed by PHP.You'll have to make due without images if you can't see them in the first post already. Edited May 14, 2008 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
James Posted May 14, 2008 Posted May 14, 2008 It's college they block free hosting sites... Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 UPDATE: -When clicking HWnd or other non-action options that normally copied, '&' characters that were used to shortcut keys are no longer copied into the clipboard. -a Debug MsgBox is no longer shown after changing the position of the window My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
ludocus Posted May 14, 2008 Posted May 14, 2008 Great!, But the button is at the wrong place and it looks old, (I got xp)
James Posted May 14, 2008 Posted May 14, 2008 He has already said, change the offset. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 (edited) Great!, But the button is at the wrong place and it looks old, (I got xp)Need any more clarity? Edited May 14, 2008 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 (edited) Update 7: Added Grabby-Button movement, simply click the grabby button once to have the mouse carry it to a new horizontal position. (note: you must click the grabby button again to set the position) I edited this post but somehow it went back one edit...? - Guess I'll edit it again. Update 8: Added Boundary checking on grabby movement: If you go over an edge, the button will dock on that side. If you go over the center, the button will dock proportional to the side it's closest to. this will prevent hassling about with numbers just to get the dang thing to dock on the side you put it on. Edited May 14, 2008 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 Sorry for not posting back immediately about Update 9, I kinda dozed off and well... Anyway, Update 9: Corrects a boundary conflict issue where the offset was reset by condition 1 of Update 8 but still checked under Condition 2 unnecessarily. My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
i542 Posted May 14, 2008 Posted May 14, 2008 I like it. I might use it often! That is mostly because I am used to scroll mouse wheel up on title bar to roll up the window in Xubuntu! (It is actually pretty cool and simple). I can do signature me.
jftuga Posted May 14, 2008 Posted May 14, 2008 If a window is maximized, the vertical arrow icon does not appear. Is this normal? BTW: nice script! Thanks, -John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 If a window is maximized, the vertical arrow icon does not appear. Is this normal?BTW: nice script!Thanks,-JohnYes, I made it so it wont appear in maximize or minimize states.Something about changing the height of a maximum-height window just seems dangerous/wrong to me.Additionally, if you maximized more than 1 window and rolled them all up, they'd get lost under one another My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
crashdemons Posted May 14, 2008 Author Posted May 14, 2008 BTW - as long as there is an icon saved as @Tempdir&'\rollup.ico' Rollup pro wont check it twice - you can substitute in any custom icon you want - on a future update I plan to just to include and reference the icon file directly so it'll be easier to customize My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)
jftuga Posted May 14, 2008 Posted May 14, 2008 Additionally, if you maximized more than 1 window and rolled them all up, they'd get lost under one another I have dual displays, so this would not be a problem. I'll take a look at the code and tweak it.-John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
d2addict4 Posted May 14, 2008 Posted May 14, 2008 A button that looks like the default XP style would be nice kiddo Simple AutoIt Point Of Sale
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now