cygna76 Posted October 14, 2008 Posted October 14, 2008 Hello, i have an external programm which returns me a parameter if closed. but i have no idea how to get this parameter into a variable in my Script. example: $val = RunWait("c:\port-test\port.exe SIRIUS 81", "C:\port-test", @SW_MAXIMIZE) if the programm port.exe terminates i usually get 1 or 0 as a returncode. now i need this value in a variable in my script. is it possible to get this value, or should a create a "workaround" ... however .... i have no idea ... i hope that someone can help me .... PLEASE greetings from Austria, cygna76
Zedna Posted October 14, 2008 Posted October 14, 2008 (edited) $val = RunWait("c:\port-test\port.exe SIRIUS 81", "C:\port-test", @SW_MAXIMIZE) MsgBox(0,'Exit code',$val) Edited October 14, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
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