Sign in to follow this  
Followers 0
stuka

...

4 posts in this topic

#1 ·  Posted (edited)

.

Edited by stuka

Share this post


Link to post
Share on other sites



Your idea should work...

Anyway, I'd try it the simple way:

If not ProcessExists("Test.exe") then Run ("Test.exe")
    ; just continue. If Process did not exist already, it has been started.

of course, the other script has to be an compiled .exe file (not a .au3 file)


It's my job to comfort the disturbed and to disturb the comfortable.

Share this post


Link to post
Share on other sites

If ProcessExist("test.exe") Then
    ; do nothing
    ; ExitLoop or something like that (If it is in a loop)
Else
     Run("test.exe")
    ; the part that shoult be skipped
EndIf

Share this post


Link to post
Share on other sites

What I'm trying to ask is rather confusing I know. I would like to know how a script is written in order to detect a running script, if it is running, then it skips the next part(the running part) and jumps into the next part of the script.

Errr...confusing?

Take a look at _singleton - may help...

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