ohnoryno Posted May 28, 2008 Share Posted May 28, 2008 (edited) ----- #include "Misc.au3" if _Singleton("test\test",1) = 0 Then Msgbox(0,"Warning","An occurence of test is already running") Exit EndIf ----- since Autoit 3.2.12.0 installed Not Run... only msbox "An occurence of test is already running" Edited May 28, 2008 by ohnoryno Link to comment Share on other sites More sharing options...
Valuater Posted May 28, 2008 Share Posted May 28, 2008 This seems to work for me #include "Misc.au3" $Name = @ScriptName if _Singleton($Name,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") 8) Link to comment Share on other sites More sharing options...
Tlem Posted May 28, 2008 Share Posted May 28, 2008 (edited) Like it is written in the helpfile :This string may not contain any \ characters unless you are placing the object in a namespace.I'll do the mistake too. Edited May 28, 2008 by Tlem Best Regards.Thierry 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