AutoHotkey Community

It is currently May 27th, 2012, 7:08 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: March 17th, 2006, 7:10 am 
Offline

Joined: September 14th, 2005, 5:21 am
Posts: 21
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2006, 8:55 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2006, 12:55 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2006, 12:02 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


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

All times are UTC [ DST ]


Who is online

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