Hi.
--- In [EMAIL PROTECTED], pi <[EMAIL PROTECTED]> wrote:
> > want = win.handlelist("~c=PowerProToolbar,c=DockItemClass",0)
>
> problem is that i need to exclude a lot of classes/programs.
> so it would be more convenient to put the exclude data in a
separate file.
So what? You could put them in an ini-file and load that into a var.
> c=PowerProToolbar
> c=DockItemClass ;;avedesk.exe
[exclude]
PowerPro = c=PowerProToolbar
avedesk = c=DockItemClass
...
global included = "~"
local keys = ini.enum_keys("exclude.ini", "exclude")
for (local i = 1; i <= line(keys, 0), i = 1 + 1
included = included ++ ini.get("exclude.ini", "exclude", line(keys,
i) ++ if(i < line(keys, 0), ",")
endfor
global handles = winhandlelist(included, 0)
You could also have two sections for your two monitors and so on ...
Mockey
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
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/