Salve ospite, se leggi questo messaggio vuol dire che non sei registrato, cosa aspetti ? Premi qui per registrarti La registrazione è completamente gratuita e ti permetterà di usufruire di tutte le funzionalità del nostro forum. Buona navigazione.
While ProcessExists("NostaleX.dat")
Sleep(3000)
if IsArray($old_opcode_recv) and $activated=1 Then
$read=GUICtrlRead($Edit1)
$temp1=""
For $i=0 To Ubound($packets_recv)-1
$packets_recv[$i]=_ReadMemory2DArrayString($memopen,$allocated_arr,$i)
if $packets_recv[$i]<>chr(0) and $activated=1 Then
_MemoryReset2DArray($memopen,$allocated_arr,$i)
$temp1=$temp1&"["&@HOUR&":"&@MIN&":"&@SEC&"] "&$packets_recv[$i]&@CRLF
EndIf
Next
_GUICtrlEdit_BeginUpdate($Edit1)
$sel=_GUICtrlEdit_GetSel($Edit1)
_GUICtrlEdit_AppendText($Edit1, $temp1)
_GUICtrlEdit_SetSel($Edit1, $sel[0], $sel[1])
_GUICtrlEdit_EndUpdate($Edit1)
GUICtrlSetData($Label1,"Recv-Packets: "&_GUICtrlEdit_GetLineCount($Edit1))
EndIf
WEnd
Func Button1Click()
if NOT IsArray($old_opcode_recv) and $activated=0 Then
$old_opcode_recv=_InjectASMAtAddress($memopen, $found_recv[0], 6, $asm_code)
$activated=1
EndIf
EndFunc
Func Button2Click()
if IsArray($old_opcode_recv) and $activated=1 Then
_MemoryBytesWrite($memopen,$found_recv[0],$old_opcode_recv[3])
$activated=0
EndIf
EndFunc
Func Form1Close()
if IsArray($old_opcode_recv) Then
_MemoryBytesWrite($memopen,$found_recv[0],$old_opcode_recv[3])
EndIf
Exit
EndFunc
While ProcessExists("NostaleX.dat")
Sleep(3000)
if IsArray($old_opcode_recv) and $activated=1 Then
$temp1=""
$temp2=""
$temp3=""
$read=GUICtrlRead($Edit3)
$splited=StringSplit($read,@CRLF,2)
For $i=0 To Ubound($packets_recv)-1
$packets_recv[$i]=_ReadMemory2DArrayString($memopen,$allocated_arr_recv,$i)
if $packets_recv[$i]<>chr(0) and $activated=1 Then
_MemoryReset2DArray($memopen,$allocated_arr_recv,$i)
$temp1=$temp1&"["&@HOUR&":"&@MIN&":"&@SEC&"] "&$packets_recv[$i]&@CRLF
if IsArray($splited) and $read<>"" Then
For $i2=0 To UBound($splited)-1
if $splited[$i2]<>"" and StringRegExp($packets_recv[$i], $splited[$i2])=1 Then
$temp3=$temp3&"{Recv: "&@HOUR&":"&@MIN&":"&@SEC&"} "&$packets_recv[$i]&@CRLF
ExitLoop
EndIf
Next
endif
EndIf
Next
For $i=0 To Ubound($packets_send)-1
$packets_send[$i]=_ReadMemory2DArrayString($memopen,$allocated_arr_send,$i)
if $packets_send[$i]<>chr(0) and $activated=1 Then
_MemoryReset2DArray($memopen,$allocated_arr_send,$i)
$temp2=$temp2&"["&@HOUR&":"&@MIN&":"&@SEC&"] "&$packets_send[$i]&@CRLF
if IsArray($splited) and $read<>"" Then
For $i2=0 To UBound($splited)-1
if $splited[$i2]<>"" and StringRegExp($packets_send[$i], $splited[$i2])=1 Then
$temp3=$temp3&"{Sent: "&@HOUR&":"&@MIN&":"&@SEC&"} " &$packets_send[$i]&@CRLF
ExitLoop
EndIf
Next
EndIf
EndIf
Next
_GUICtrlEdit_BeginUpdate($Edit1)
$sel=_GUICtrlEdit_GetSel($Edit1)
_GUICtrlEdit_AppendText($Edit1, $temp1)
_GUICtrlEdit_SetSel($Edit1, $sel[0], $sel[1])
_GUICtrlEdit_EndUpdate($Edit1)
Func Button1Click()
if $activated=0 Then
$old_opcode_recv=_InjectASMAtAddress($memopen, $found_recv[0], 6, $asm_code_recv)
$old_opcode_send=_InjectASMAtAddress($memopen, $found_send[0], 5, $asm_code_send)
$activated=1
EndIf
EndFunc
Func Button2Click()
if IsArray($old_opcode_recv) and $activated=1 Then
_MemoryBytesWrite($memopen,$found_recv[0],$old_opcode_recv[3])
_MemoryBytesWrite($memopen,$found_send[0],$old_opcode_send[3])
$activated=0
EndIf
EndFunc
Func Form1Close()
if IsArray($old_opcode_recv) Then
_MemoryBytesWrite($memopen,$found_recv[0],$old_opcode_recv[3])
_MemoryBytesWrite($memopen,$found_send[0],$old_opcode_send[3])
EndIf
Exit
EndFunc
per assistenza scrivimi su skype (contatto tramite pm) oppure taggami sul forum
(Questo messaggio è stato modificato l'ultima volta il: 26-11-2012 07:40 PM da scl.)