Jump to content

Prevent duplicate process running?


 Share

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

Exit

EndIf

"

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

Any help?

Thanks a lot!

Link to comment
Share on other sites

Oh, oops.

Thanks!

Edit:

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

Edit:

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