KaFu Posted April 1, 2010 Share Posted April 1, 2010 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 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
KaFu Posted April 12, 2010 Author Share Posted April 12, 2010 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 ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now