baghenamoth Posted July 31, 2008 Share Posted July 31, 2008 (edited) Hi everybody,I have a pb with StdOutRead function under 3.2.12 :while looping StdOutRead, it returns constantly the previous value. With previous version of autoit (=>3.2.10) the return is only the last value sent by the child process.I don't know if this is very clear but here is a exemple :compile the child process to stdout.exe (which will send to console number + test every second during 20 seconds) :include-once For $i = 1 To 20 ConsoleWrite($i & " TEST" & @CR) Sleep(1000) Next ConsoleWrite("FINISH")oÝ÷ ØÛh涬rì¢W°Øm+,r¸©µ«¢+Ø¥¹±Õµ½¹(¥¹±Õ±Ðí ½¹ÍѹÑ̹ÔÌÐì)¥´ÀÌØí½¼°ÀÌØí±¥¹(ÀÌØíµå µ±¥¹ôMÉ¥ÁѥȵÀìÅÕ½ÐìÀäÈíMQ=UP¹áÅÕ½Ðì(ÀÌØí½¼ôIÕ¸ ÀÌØíµå µ±¥¹°MÉ¥ÁѥȰM]}!%°ÀÌØíMQII} !%1¬ÀÌØíMQ=UQ} !%1¤)]¡¥±Ä($ÀÌØí±¥¹µÀìôMѽÕÑI ÀÌØí½¼¤(%%ÉɽÈQ¡¸á¥Ñ1½½À(% ½¹Í½±]É¥Ñ ÀÌØí±¥¹µÀì H¤(%%ÀÌØí±¥¹ôôÅÕ½Ðí%9%M ÅÕ½ÐìQ¡¸á¥Ñ1½½À)]¹oÝ÷ Ø è¶«ªç¬¶*'"z-Ƕo&v)ÚÞ~Þ, it doesn't return empty strings (under 3.2.12), can someone explain this to me please ?Here are the result after few seconds with 3.2.12 : with $line &= StdoutRead($foo)1TEST2TEST3TEST4TEST5TEST1TEST2TEST3TEST4TEST5TEST1TEST2TEST3TEST4TEST5TEST6TESTHere are the result after few seconds : with 3.2.10 : with $line = StdoutRead($foo)1TEST2TEST3TEST4TESTDo you know how to have the same result with 3.2.12.0 ?Thanks in advance for your answer. Edited July 31, 2008 by baghenamoth Link to comment Share on other sites More sharing options...
Triblade Posted July 31, 2008 Share Posted July 31, 2008 I don't know if this helps but:16th May, 2008 - v3.2.12.0AutoIt:Changed: The behavior of StdoutRead(), StderrRead(), StdinWrite() and ConsoleRead() has been changed.Link: StdoutRead() My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) Link to comment Share on other sites More sharing options...
baghenamoth Posted July 31, 2008 Author Share Posted July 31, 2008 Snif, I saw that, this change is actually my pb... Link to comment Share on other sites More sharing options...
baghenamoth Posted August 1, 2008 Author Share Posted August 1, 2008 Any other Idea? 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