Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

[SOLVED] stdoutread() question

$
0
0
[ autoit ]      
ListOnline() Func ListOnline() Local $foo, $sActiveLine, $sLine $foo = Run(@ComSpec & " /c net view ", @SystemDir, @SW_HIDE, 2) While 1 $sActiveLine = StdoutRead($foo) If @error Then ExitLoop $sLine = $sActiveLine WEnd ConsoleWrite($sLine) Endfunc

[ autoit ]      
ListOnline() Func ListOnline() Local $foo, $sActiveLine, $sLine $foo = Run(@ComSpec & " /c net view ", @SystemDir, @SW_HIDE, 2) While 1 $sActiveLine = StdoutRead($foo) If @error Then ExitLoop ConsoleWrite($sActiveLine) WEnd Endfunc

Hello guys, why doesn't the first script display anything while the second one works fine?

Please help me understand. Thank you!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>