Sign in to follow this  
Followers 0
sensalim

Prevent duplicate process running?

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

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

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  
Followers 0