Sign in to follow this  
Followers 0
DaveF

ConsoleRead

6 posts in this topic

I have a working implementation of ConsoleRead as discussed in the Idea Lab forum.

Briefly, this would add a way for an compiled AutoIt parent script and a compiled AutoIt child script to pass information to each other while they ran seperately.

It was a fairly easy hack with the existing code base; StdoutRead and StderrRead are identical but for the pipe that they read from, so under-the-covers they both call the same utility function that does all the work. I had hoped to just tweak the utility function enough to be able to read from AutoIt's STDIN pipe, too, but I ended up taking the opportunity to change some things that I felt would need changing eventually (and fixed a potential bug as well).

As such, I'll upload the code files as soon as possible, but (as a good citizen of the AutoIt community) I also need to make an AutoIt script that leverages the new and changed code and submit that as well for detection of code regression.


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



This post seem to exist from soooooo long ago...

Any progress on the ConsoleRead function? Even in the newest beta it states: ";Example to be provided by DaveF"

I'm still very interrested in inter-process communication made easy :)

(Or are there other documented tricks I can use? I couldn't find any :s)


My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Still nothing? Is it hard, or is the question just plain to stupid? (I get that a lot irl :) <- Edit: Supposed to be a wink. again...)

Edited by Triblade

My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Still nothing? Is it hard, or is the question just plain to stupid? (I get that a lot irl :) <- Edit: Supposed to be a wink. again...)

You know it works since you replied here ... so what is the question ?

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yeah, but that's piping some data to an process even before it starts.

What I'd like to see is what this tread was created for:

Briefly, this would add a way for an compiled AutoIt parent script and a compiled AutoIt child script to pass information to each other while they ran seperately.


My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Share this post


Link to post
Share on other sites

The example maybe isnt there but the functions work fine, look at the paramaters they take it's pretty stright forward.

ConsoleRead/Write, stdinWrite/outRead.

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