Copy Gui to word document Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
shgilad81
Posts: 10
Joined: 15 Nov 2017, 14:08

Copy Gui to word document

21 Sep 2018, 16:05

Hello,
Is it possible to copy Gui to word document?
I opened word document using COM but I do not understand how to copy the Gui into the document.
Can someone please give me an example?

Thanks
shgilad81
Posts: 10
Joined: 15 Nov 2017, 14:08

Re: Copy Gui to word document

27 Sep 2018, 00:46

Thank you Datapoint.

Your info helped me to understand my options better.
Eventually I decided to solved it by using regular copy/paste:
.
..
...
....
oWord := ComObjcreate("Word.Application")
MyDocNew := oWord.documents.Add()
Send, !{PrintScreen}
sleep, 1000
ClipWait, 1
oword.Selection.Paste
oWord.Visible := true
Item1Length := StrLen(Item1)
Item2Length := StrLen(Item2)
NewStr1 := SubStr(Item1, 1 , Item1Length )
NewStr2 := SubStr(Item2, 1 , Item2Length )
MyDocNew.Saveas("C:\Data\" NewStr1 " " NewStr2 ".docx")
oWord.Quit()
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Billykid and 183 guests