Jump to content
Sign in to follow this  
mentosan

AdLib

Recommended Posts

mentosan

Hello

I'm having a script like this:

While 1

AdLibEnable ("processXX.exe");check for processXX.exe
................................
.................................
AdLibDisable ("processXX.exe");otherwise the script will exit because at this step the process triggered by AdLibEnable is not active
ProcessWaitClose ("processXX.exe")


WEnd

I'm using AdLib because my script is directly dependent on another Windows application. And If I'm closing this Windows application (processXX.exe) I want my script to exit. The problem is when I'm using this script on different computer, it will exit loop. On mine it is working fine, compiled.

Please help. Thanks !

Share this post


Link to post
Share on other sites
AlmarM

While 1
    If ProcessExists("ProcessXX.exe") Then
        ProcessClose("ProcessXX.exe")
        Exit
    EndIf
WEnd
?

AlmarM

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
spudw2k

No, I want to use AdLib

Adlib enables a func/routine to run over and over at a specified interval. It's a bit confusing what you are trying to accomplish too.

Do you want to:

Detect a process, stop it if active and continue? or

Loop until a process is detected then exit? what's the dealio?

Edited by spudw2k

Share this post


Link to post
Share on other sites
Yashied
mentosan

Adlib enables a func/routine to run over and over at a specified interval. It's a bit confusing what you are trying to accomplish too.

Do you want to:

Detect a process, stop it if active and continue? or

Loop until a process is detected then exit? what's the dealio?

I want to loop until process is detected then exit.

Share this post


Link to post
Share on other sites
Yashied

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  

×