Jump to content

Recommended Posts

Posted

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 !

Posted (edited)

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.

Posted (edited)

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...