fhanna Posted April 17, 2009 Posted April 17, 2009 This forum has been so helpful so here I go again: The extracted code runs great on 14 of 15 pcs. The purpose is to print a embedded IE PDF by clicking on the PDF print icon. On all pcs it prints fine but when the Progress Bar finishes the PDF on 1 pc the IE screen/pdf will not regain Focus. The WinWaitActive will timeout. Any ideas why? $Handle = WinGetHandle("[active]") MouseClick("left",$Locx,$LocY,1,0) $Window = "Print" $Win_Text = "OK" #Include <ECF_Window_Check.au3> If $WaitError = 0 Then #include <PDF_Error.au3> Else _SendWait("{ENTER}") WinWaitActive($Handle,"",120) If $WaitError = 0 Then Run ("ECF_Messaging") MsgBox(0,"",$Window & ' dialog box failed to open') Exit EndIf
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