Page 1 of 1

Word formatting - Copy (into a var?)

Posted: 14 Nov 2017, 04:08
by Johana
Is it possible to copy the word formatting? For now I have a simple CTRL + C and CTRL + V. The problem is the script is in 2 parts. First it creates a word document and copies it. Then the user can do some editing etc. Then continue the script and it opens a new word document and send CTRL + V. 9/10 people are copying something else before the new doc is created thus making the new doc with their own clipboard.

Any thoughts/ideas? COM? Or what would I do?

Re: Word formatting - Copy (into a var?)

Posted: 14 Nov 2017, 04:52
by Guest
You can store the formatted clipboard into a variable using ClipboardAll - See https://autohotkey.com/docs/misc/Clipbo ... ipboardAll