mentosan Posted April 24, 2009 Share Posted April 24, 2009 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 More sharing options...
AlmarM Posted April 24, 2009 Share Posted April 24, 2009 (edited) While 1 If ProcessExists("ProcessXX.exe") Then ProcessClose("ProcessXX.exe") Exit EndIf WEnd ? AlmarM Edited April 24, 2009 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 More sharing options...
mentosan Posted April 24, 2009 Author Share Posted April 24, 2009 While 1 If ProcessExists("ProcessXX.exe") Then ProcessClose("ProcessXX.exe") Exit EndIf WEnd ? AlmarM No, I want to use AdLib Link to comment Share on other sites More sharing options...
spudw2k Posted April 24, 2009 Share Posted April 24, 2009 (edited) No, I want to use AdLibAdlib 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? orLoop until a process is detected then exit? what's the dealio? Edited April 24, 2009 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 BuilderMisc 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 ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF  Link to comment Share on other sites More sharing options...
Yashied Posted April 24, 2009 Share Posted April 24, 2009 AdLibEnable ("processXX.exe");check for processXX.exeThis is wrong. AdlibEnable ( "function" [, time] ) My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
mentosan Posted April 27, 2009 Author Share Posted April 27, 2009 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? orLoop 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 More sharing options...
Yashied Posted April 27, 2009 Share Posted April 27, 2009 I want to loop until process is detected then exit.Do ... Until Not ProcessExists("processXX.exe") My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now