Sign in to follow this  
Followers 0
BigEasy

Communicating with AutoIt

2 posts in this topic

I'm executing AutoIt from a Java program. I generate and save script files, then execute AutoIt.

I would sure like to be able to keep AutoIt running, and send it commands piece-meal, either on standard input or through a socket.

Any ideas much appreciated.

Share this post


Link to post
Share on other sites



The beta version of AutoIt has ConsoleRead and ConsoleWrite, you could use them to read input from the Java process and write output likewise.

A caveat, AutoIt doesn't work any magic with the I/O buffers; if you connect to both AutoIt's STDIN and STDOUT, and you perform a write operation with more than enough data for AutoIt to process and fill the STDOUT buffer before your write operation returns then your processes will deadlock.

I need to draw a diagram to explain this better....


Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

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  
Followers 0