Sign in to follow this  
Followers 0
KaFu

Non-blocking StdinWrite replacement?

2 posts in this topic

Hiho Team,

in one of my projects I use StdinWrite to communicate with an external program (AMT > mplayer.exe). From time to time the script hangs itself, and I narrowed it down to StdinWrite(). The mplayer.exe buffer seems to be full. Soooo.... does anyone know of a possibility to replace StdinWrite() maybe with a custom api function in which a timeout can be set?

Regards

Share this post


Link to post
Share on other sites



Fought my way forward and found Screen_Scrape.au3 by Valik using ReadConsoleOutputW. So I assumed there had to be a WriteConsoleOutput function, and it is. Is this the function used by StdinWrite() in the background? And if so, is there any inherent reason why StdinWrite() is blocking? Just asking before I start tinkering around :(...

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