Jump to content

tcp didnt read from winlist ???


 Share

Recommended Posts

hii again

i have problem at reading data from winlist to send it Through tcp connection

my purpose is to select the first row at winlist(change every 5 sce) and send it with tcp func

my problem is :: i cant read data at winlist Through tcp

have a look to code ((part))

HotKeySet ("{f6}" , "bb")
GUICreate("tcp", 633, 447, 192, 124)
$Status = GUICtrlCreateListView("", 8, 8, 609, 377, BitOR($LVS_SORTDESCENDING, $LVS_LIST, $LVS_SHOWSELALWAYS))
GUISetState(@SW_SHOW)
While 
if $iFlag Then
bb()
EndIf
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func bb()
    $IP = "187.526.527.26"
    $Hex = ("0x0850456801470"&GUICtrlRead(GUICtrlRead($Status)))
TCPStartUp()
TCPConnect($IP, 15547)
_GUICtrlListView_SetItemSelected($Status, 0)
     TCPSend($socket1,$Hex)
TCPShutdown ()
EndFunc
Edited by acer20006
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
 Share

  • Recently Browsing   0 members

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