I don't know how to send packet like this I copied some codes from "acer2000" but i don't know how to convert packet like this
[C -> S][704F]
04
To binary like he did
btw sorry for bad English.
that's code
when i send it i got crash can anyone help me and thx
[C -> S][704F]
04
To binary like he did
btw sorry for bad English.
that's code
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
local $edit
$g_IP = "127.0.0.1"
$stan = "0x704F04"
;$ss = "0x04004570010004020000" ;start talk
;$s1 = "0x0500467001000402000003" ; deposite
;$s2 = "0x070034700100020D0004020000" ; put item #1 at inventory to storage
TCPStartUp()
$socket = TCPConnect($g_IP, 16000)
$Form1 = GUICreate("Form1", 624, 449, 191, 114)
$Button1 = GUICtrlCreateButton("start", 208, 376, 193, 57)
$Button2 = GUICtrlCreateButton("Button2", 400, 328, 145, 49)
$edit = GUICtrlCreateEdit("", 10, 10, 280, 180)
#EndRegion ### END Koda GUI section ###
if $socket = -1 Then
MsgBox(0, "Ops", "Run proxy and program will close after 3 sec")
Sleep(3000)
else
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg(0)
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
$recv = TCPRecv($socket , 8)
$binFirst = BinaryMid($recv, 1, 10)
If @error Then MsgBox(0, "Ops", "Run proxy and program will close after 3 sec")
If $recv <> "" Then GUICtrlSetData($edit, _
$g_IP & " > " & $binFirst & @CRLF & GUICtrlRead($edit))
case $Button2
TCPSend($socket,$stan)
;Sleep(2000)
;TCPSend($socket,$s1)
;Sleep(2000)
;TCPSend($socket,$s2)
EndSwitch
WEnd
EndIf