i want to read the output of ping command but the thing is that while running the gui if i do #include <Constants.au3> Global $DOS, $Message $DOS = Run(@ComSpec & " /c Ping www.google.com", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $Message = StdoutRead($DOS, True) if @error then exitloop WEnd MsgBox(0, "Stdout Read:", $Message) then the gui hangs and you cannot close the window or cancel it... neither does it receive the click done while reading.. plz help..