Sheri,
Thanks for the great tips. I did get it to work with:
KeyTrap.SendKeys("(^f")
wait.for(1500,activewindow("Find/Replace"))
KeyTrap.SendKeys("[{^}a-zA-Z0-9\\._]")
wait.for (400)
KeyTrap.SendKeys("%n")
wait.for (300)
win.close("Find/Replace")
wait.for (50)
KeyTrap.SendKeys("{left})")
quit
The win.close seemed to work better than the win.setfocus. Using
replace is a great idea, I hadn't thought of it. I messed with it for
a while, then gave up. I had a hard time getting the reg exp into the
replace text field.
I'm using cfeclipse as an editor. I think I can really jazz up the
auto complete using the above script as a framework.
I think the whole thing would work better if I could somehow avoid the
Find/Replace dialog box, somehow just stuff the search buffer with the
reg exp without messing with the dialog box.