Help Hi Accurate Timer in VB.net

Posts 1–9 of 9 · Page 1 of 1
Help Hi Accurate Timer in VB.net
hi all..
i have some problem on my game trainer..
i want to Freeze my value with interval 1..
but in vb.net / vb6.. i think different timer with CE..
because if im not freeze my value with *REAL* interval 1.

my cheat get detected from the game..

thanks for help

Best Regards.
Vb.net is considered slow btw cause it needs .net framework

Try NOP'ing the addresses?
whats NOP??
u mean

'NOP
Public Function NOP(ByVal Address As Integer, ByVal value As Integer)
Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")
If warrockLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)
WriteProcessMemory(processHandle, Address, value, 1, Nothing)
CloseHandle(processHandle)
End Function
Code:
Private Declare Function OpenProcess Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer Private Declare Function WriteProcessMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer Private Declare Function WriteFloatMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer Private Declare Function ReadFloat Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef buffer As Single, ByVal size As Int32, ByRef lpNumberOfBytesRead As Int32) As Boolean Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Integer) As Integer Public Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer Public RBuff1 As Long Public RBuff2 As Single Public RBuff3 As Integer 'WriteMemory Public Function WriteMemory(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer) Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) WriteProcessMemory(processHandle, Address, Value, Bytes, Nothing) CloseHandle(processHandle) End Function 'ReadFloat Public Function ReadFloat(ByVal Address As Single) Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) ReadProcessMemory(processHandle, Address, RBuff1, 4, Nothing) CloseHandle(processHandle) Return RBuff1 End Function 'WriteFloat Public Function WriteFloat(ByVal Address As Integer, ByVal Value As Single) Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) WriteFloatMemory(processHandle, Address, Value, 4, Nothing) CloseHandle(processHandle) End Function 'ReadLong Public Function ReadLong(ByVal Address As Integer) Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) ReadProcessMemory(processHandle, Address, RBuff1, 4, Nothing) CloseHandle(processHandle) Return RBuff1 End Function 'ReadFloatPointer Public Function ReadFloatPointer(ByVal Base As Integer, ByVal Offset As Short) Dim fullAddress As Long Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing) fullAddress = RBuff1 + Offset ReadFloat(processHandle, fullAddress, RBuff2, 4, Nothing) Return RBuff2 CloseHandle(processHandle) End Function 'ReadLongPointer Public Function ReadLongPointer(ByVal Base As Integer, ByVal Offset As Short, ByVal Bytes As Integer) 'ReadLongPointer Dim fullAddress As Long Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing) fullAddress = RBuff1 + Offset ReadProcessMemory(processHandle, fullAddress, RBuff3, Bytes, Nothing) Return RBuff3 CloseHandle(processHandle) End Function 'WriteFloatPointer Public Function WriteFloatPointer(ByVal Base As Integer, ByVal Offset As Short, ByVal Value As Single) Dim fullAddress As Long Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing) fullAddress = RBuff1 + Offset WriteFloatMemory(processHandle, fullAddress, Value, 4, Nothing) CloseHandle(processHandle) End Function 'WriteLongPointer Public Function WriteLongPointer(ByVal Base As Integer, ByVal Offset As Short, ByVal Value As Long, ByVal Bytes As Integer) Dim fullAddress As Long Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing) fullAddress = RBuff1 + Offset WriteProcessMemory(processHandle, fullAddress, Value, Bytes, Nothing) CloseHandle(processHandle) End Function 'NOP Public Function NOP(ByVal Address As Integer, ByVal value As Integer) Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock") If warrockLookUp.Length = 0 Then End End If Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id) WriteProcessMemory(processHandle, Address, value, 1, Nothing) CloseHandle(processHandle) End Function
and i want my ADDRESS 20C8080 freeze value 1000

because its a Health.. and i want to freeze with so fast like "While Function"

but if "while function" my Trainer get "Not Responding"
set the value too 9999999??? O.o
and keep on writing the address with a timer

or
[NOP means 'erase' the address (might cause errors/crashes if not done right)]

NOP the address that tries to access the value so it won't change

on a side note why do you need it faster? O.o

Edit: also what I would do it auto run my program as admin
Use a background worker for your While Loop (though I don't really recommend removing the pause because your app will start eating memory)
@WillRullz188 : if i use while game not detect..
but i think delete original value and replace with my value is good idea..
can u give me the source code of NOP?



@Jason: i really newbie in hacking games and vb
please guide me use backgroundworker while loop..
You can find many tutorials online by just googling them and most of the time if your lucky source code will be also available.
i mean, if anybody in here can help me to knowing Freeze health value.
because i need help from here..
That's the reason why I made this thread.
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us