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 

Minimize a window and give it second-from-top order

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



Joined: 14 Sep 2005
Posts: 21

PostPosted: Fri Mar 17, 2006 6:10 am    Post subject: Minimize a window and give it second-from-top order Reply with quote

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
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Fri Mar 17, 2006 7:55 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
evl



Joined: 24 Aug 2005
Posts: 1239

PostPosted: Fri Mar 17, 2006 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Fri Mar 17, 2006 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
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