Jump to content

AdLib


Recommended Posts

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 !

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Spoiler

Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder
Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array
Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc
Cool Stuff: AutoItObject UDF â—Š Extract Icon From Proc â—Š GuiCtrlFontRotate â—Š Hex Edit Funcs â—Š Run binary â—Š Service_UDF

 

Link to comment
Share on other sites

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.

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