Sign in to follow this  
Followers 0
acer20006

tcp didnt read from winlist ???

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



up up

i need help plz

Share this post


Link to post
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
Sign in to follow this  
Followers 0