Jump to content
Sign in to follow this  
djkevin33

Stop Script when program run

Recommended Posts

djkevin33

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

Share this post


Link to post
Share on other sites
Drew

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

Share this post


Link to post
Share on other sites
rudi

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!

Share this post


Link to post
Share on other sites
Wooltown

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.

Share this post


Link to post
Share on other sites
Drew

Disregard my post as rudi's will probably work much better :D. I'm not sure if thats what I think I was remembering , but I know it will work.

Share this post


Link to post
Share on other sites
djkevin33

I make a script for autmotisation of Sysprep.exe

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  

×