it works!

It works, post message and getting the child window makes it work.
TODO: change the endline at the end of stream.