vonaf Posted January 1 Posted January 1 Hi, We have a some how huge archive that has been used since 90s. Many documents archived but it is not viewable on regular viewer but a special viewer that has been developed for this purpose. By accident I've found the viewer titled Thorium can view the file, but can not export it or do anything except view it. So in order to export these documents I load the document into this Thorium viewer, and use a vertical monitor that is set to be used as a Portrait, and when the document loaded, I use the keeyboard PageUP and PageDOWN to navigate the document. The other thing I do is after trying many tools I've found the tool titled PicPick to do the screenshot or print screen, and I set its output to be a file. Also, set the keyboard shortcut for the PicPick to be R to do the last action or repeat last capture. So now O load the document, and start to work as a robot. Hit PageDown to navigate the document, and after that hit the key R, and it saves each screen shot in a separated file. I set file names to be date and time stamps so everything is arranged. Last step is to load everything into acrobat and safe it as a one .pdf file. So does there is any way to use AutoIT to hit the PageDOWN or PageUP and wait 1 or 2 second till page fully loaded and viewed in the thorium viewer and then hit the shortcut (R) I set to get the print screen file. The reason for the wait is when I hit manually quickly page up or page down followed by the r key I get a blank page, so i have to wait till it loaded. So is there any easy way to do it? Thanks Thaks, VF
vonaf Posted January 1 Author Posted January 1 I am soy for adding a new reply, but I did not found an edit option. I did tried to play with autoit, but was not able to know where to start. I asked chat gpt but also did not helped enough. i am sorry if it is a dummy request. Thaks, VF
vonaf Posted January 1 Author Posted January 1 This is the script suggested by the gpt but do not know what to do with it or how to appply it #include <Date.au3> Global $sViewerPath = "C:\Path\To\Thorium.exe" Global $sDocumentPath = "C:\Path\To\Your\Document.ext" ; Replace with the document extension Global $iWaitTime = 2000 ; 2 seconds wait time Global $iRepeatTimes = 100 ; Number of times to repeat the capture process, adjust as needed Run($sViewerPath & " " & $sDocumentPath) Sleep($iWaitTime) For $i = 1 To $iRepeatTimes Send("{PGDN}") ; Page Down Sleep($iWaitTime) Send("{R}") ; Shortcut for screenshot with PicPick Sleep($iWaitTime) Next MsgBox(0, "Completed", "The process of capturing screenshots is completed.") Thaks, VF
Nine Posted January 1 Posted January 1 It does seem very easy to do with AutoIt based on the explanation given in the OP. But since we do not own Thorium viewer nor PicPick tool, it is hard to give you code that would really help you. I understand that you have zero experience in programming and you do not know where to start, right ? If it is the case, I would strongly recommend that you start one step at a time, do not try to put too much code in each step, just make sure that every step is performing well with the appropriate error handling. So based on your first post, I suppose that all your archived files are located somewhere over the network or on a special support. I would start there : get a list (at least partial) of those files. To help us, could you show us how you access them (via Windows Explorer ?). For your reading : FileListToArrayRec vonaf and ioa747 2 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
vonaf Posted January 6 Author Posted January 6 It turned out that Thorium keep files private and I can not find it anywhere. I posted in their forum support and hope to get answer. When I explored running process in my computer I found 4 processes are running as soon as I open the software and when I asked GPT it tried to run the script using the order of the process but also did not work. I will keep searching and feed you back. Thaks, VF
Nine Posted January 6 Posted January 6 (edited) 8 hours ago, vonaf said: It turned out that Thorium keep files private and I can not find it anywhere. Ok, but there must be a way for you to choose one particular file. Is it inside Thorium with a menu or something else ? Can you try to use Au3Info.exe to see if you can identify the different controls of the application (button, menu, toolbar, etc.). Could you show a print screen of the application so we can see what it look like. Edited January 6 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
rudi Posted January 7 Posted January 7 Hello, perhaps you could give some detailed information on the achive system you are working with, as well as on this viewer named "Thorium". What is the name of the archive system? How is the archived information stored? Is there a Database, is it pure file based, or a mixture? (Meta Info / Index Info in DB, documents as files) What file extension is this archive system using? If you open a document in thorium, it almost sure will create some local, temporary file: Use filemon (sysinternals tools) to catch such a file and provide it here, together with some screenshots. Good luck argumentum 1 Earth is flat, pigs can fly, and Nuclear Power is SAFE!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now