Jump to content
Sign in to follow this  

Prevent duplicate process running?

Recommended Posts

Say I have Test.au3 converted to Test.exe.

How can I make it so that it knows not to run if Test.exe (itself) already exists in the process list?

I tried using ProcessExists() but it doesn't work (probably my problem).


If ProcessExists("Test.exe") <> 0 Then

;process already exists, exit




It works (I think) if I run the .au3 directly but not if I run the .exe.

Any help?

Thanks a lot!

Share this post

Link to post
Share on other sites

Oh, oops.



It doesn't work... it just exists no matter what.


When running the .au3 directly, I get an error, line 60 in Misc.au3

Local $p = DllStructCreate($struct)

error: unknown function name.

I do have misc.au3 in

C:\program files\autoi3\include\misc.au3

Edited by sensalim

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...