Sign in to follow this  
Followers 0
AutoTron

Dealing with the Firefox Print Dialogue Box?

1 post in this topic

Hi! I am new to AutoIt, but I have resolved most of the issues by reading the docs and forums. The one thing I can't get past so far is dealing with the print dialogue box in Firefox.

I am trying to cycle through some pages in a website and print out each page as a pdf using Adobe Pdf printer. I set the printer to default and removed the request for naming and print location as well a the post-print results. So, my script clicks on next page, executes _FFAction("Print"), and the dialogue box comes up where I have to click "ok".

I was hoping you guys could either show me how to click that "ok" button or bypass the box entirely.

Also, so far I have been able to keep the entire process in the background (so I can work on other things in a different browser while my script is running). It would be great if a solution to this will keep the process in the background without interruptions still.

Here is my code so far!

#Include <FF.au3>
$pageNumber=2
; trying to connect to a running FireFox with MozRepl on
If _FFConnect(Default, Default, 30000) Then
For $i=2 TO $pageNumber Step +1
  _FFClick("ext-comp-1029", "id", 5)
  Sleep(200)
  _FFAction("Print")
Next

If _FFDisConnect() Then MsgBox(64, "", "Disconnected from FireFox!")
Else
MsgBox(64, "", "Can't connect to FireFox!")
EndIf

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  
Followers 0