kjfoley Posted March 20, 2013 Share Posted March 20, 2013 I apologize for the newbie question but I have been looking through the site for hours without success. I need to open and print to pdf a ton of XmL files. I have the files opening and the print dialogue window coming up but can't seem to get the script to do anything within that window. I used au3info to get the identifiers. #Include <IE.au3> #include <GuiConstantsEx.au3> $oIE = _IECreate("c:\test.xml") _IEAction($oIE,"print") winwait("Print") ControlClick("Print", "",1002) Eventually I will need to get the names of the files in a folder but for now, I need to figure out how to do anything within the print window. The goal is to: Click the Save to File checkbox, enter the new file path and name and then hit print. Thanks for any help. Link to comment Share on other sites More sharing options...
kjfoley Posted March 20, 2013 Author Share Posted March 20, 2013 Solved. A few more hours of readin gand I found a post that had sleep(1000) before the ControlClick and this did the trick. I woiuld have thought winwait would do it but.... Thanks Link to comment Share on other sites More sharing options...
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