SleepyXtreme Posted June 10, 2007 Share Posted June 10, 2007 hey i was wondering if anyone knew how to make it so when you tried opening more than 1 copy of ur program a msg comes up saying the program is already running. Link to comment Share on other sites More sharing options...
Valuater Posted June 10, 2007 Share Posted June 10, 2007 #include "Misc.au3" if _Singleton("test\test",1) = 0 Then Msgbox(0,"Warning","An occurence of test is already running") Exit EndIf Msgbox(0,"OK","the first occurence of test is running") straight from help 8) Link to comment Share on other sites More sharing options...
star2 Posted June 10, 2007 Share Posted June 10, 2007 (edited) just like Valuater wrote always check the help filetray putting this in your script;usually the Process name is your program name.exe If ProcessExists (" your Process name here") Then MsgBox (-1, "info" , " Already Running") Exit EndIf Edited June 10, 2007 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
herewasplato Posted June 10, 2007 Share Posted June 10, 2007 Or visit either of the FAQs posted as a sticky thread at the top of this support forum. Q3 and Q14. ...enjoy... [size="1"][font="Arial"].[u].[/u][/font][/size] 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