DJ143 0 Posted July 22, 2015 hi all,I have an issue for saving screenshots. using _ScreenCapture_Capture() I can save a snapshot in a particular location. But is there a way to move that snapshot into a word doc and other snapshots in same document. So that this would be easier for me to consolidate the screesnshots for a particular scenario. Share this post Link to post Share on other sites
MikahS 92 Posted July 22, 2015 Have a look at the _Word_*** functions, including _Word_DocPictureAdd. Snips & ScriptsMy Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4Feel free to use any of my code for your own use. Forum FAQ Share this post Link to post Share on other sites
DJ143 0 Posted July 23, 2015 hi,thanks for your suggestion. following is the code:#include <ScreenCapture.au3>#include <Word.au3> _ScreenCapture_Capture(@ScriptDir & "\image.png")Local $oWord = _Word_Create()Local $oDoc = _Word_DocOpen($oWord, @ScriptDir & "\Test.doc", Default, Default, False)Local $oRange = _Word_DocRangeSet($word, -2)_Word_DocPictureAdd($word, @ScriptDir & "\image.png", Default, Default, $oRange) This open the word doc every time while taking the screenshot. Is there anyway of keeping the word doc in hidden and taking the screenshot? Share this post Link to post Share on other sites
water 2,359 Posted July 24, 2015 Use _Word_DocAttach to connect to the already open document. If this fails then the document hastn't been opened yet and you need to call _Word_DocOpen. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites