Ontosy Posted December 24, 2007 Share Posted December 24, 2007 Do it is possibile to return a message from AutoIt3 to Dos Console when the script finish? Link to comment Share on other sites More sharing options...
martin Posted December 24, 2007 Share Posted December 24, 2007 Do it is possibile to return a message from AutoIt3 to Dos Console when the script finish?Look up Exit in the help.If you run the script in a batch file then the return value of the script can be used like this. Rem run the programautoitscript.exe REM if the script had Exit 5If errorlevel 5 goto sectionBetc Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Ontosy Posted December 24, 2007 Author Share Posted December 24, 2007 I use Php to launch AutoIt3 script. Do it is possibile to read the errorlevel from Php after script execution? Link to comment Share on other sites More sharing options...
martin Posted December 24, 2007 Share Posted December 24, 2007 I use Php to launch AutoIt3 script.Do it is possibile to read the errorlevel from Php after script execution?Unfortunately I know nothing about php, however I would expect that you can simply have a variable set to the return of the equivalent of RunWait.In Autoit you could do it like this instead of the DOS method I gave,$ExitValue = RunWait($AutoItExeFullPath)So you just need the php equivalent of that perhaps.A quick search found this which looks relevant.So you need something likeunset($output)exec( $command ,&$output, &$return_var ) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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