Jump to content
Sign in to follow this  
KaFu

Non-blocking StdinWrite replacement?

Recommended Posts

KaFu

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
KaFu

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  

×

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.