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

GUICtrlSetData into editbox

$
0
0
hi i'm trying to put the results of a port scan in a editbox no luck tho trying to use GUICtrlSetData($scannn,$port & " - Unable to connect - Wrong Address." & @CRLF))   dose not seem to want to put the results in the editbox i no i dont have it right sorry about my elglish
so what i'm asking is  how do i put scan results into editbox having the hardest time




Opt("TCPTimeout",1)
$SocketIP = ""
$socketportstart = 1
$socketportend = 65535
TCPStartup()
For $port = $socketportstart To $socketportend
	$socket = TCPConnect($SocketIP,$port)  
	Switch $socket
		Case -1
			Switch @error 
				Case 1
					GUICtrlSetData($scannn,$port & " - Unable to connect - Wrong Address." & @CRLF))
				Case 2 
					GUICtrlSetData($scannn,$port &  " - Unable to connect - Wrong Port." & @CRLF))
				Case Else
					GUICtrlSetData($scannn,$port &  " - Unable to connect." & @CRLF)
			EndSwitch
		Case Else
			TCPCloseSocket($socket)
			GUICtrlSetData($scannn,$port , " - Success!" & @CRLF))
	EndSwitch
Next
TCPShutdown()


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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