04-12-2013, 04:27 AM
F allows to insert variables in string.
If working with MS Word, it's better to use key, not paste, because Word often modifies pasted text, eg trims spaces.
Macro Macro1991
If working with MS Word, it's better to use key, not paste, because Word often modifies pasted text, eg trims spaces.
Macro Macro1991
act "Word"
str author_input
str title_input
str v_input
if(!inp(author_input "Author:") or !author_input.len) ret
if(!inp(title_input "Title:") or !title_input.len) ret
if(!inp(v_input "Vol:") or !v_input.len) ret
author_input.trim
title_input.trim
v_input.trim
key F"({author_input} " Ci (title_input) Ci F" v{v_input})"
;Ci is Ctrl+I - a keyboard shortcut to make text italic in Word