Jump to content
Sign in to follow this  
fhanna

Print and regain Focus

Recommended Posts

fhanna

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

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.