--- In [email protected], "aviasd" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I wish to collect the handles for the windows on the taskbar alone 
> (without the tray tasks,child windows or caption less windows) , 
or all 
> the handles that i see on alt+tab (is it the same ?)
> 
> anyway to achieve this through ppsl ?


// create tasks vector of windows = all top level
local tasks = vec.createfromwords(win.handlelist("*"))  

// remove zero-sized, tool windows, captionless
local i=0
for (;i<tasks.length;)
if (tasks[i].left >=tasks[i].right  || tasks[i].toolwindow ;;+
|| tasks[i].caption =="") do
tasks.delete(i)
else
i++
endif
endfor

//dump list as test
for (i=0; i<tasks.length; i++)
win.debug(tasks[i], tasks[i].class, tasks[i].caption)
endfor

//it may fail for minimized delph apps; you may need to change if to
//if ((!tasks[i].minimized && tasks[i].left>=tasks[i].right)....)






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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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