| View previous topic :: View next topic |
| Author |
Message |
Hotfoot
Joined: 14 Sep 2005 Posts: 21
|
Posted: Fri Mar 17, 2006 6:10 am Post subject: Minimize a window and give it second-from-top order |
|
|
Minimizing a window puts a window as the bottom-most window. Would there be a way to minimize a window but make it the second-from-top in window order? I want to minimize a window and then be able to reactivate it with the regular 'Alt-Tab' function.
I've tried to get this to work (on WinXP) but it's not working the way I would expect. Here's one of my attempts:
| Code: |
#z::
MouseGetPos, X, Y, WindowUnderMouseID
WinMinimize, ahk_id %WindowUnderMouseID%
WinSet,Top,,ahk_id %WindowUnderMouseID%
Return
|
|
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Fri Mar 17, 2006 7:55 am Post subject: |
|
|
I do not know a solution to your question,
but you may try to use Alt+Tab to change the order before minimizing. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
evl
Joined: 24 Aug 2005 Posts: 1239
|
Posted: Fri Mar 17, 2006 11:55 am Post subject: |
|
|
| Since the order of windows in the list will change each time you activate a different window, it's not possible that way. You could achieve the same effect I think by "Winset, Bottom" on a SetTimer and then Alt+Shift+Tab to access it. The Alt-Tab replacement I'm working on should eventually support repositioning items in its list, but that's probably at least a month or two away before I add that. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Fri Mar 17, 2006 11:02 pm Post subject: |
|
|
| If you want the ultimate control over window stacking order (z-order), try searching the forum and/or the 'net for SetWindowPos(), which is an API function that can be called via DllCall. WinSetBottom is implemented as a single call to this function. |
|
| Back to top |
|
 |
|