RazerM Posted December 7, 2006 Share Posted December 7, 2006 How would i retrieve a program's exit code if i run it with autoit? I can't find anything about it in the forums. My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 7, 2006 Developers Share Posted December 7, 2006 How would i retrieve a program's exit code if i run it with autoit? I can't find anything about it in the forums.$rc=Runwait() SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Valuater Posted December 7, 2006 Share Posted December 7, 2006 I searched "exit code" in the help file and got this $val = ShellExecuteWait("Notepad.exe") ; script waits until Notepad closes MsgBox(0, "Program returned with exit code:", $val) 8) Link to comment Share on other sites More sharing options...
jpm Posted December 7, 2006 Share Posted December 7, 2006 How would i retrieve a program's exit code if i run it with autoit? I can't find anything about it in the forums.Just search for "GetExitCodeProcess" in the forum Link to comment Share on other sites More sharing options...
GEOSoft Posted December 7, 2006 Share Posted December 7, 2006 How would i retrieve a program's exit code if i run it with autoit? I can't find anything about it in the forums.I always use$A = RunWait('whatever.exe')MsgBox(4096,"Test",$A)Also works with ShellExecuteWait() George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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