Jump to content
Sign in to follow this  
kjfoley

Print Dialogue

Recommended Posts

kjfoley

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.

Share this post


Link to post
Share on other sites
kjfoley

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.