Jump to content

tcp grabber


Recommended Posts

Hi all,

I am totaly new working with autoit (like :D ) but if someone can tell me how to get any further i would preciated

Its reads data every 3 seconds and looks like this :




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 ( "" ) ;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")






Link to comment
Share on other sites

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...