Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with addresses

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
PeppeProduction
How do I cheat?
Reputation: 0

Joined: 13 May 2015
Posts: 6

PostPosted: Wed May 13, 2015 1:21 pm    Post subject: Help with addresses Reply with quote

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.



lk.PNG
 Description:
 Filesize:  21.67 KB
 Viewed:  3901 Time(s)

lk.PNG


Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed May 13, 2015 3:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeppeProduction
How do I cheat?
Reputation: 0

Joined: 13 May 2015
Posts: 6

PostPosted: Wed May 13, 2015 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed May 13, 2015 8:22 pm    Post subject: Reply with quote

You need to redefine the address and value as Long or IntPtr, I believe.
Not really up on my Visual Basic hacking, sorry. Smile
Back to top
View user's profile Send private message
PeppeProduction
How do I cheat?
Reputation: 0

Joined: 13 May 2015
Posts: 6

PostPosted: Thu May 14, 2015 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu May 14, 2015 3:20 am    Post subject: Reply with quote

Lookup Cless' code, second half of this post: http://forum.cheatengine.org/viewtopic.php?p=5347687
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites