| View previous topic :: View next topic |
| Author |
Message |
PeppeProduction How do I cheat?
Reputation: 0
Joined: 13 May 2015 Posts: 6
|
Posted: Wed May 13, 2015 1:21 pm Post subject: Help with addresses |
|
|
Hi all, I'm trying to create a cheat on visual studio with pointer helping with cheat engine for the addresses, my question is how do I find the addresses outlined in red in the screen in visual studio?. if I try just to do test.exe + 1DCEFB8 = 141C3EFB8
Sorry for my bad english. |
|
| Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Wed May 13, 2015 3:07 pm Post subject: |
|
|
In your example if test.exe + 1DCEFB8 = 141C3EFB8, then ReadProcessMemory(HandleOfTestExe, 0x141C3EFB8, &ReadBytes,4,NULL) will put 0xDCDD890 in ReadBytes.
Likewise ReadProcessMemory(HandleOfTestExe, 0xDCDD890+0x820, &ReadBytes,4,NULL) will put 0x14fbd860 in ReadBytes.
Remains from the previous version of this post: you might want to look at SteveAndrew's posts here: http://forum.cheatengine.org/viewtopic.php?t=563181&postdays=0&postorder=asc&start=30 . _________________
DO NOT PM me if you want help on making/fixing/using a hack. |
|
| Back to top |
|
 |
PeppeProduction How do I cheat?
Reputation: 0
Joined: 13 May 2015 Posts: 6
|
Posted: Wed May 13, 2015 3:41 pm Post subject: |
|
|
im using
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
and i have tried with:
Dim Result As Integer
Dim Handle As Process() = Process.GetProcessesByName("Test")
ReadProcessMemory(Handle(0).Handle, &H141C3EFB8, Result, 4, Nothing)
lol.Text = Result.ToString()
and i have 1 problems:
1)error on &H141C3EFB8 like it is too long but i have this address on cheat engine :O
(Error 1 Constant expression not representable in type 'Integer'.)
2)how to read the address instead of integer? |
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed May 13, 2015 8:22 pm Post subject: |
|
|
You need to redefine the address and value as Long or IntPtr, I believe.
Not really up on my Visual Basic hacking, sorry.  |
|
| Back to top |
|
 |
PeppeProduction How do I cheat?
Reputation: 0
Joined: 13 May 2015 Posts: 6
|
Posted: Thu May 14, 2015 2:11 am Post subject: |
|
|
I have already tried with
Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As intPtr, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
Dim Result As IntPtr
Dim Handle As Process() = Process.GetProcessesByName("Test")
ReadProcessMemory(Handle(0).Handle, &H141C3EFB8, Result, 4, Nothing)
It not get the address |
|
| Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
|
| Back to top |
|
 |
|