Jump to content

AutoTron

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by AutoTron

  1. It is getting stuck. When I press 'Cancel' in the print box, the script continues and the message box pops up. Where should I put AutoItSetOption('TrayIconDebug',1)?
  2. #Include <FF.au3> _FFConnect(Default, Default) _FFAction("Print") ControlClick("Print", "", "Button10") _FFDisconnect() MsgBox(64, "", "Disconnected from FireFox!") After the print box comes up, the ControlClick is supposed to click 'OK' and the script should be on its way. But the script is stopping after the _FFAction("Print"). I tested the ControlClick by itself by manually opening a print box and executing only the ControlClick and it works just fine. Please Help!
  3. 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!
×
×
  • Create New...