Jump to content
Sign in to follow this  
panelplus

process

Recommended Posts

panelplus

Hi

I have different .exe to run in an specific order

How I can do that

Thanks

Share this post


Link to post
Share on other sites
SmOke_N

Hi

I have different .exe to run in an specific order

How I can do that

Thanks

Wow, that's a broad question, so here's a broad answer? Run()?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
panelplus

Wow, that's a broad question, so here's a broad answer? Run()?

Yes I know

run (pg1)

run (pg2)

run (pg3)

but how to be sure of the sequence

thanks

Share this post


Link to post
Share on other sites
Briegel

Use RunWait() and you can be shure to start one prog after the other.

Share this post


Link to post
Share on other sites
SmOke_N

Yes I know

run (pg1)

run (pg2)

run (pg3)

but how to be sure of the sequence

thanks

Could you be any more cryptic? lol.

Look, what order do you want to run them in?

Run('Notepad.exe')
Sleep(3000)
Run('Calc.exe')
Run that script in SciTe and you'll see that it's whatever order you place them in, notepad will open first then the calculator 3 seconds later.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
panelplus

Could you be any more cryptic? lol.

Look, what order do you want to run them in?

Run('Notepad.exe')
Sleep(3000)
Run('Calc.exe')
Run that script in SciTe and you'll see that it's whatever order you place them in, notepad will open first then the calculator 3 seconds later.
I have try both options and no result

It seem that RunWait don't wait the end of the first step

I have already try these options (sleep) and did'nt work due of the duration of step

Share this post


Link to post
Share on other sites
SmOke_N

I have try both options and no result

It seem that RunWait don't wait the end of the first step

I have already try these options (sleep) and did'nt work due of the duration of step

You asked a question that either we have a total language barrier and maybe you should just post your question in your native tongue, or would better be answered by looking at your script and understanding exactly what it is that your trying to accomplish, because to be honest, I have no idea what your trying to do.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
MHz

I have try both options and no result

It seem that RunWait don't wait the end of the first step

I have already try these options (sleep) and did'nt work due of the duration of step

Do you want to show the code that you have tried so we can be understand what problem you are having. The advice given so far should help if used correctly.

Share this post


Link to post
Share on other sites
panelplus

Do you want to show the code that you have tried so we can be understand what problem you are having. The advice given so far should help if used correctly.

Hi

when I use sleep (2000) I don't know how long take a script to install a software and sometime its work and sometime not

Share this post


Link to post
Share on other sites
SmOke_N

Well you could always use:

Run('1st.exe')
ProcessWaitClose('1st.exe')
Run('2nd.exe')
ProcessWaitclose('2nd.exe')
But RunWait() should have done that already.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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.