Jump to content
Sign in to follow this  
maestro1024

Knowing if you application is already running

Recommended Posts

maestro1024

Hello,

I think I have seen this on the forum before but I couldn't find it and did not see it in the help file.

I want to check when my application starts to see if there is an instance of the application already running and if there is an instance I will not start it up.

What function is that based on?

Thanks

Share this post


Link to post
Share on other sites
Dampe

If ProcessExists (@Scriptname) Then ;Script is running.


Share this post


Link to post
Share on other sites
kimurtus

in autoit go to help and search for _Singleton

then try the example

Share this post


Link to post
Share on other sites
monoceres

If ProcessExists (@Scriptname) Then ;Script is running.

That only works if the script is compiled.

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
maestro1024

Very cool.

I plan on using the singleton which is easier for me to implement and requires less process. Probably are places where the other way would be more helpful.

thanks again.

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  

×