I'd like to create a macro that will insert text like a template does (i.e. all at once rather than inserting each subsequent character). As it is, my macro is something like this:
InsertMode
ColumnModeOff
HexOff
"TEXT I WANT
TO HAVE INSERTED
IS HERE"
But should I want to undo this, I'd have to hit undo as many times as there are characters inserted.
To get around this, I could use a template, but I've used my 50 global templates up and I want to assign a keyboard shortcut to it.
I could also make a macro that would paste the text to surround a selection, i.e.:
InsertMode
ColumnModeOff
HexOff
UltraEditReOn
Find SelectText "^s"
Replace All "^sTEXT I WANT
TO HAVE INSERTED
IS HERE"
But this requires that I select something, even if it's a blank space. Is there anything I can do to get around this? I just want to insert a text/string block cleanly.
Hah. I think I've kind of solved my own question talking through this, but I want to post this should anyone else need something similar:
InsertMode
ColumnModeOff
HexOff
" "
StartSelect
Key LEFT ARROW
UltraEditReOn
Find SelectText "^s"
Replace All "TEXT I WANT
TO HAVE INSERTED
IS HERE"
This adds a space, selects it, and replaces it with the text you want. Voila, more room for templates in your Macro library. Still, if there's an even cleaner way, please let me know~!
Thanks for your help,
Rick
InsertMode
ColumnModeOff
HexOff
"TEXT I WANT
TO HAVE INSERTED
IS HERE"
But should I want to undo this, I'd have to hit undo as many times as there are characters inserted.
To get around this, I could use a template, but I've used my 50 global templates up and I want to assign a keyboard shortcut to it.
I could also make a macro that would paste the text to surround a selection, i.e.:
InsertMode
ColumnModeOff
HexOff
UltraEditReOn
Find SelectText "^s"
Replace All "^sTEXT I WANT
TO HAVE INSERTED
IS HERE"
But this requires that I select something, even if it's a blank space. Is there anything I can do to get around this? I just want to insert a text/string block cleanly.
Hah. I think I've kind of solved my own question talking through this, but I want to post this should anyone else need something similar:
InsertMode
ColumnModeOff
HexOff
" "
StartSelect
Key LEFT ARROW
UltraEditReOn
Find SelectText "^s"
Replace All "TEXT I WANT
TO HAVE INSERTED
IS HERE"
This adds a space, selects it, and replaces it with the text you want. Voila, more room for templates in your Macro library. Still, if there's an even cleaner way, please let me know~!
Thanks for your help,
Rick