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

how to make 2 loops in a script ? -need help-

$
0
0

hi all anyone knows why i can't but 2 thing in one loop ?
i tried to make 2 while loops but the first one is the only running one.
here is the code:

AutoIt         
‪#‎include‬ <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> ‪#‎region‬ ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 237) GUISetState(@SW_SHOW) ‪#‎endregion‬ ### END Koda GUI section ### TCPStartup() $TCPListen = TCPListen(@IPAddress1, 403) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch Do $TCPAccept = TCPAccept($TCPListen) Until $TCPAccept <> -1 Do $TCPRecive = TCPRecv($TCPAccept, 1000000) Until $TCPRecive <> "" MsgBox(0, "hi", $TCPRecive) WEnd

any ideas ?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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