UPTADED for LATEST PATCH on MARCH 5TH 2007
Enjoy ;)
PS: after more than 10k downloads, thanks peepz :D
Enjoy ;)
PS: after more than 10k downloads, thanks peepz :D
Global Const $MEM_O = 0x8 Global Const $MEM_R = 0x10 Global Const $MEM_W = 0x20 While 1 If WinExists("[Conquer2.0]") = 0 Then Exit Else $PID = _MemOpen($MEM_R, False, WinGetProcess("[Conquer2.0]")) $NAME = _MemRead($PID, 0x0057B43C, 16) WinSetTitle ("[Conquer2.0]","",$NAME) EndIf WEnd Func _MemOpen($i_dwDesiredAccess, $i_bInheritHandle, $i_dwProcessId) $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', $i_dwDesiredAccess, 'int', $i_bInheritHandle, 'int', $i_dwProcessId) If @error Then SetError(1) Return 0 EndIf Return $ai_Handle[0] EndFunc;==> _MemOpen() Func _MemRead($i_hProcess, $i_lpBaseAddress, $i_nSize, $v_lpNumberOfBytesRead = '') Local $v_Struct = DllStructCreate ('byte[' & $i_nSize & ']') DllCall('kernel32.dll', 'int', 'ReadProcessMemory', 'int', $i_hProcess, 'int', $i_lpBaseAddress, 'int', DllStructGetPtr ($v_Struct, 1), 'int', $i_nSize, 'int', $v_lpNumberOfBytesRead) Local $v_Return = DllStructGetData ($v_Struct, 1) $v_Struct = 0 Return $v_Return EndFunc;==> _MemRead() Func _MemWrite($i_hProcess, $i_lpBaseAddress, $v_Inject, $i_nSize, $v_lpNumberOfBytesRead = '') Local $v_Struct = DllStructCreate ('byte[' & $i_nSize & ']') DllStructSetData ($v_Struct, 1, $v_Inject) $i_Call = DllCall('kernel32.dll', 'int', 'WriteProcessMemory', 'int', $i_hProcess, 'int', $i_lpBaseAddress, 'int', DllStructGetPtr ($v_Struct, 1), 'int', $i_nSize, 'int', $v_lpNumberOfBytesRead) $v_Struct = 0 Return $i_Call[0] EndFunc;==> _MemWrite() Func _MemClose($i_hProcess) $av_CloseHandle = DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $i_hProcess) Return $av_CloseHandle[0] EndFunc;==> _MemClose()
How about when you use alot of miners and want to check their items or if they are killed, then be able to switch to your main char/seller without checking every co instance.Quote:
Originally posted by Fataladmin@May 20 2006, 22:49
this is very nice, i tried it.. but can anyone explain to me the advantages to using this?