Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input and Output
#6
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
Code:
Copy      Help
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)