Jump to content

Help about Anti - Double - Open


kid1232
 Share

Recommended Posts

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
Link to comment
Share on other sites

_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:

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

Link to comment
Share on other sites

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.

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

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