swzoh wrote  (on 08.12.2004 12:51):

> It seems that you don't check "Show windows from all desktops
> on taskbar", right? Then, the simplest solution may be:
> Window.Show("menu hidden")


Funny that you mention that. I've frequently have the same problem and 
was already using what you've written. But if you have some "monsters 
like Winamp, Firefox, etc. which open lots of hidden windows, you may 
easily get lost. So, few days ago I was experimenting with cl.commands 
to build my own menu since my first attempt with "menu 
hidden,~MCI*,XPCOM:*" failed. Then I've created a new list in GUI and in 
a script tried these:

@test
; beware of line breaks
local _winlist = window ("anywindow","*")
local _menulist, _hwin
cl.create("menu_misc_List_Windows", 1)
cl.SetProperties("menu_misc_List_Windows", "Format1=AutoShowBar Barsize 
Vertical")
for(i=1; ;i=i+1)
     _hwin = word(_winlist,i)
     If(_hwin eq "")
         break
     win.debug(handle ++ " " ++ window("caption", handle))
     _menulist=_menulist ++ "  " ++ _hwin
     If(window("caption", _hwin) ne "")Do
 
cl.insert("menu_misc_List_Windows",cl.length("menu_misc_List_Windows"))
 
cl.SetLabel("menu_misc_List_Windows",cl.length("menu_misc_List_Windows")-1,ifelse(window("caption",_hwin)
 
ne "", window("caption",_hwin), window("exepath",_hwin)))
     EndIf
endfor
; pretty useless ATM but one could use
; vec.showmenu(vec.createfromwords(_menulist)) etc
_menulist=remove(_menulist,1)
win.debug(_menulist)
Bar Show menu_misc_List_Windows
Quit


Unfortunately the lists that the scriptlet above shows and the one "menu 
show hidden" shows are pretty different, e.g. my "favorite" 
"MCI-something" windows are not even there. Apparently that's because of 
window("caption") function. Maybe I'm overlooking something, any idea is 
welcome :)


-- 
Reclaim Your Inbox!
www.mozilla.org/products/thunderbird


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to