Jump to content
Sign in to follow this  
anandnz

command help please

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...