Jump to content
Sign in to follow this  

the same program a second time

Recommended Posts


the same program will not run second time


"this program is running."

autoit code?

this dont work


If ProcessExists($kk) Then

MsgBox(0, "Example","this program runnig")

Processclose( $kk)


thank you for help

Edited by mesale0077

Share this post

Link to post
Share on other sites

have you heard of looping? Put these lines in a for loop.. define how many times you want to repeat the script and that's it!!

Once all the lines in a code are executed the script will exit, unless you loop it back!!

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post

Link to post
Share on other sites

Haha, what a paradox!!

You want to check if the script is running, so you check if it is running inside the same script? This is better, then let the user decide whether it is running or not:

MsgBox(0, "Example","this program runnig")

If you want to run a program a second time, then just RUN IT A SECOND TIME. Example: Double click on the au3, becomes a quadruple click.

Maybe you were looking for _Singleton by the way? But that makes sure your script only runs once..

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.