--- In [email protected], "Deen Hameed" <[EMAIL PROTECTED]> wrote:
>
> Hi Sheri, 
> 
> That's nearly what I wanted to do previously, only I wanted to
> minimize the windows (well, ones that were inactive for a certain
> period originally).. 
> 
> I modified the script to minimize the windows rather than close them
> (all but the currently active window), but have a little problem. I
> use ThumbWin to minimize windows to the desktop of late, and that
> works great for me.
> 
> This script though, currently traps those thumbWin'd images too, and
> minimizes them to a tiny transparent rectangle at the bottom of the
> screen...
> 
> What I need to do it just have it get a handle list of visible windows
> (presuming thumbwin is not returning them as open still).
> 
> Do you know how? Don't know where to get the help for
> win.handlelist... I tried 'visiblewindow' instead of '*' but didn't 
> work..
> 


The zero in the handlelist command arguments makes it address visible
windows only, so obviously your thumb windows are visible. You will
need to identify something unique about the windows you don't want to
minimize, possibly the class. Try the script below, then change
"whatever" to the class of the thumb windows. You can remove or
comment out the debug line when its doing what you want.

Regards,
Sheri

local hlist = win.handlelist("*", 0)
local myactive = win.getfocus()
local myexe = win.exename(myactive)
local hcount = word(hlist, 0)
for (local i = 1; i le hcount; i++)
  local myinfo = "Keep: "
  local h = word(hlist, i)
    if (h.class ne "whatever" and h.exename ne "PowerPro" and
h.exename ne myexe) do
      myinfo = "Min:  "
      win.minimize(h)
    endif
  win.debugshow(myinfo++"exename:"++h.exename, "handle:"++h, ;;+
  "class:"++h.class, "caption:"++h.caption)
endfor


Reply via email to