Jump to content

Recommended Posts

Posted (edited)

Hi there again.

I am looking for a command which

Does nothing until a application throws up a dialog box. I want a certain timeout.

After executing the batch file, it takes a variable time for the output generation which can range from several hours to a mintue depending on the data

Run comamnd

Dont do anything till a dialog box comes

If the dialog box is "complete"

put in pass.log

run a second batch file.

else

put in fail log

I tried the following. But the script does not react to the output window ( dialog box), The name is copied from the AltiT windo Info. Please can some one review my code.

#include <File.au3>
Local $working =1
Run("P:\technology\Requirements\AutoIT_Script_documents\Scripts\thirdparty.bat")
While ($working==1)
  if WinActive("Information") Then
     Send("Enter")
    $dirworking = 0
  Else
     Sleep(2000)
  EndIf
WEnd
;While (!WinWaitActive("Information"))
;   sleep(2000)
;WEnd

Help is appreciated

Thanks in Advance

Edited by anandnz
Posted (edited)

Hi there again.

I am looking for a command which

Does nothing until a application throws up a dialog box. I want a certain timeout. = WinWaitActive()

But i want a if condition for this dialog box to come. = WinExists()

Activate the window if not activate. = WinAcivate()

send("Enter")

Help is appreciated

Thanks in Advance

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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
×
×
  • Create New...