Jump to content

Non-blocking StdinWrite replacement?


Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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 :(...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...