Jump to content
Sign in to follow this  
Megadime

Passing output parameters

Recommended Posts

Megadime

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 by Megadime

Share this post


Link to post
Share on other sites
jvanegmond

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.

Share this post


Link to post
Share on other sites
Megadime

Thank you very much. This is exactly what I was looking for. Thanks!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.