AutoHotkey Community

It is currently May 26th, 2012, 1:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 8th, 2008, 4:50 pm 
I've searched the forum and couldn't find a solution to my problem.

I'm making a script to minimize all windows except the active one. To so so, i use this code :
Code:
Winget, activeId, id, A
Winget, winlist, list

loop %winlist%
{
  winid := winlist%A_Index%
  Wingettitle, wintitle, ahk_id %winid%
 
  if (strlen(wintitle) != 0 and winid != activeId and wintitle != "Program Manager")
  {
    PostMessage, 0x112, 0xF020,,, ahk_id %winid%
  }
}


The problem is that, with some programs (ie Freecommander, Pspad...), the active window is minimized anyway. I'm thinking that maybe they are minimized because one of their child window is detected and minimized, but i'm not sure.

If anyone has any idea, i'd really appreciate the help.

Thank you.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2008, 5:37 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Code:
WinMinimizeAll
WinRestore, A


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2008, 7:26 pm 
Yeah i've thought of (and tried) that. But there are two problems with this method :
- the window disappears and reappears, it's not very clean
- WinMinimizeAll doesn't work if you use Emerge as a shell (which i do).


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2008, 8:04 pm 
ak wrote:
WinMinimizeAll doesn't work if you use Emerge as a shell (which i do).

then use
Code:
Send #m


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2008, 8:09 pm 
Same thing, doesn't work :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2008, 5:28 pm 
Offline

Joined: November 18th, 2008, 3:32 am
Posts: 10
ak wrote:
Same thing, doesn't work :)


Hi, have you found a solution, wondering about the same thing myself...


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Newl, poserpro, SifJar and 16 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