> That app is not something I use. Just for grins I looked at eclipse
> and tried making a macro for your task. This worked (one line, no
spaces):
> 
You really went out of your way to help me. Thank you. These
win.settext calls work a lot better than the sendkeys type thing. The
checking of the Regular Expressions checkbox is a good idea.


>
win.keys("{fast}^f{w3}%f^a{^}[{w3}a-zA-Z0-9\\._]{pl}{w3}{tab}($0){w3}%x{+}%a{w5}{esc}")
> 
> Also this (Yahoo will break some lines):
> win.setfocus(window("firstwindow", "==eclipse"))
> win.sendkeys("{sinp}{to Java*}^f")
> wait.for(1500, activewindow("Find/Replace"))
> local l=win.childhandlelist("Find/Replace")
> win.settext(win.handlefromindex("Find/Replace", 5),"^[a-zA-Z0-9\\._]+")
> win.settext(win.handlefromindex("Find/Replace", 8),"($0)")
> win.sendkeys("{sinp}%x{+}{w3}%a")
> wait.for(1500, win.gettext(win.handlefromindex("Find/Replace",31))
ne "")
> win.close("Find/Replace")
> 
> Both replace all xyz.xyz with (xyz.xyz) using XP. The first would have
> problems in Vista because of {fast}
> 
> Another approach would be to copy to the clipboard, regex the
> clipboard with PowerPro, then paste from the clipboard.
> 
> Regards,
> Sheri
>


Reply via email to