Jump to content

Stop Script when program run


Recommended Posts

Hallo,

I want to run a external program with a autoit Script, i want to stop the execution of the autoit-script during the execution of the external program?

What is th good command? runwait, dosn't work? Ihave you another idee?

Thankyou.

:D

Link to comment
Share on other sites

I KNOW I read about how to do this in the help file somewhere. But I can't think of where.

What you could do if noone who knows what I'm remembering posts, do something like

If WinExists ( "title" ) Then

Sleep( delay )

I'm guessing that would pause the script until that window is closed? Sorry if this doesn't help at all , If I remember what I'm thinking about I'll reply.

Edited by Drew
Link to comment
Share on other sites

Hi.

I want to run a external program with a autoit Script, i want to stop the execution of the autoit-script during the execution of the external program?

What is th good command? runwait, dosn't work? Ihave you another idee?

Thankyou.

While ProcessExists("Process Name")
    Sleep(500)
WEnd

regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

RunWait is the command to use, what type of program are you launching ? - If it is an installer program, then the original program you try to run can spawn another program and then exit, then the program that RunWait executed has come to an end.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...