Megadime Posted September 2, 2009 Share Posted September 2, 2009 (edited) Hi, is there any way to pass output from an AutoIt script such that I can use it in my C++ program? I know I can use any appropriate script with input parameters by calling them in the command line (autoit3.exe add.au3 2 3). But how can I retrieve the output (it's in a variable in the script) from such scripts and use them in my C++ program? I've tried writing the output to a file and then using c++ functions to retrieve them. But I found it to be kind of slow (especially, waiting for the file to be written to hard disk). Edited September 2, 2009 by Megadime Link to comment Share on other sites More sharing options...
jvanegmond Posted September 2, 2009 Share Posted September 2, 2009 You can use standard streams. Write output from AutoIt with ConsoleWrite and capture it in C++. I believe you must compile your AutoIt script into CUI. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Megadime Posted September 2, 2009 Author Share Posted September 2, 2009 Thank you very much. This is exactly what I was looking for. Thanks! 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