> Sean> >Use win.caption(c=exploreWClass).
> Paul > I put this into the ContextIF expression:
> Paul > (win.caption(c=CabinetWClass) and win.debug(_file_) )
> I don't think Sean meant use win.caption in that way.
> I think he meant use it like this in the ContextIf:
> (win.caption(c=CabinetWClass) == ?Exploring c:\thepath)
You are, as usual, correct. I didn't think through what Sean was telling me
and just started throwing it into the mix of what I was doing. Fortunately,
both he and you straightened me out!
> If you want it to work for both two pane Explorers and one
> pane (my computer view) and they have slightly different
> titles, you could use:
> (select(win.caption(under),n) == ?c:\thepath)
> where n is the number of characters in c:\thepath
I actually want it to work for both Explorer and Total Commander. What I
ended up with is the following:
( (index(win.caption("c=CabinetWClass") , "Source") > 0) or
((index(win.caption("=totalcmd") , "Total Commander") > 0) and (index
(win.childtextbyindex("=totalcmd",14), "Source")>0 ) ) )
Which is quite messy, but works, since TC doesn't put the caption in the
title (or I couldn't find the option if it exists).
Thanks!
Paul
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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/