I'm trying to write a macro that would put parenthesis around a "word"  
in an order that could look like this: orders.sub_total

Here's my try:
*Keys (^f
wait.for (150)
*Keys {to Find/Replace}[{^}a-zA-Z0-9\._]%n
wait.for (150)
*Keys {to Find/Replace}{esc}{left})
quit

The ^f brings the dialog up, the %n finds according to the regular 
expression. Outside of a script, escape makes the dialog box go away.
Actually the dialog box wouldn't have to go away, I just need the focus 
to go back to the editor window. Outside of a macro, alt f6 would do 
it, but I can't get it to work in a macro.

The macro above doesn't work. The results aren't consistent, sometimes 
giving errors but never actually succeeding. The biggest problem seems 
to be getting the dialog box to disappear or the focus back to the 
editor.

Any suggestions?

Reply via email to