--- In [email protected], Alex Peters <[EMAIL PROTECTED]> wrote: > I notice that you use a loop. Can L be replaced with a constant value or > does it change? > > Try this out (untested): > -- > > local CR_LF = esc(?"\r\n", ?"\") > > local address, data > local handle = Win.handle(?"*WebMa2 - *") > > for (local i = 1; i <= 50; i = i + 1) > address = Win.childTextByIndex(handle, i) > if (select(address, 4) == ?"http") > break > endFor > > Win.debug(?"The child index is", i) > > data = address ++ CR_LF ++ caption ++ CR_LF > File.writeAll(?"C:\Caption.txt", data, ?"a") > > -- > > You can remove the Win.debug() line if you wish. It will tell you > whether the child index is constant. If it is then you don't need a for > loop. > > -- > Regards, > Alex Peters
Good, Fine, Thanks, Thanks, T.... 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/
