Jump to content

the same program a second time


Recommended Posts

the same program will not run second time

example:

"this program is running."

autoit code?

this dont work

$kk=@ScriptName

If ProcessExists($kk) Then

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

Processclose( $kk)

EndIf

thank you for help

Edited by mesale0077
Link to comment
Share on other sites

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

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...