Jump to content
Sign in to follow this  
kid1232

Help about Anti - Double - Open

Recommended Posts

kid1232

I want make my tool run only one per time

That mean if its running, i open again -> Open abort or notice that tool still alive

 

I have only 1 idea that check processexist, but I dont know how to compile autoit with a const processname, its same the tool name (ex: Tool1.exe), so if rename its change name process

 

Plz everybody, plz help me. Tell me some ideas

 

Thanks for support!!!

Edited by kid1232

Share this post


Link to post
Share on other sites
EKY32

_Singleton

 

More help, according to (5 posts) and Anti - Double - Open :ermm:

#include <Misc.au3>
#include <MsgBoxConstants.au3>

If _Singleton("test", 1) = 0 Then
    MsgBox($MB_SYSTEMMODAL, "Warning", "An occurence of test is already running")
    Exit
EndIf
MsgBox($MB_SYSTEMMODAL, "OK", "the first occurence of test is running")

good luck :thumbsup:

  • Like 1

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
kid1232

tks for your support, sr about my english :(

p/s: i dont know that new member (5posts) is cannt make a question :(

So sr about that

Edited by kid1232

Share this post


Link to post
Share on other sites
EKY32

tks for your support, sr about my english :(

p/s: i dont know that new member (5posts) is cannt make a question :(

So sr about that

 

NO no! it's not what I mean!

you are welcomed any time.

  • Like 1

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
kid1232

NO no! it's not what I mean!

you are welcomed any time.

tks bro :)

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  

×