mesale0077 Posted September 1, 2009 Share Posted September 1, 2009 (edited) 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 September 1, 2009 by mesale0077 Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 1, 2009 Share Posted September 1, 2009 Are you trying to say your program runs once then won't work again or that it crashes? Please try to be more clear. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Manjish Posted September 1, 2009 Share Posted September 1, 2009 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 More sharing options...
jvanegmond Posted September 1, 2009 Share Posted September 1, 2009 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.. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now