vimponia Posted October 29, 2011 Share Posted October 29, 2011 Hi all, I am totaly new working with autoit (like ) but if someone can tell me how to get any further i would preciated Its reads data every 3 seconds and looks like this : ~505=7=23=4=5=8=16=0=0=4=14 ~505=7=23=4=5=8=16=0=0=4=14 ~506=4=7=0=5610=3=0=0=0=9=24 As you can see i put in a file but i want to seperate the input so a window without the rubbisch = and ~ Script is based on what i found on the forum #include <GUIConstants.au3> ;TCP starten TCPStartup () ;GUI Create GuiCreate("Ertocom ucd grabber", 300, 490, -1, -1 ) $Edit = GuiCtrlCreateEdit("", 10, 10, 300, 490) GUISetState () $Host = TCPNameToIP ( "192.168.0.150" ) ;host ;make connection $Conection = TCPConnect ( $Host, 5105 ) ;port If @error Then Exit While 1 $msg = GuiGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit $recv = TCPRecv ( $Conection,29 ) If $recv <> "" Then $text = GUICtrlRead ( $Edit ) GUICtrlSetData ( $Edit,$text & $recv ) ControlSend ( "Ertocom ucd grabber","", $Edit, "{ENTER}") FileWrite ( "Ton.txt", $text ) If @error Then MsgBox (0,"","Dit gaat m niet worden") Exit EndIf EndIf WEnd Thanks Link to comment Share on other sites More sharing options...
bogQ Posted October 29, 2011 Share Posted October 29, 2011 Try with stringreplace() or stringsplit(), look for them in a help file to get more info. TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now