moin
das hab ich
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
HotKeySet("{ESC}","_exit")
[/autoit] [autoit][/autoit] [autoit]$recv=""
$altrecv = ""
Opt("GUIOnEventMode", 1)
[/autoit] [autoit][/autoit] [autoit]GUICreate("test",250,150)
Global $input = GUICtrlCreateEdit("",10,10,200,50)
$button = GUICtrlCreateButton("senden",100,100)
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
GUICtrlSetOnEvent($button, "_send")
GUISetState()
TCPStartup()
$connectedsocket = TCPConnect("84.38.66.225","62345")
If @error Then MsgBox(0,"",@error)
While 1
$recv = TCPRecv($connectedsocket,1024)
If Not $recv = $altrecv Then
ConsoleWrite($recv)
$altrecv = $recv
EndIf
Sleep(100)
WEnd
Func _exit()
Exit
EndFunc
Func _send()
$mmm = GUICtrlRead($input)
TCPSend($connectedsocket, $mmm)
EndFunc
;~ ip daresse des testserver: 84.38.66.225
;~ upd port: 8767
;~ tcp port: 62345
so müsste ich doch eing. befehle wie sl oder sel [port] senden können leider bekomme ich vom server nix zurük. an was kann das liegen