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 pointer & c++
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
thearing
Newbie cheater
Reputation: 0

Joined: 23 Nov 2009
Posts: 11

PostPosted: Mon Dec 07, 2009 5:23 pm    Post subject: Reply with quote

Hello i again...

Look
img43.imageshack.us/img43/6874/dibujotnx.png

Now i have the pointer with offset 30...
The question is....
How edit the address with c++ or vb6 if i have:

ej vb6
Writeprocessmemory &HA97E0, "Solitario", TextPuntos.Text

But where i must put the offset?

Thanks![/list]
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Dec 07, 2009 5:58 pm    Post subject: Reply with quote

The 4 bytes at address 0x01007170 hold the address of some base, let's call it x. At [ x + 0x30 ], we have the dynamic address that you want to affect.

So read off the 4 bytes at address 0x01007170. Add 0x30 and that is your dynamic address that you are interested in.

Look at the particular case you have shown. 0x01007170 holds the value 0x000A95C8. Adding 0x30 to that gives 0x000A95F8.

So :
- RPM the 4 bytes at 0x01007170
- Add 0x30 to the result
- WPM to this new address
Back to top
View user's profile Send private message
thearing
Newbie cheater
Reputation: 0

Joined: 23 Nov 2009
Posts: 11

PostPosted: Mon Dec 07, 2009 11:12 pm    Post subject: Reply with quote

Hello very thanks for reply!!!

New pic, new address:
img690.imageshack.us/img690/9012/dibujovmf.png

I have a problem... When i readprocessmemory with vb:

ReadProcessMemory &H1007170, "Solitario", TextPuntos.Text

The value not is = to the value of cheat engine.

The value in vb is: 694872
And the value of cheat engine is: 000A9A58

What happen please!?

Thanks!!
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Dec 07, 2009 11:16 pm    Post subject: Reply with quote

thearing wrote:
Hello very thanks for reply!!!

New pic, new address:
img690.imageshack.us/img690/9012/dibujovmf.png

I have a problem... When i readprocessmemory with vb:

ReadProcessMemory &H1007170, "Solitario", TextPuntos.Text

The value not is = to the value of cheat engine.

The value in vb is: 694872
And the value of cheat engine is: 000A9A58

What happen please!?

Thanks!!


They are the same value, just one is represented in base-10 and the other is in base-16.
Back to top
View user's profile Send private message
thearing
Newbie cheater
Reputation: 0

Joined: 23 Nov 2009
Posts: 11

PostPosted: Mon Dec 07, 2009 11:25 pm    Post subject: Reply with quote

Thanks Flyte!!!! Look at everything what I am learning thanks for you!

So how i add 0x30 to the result ?

Thannks


EDITTTTT:

I did!!! Look:
If Offset = "&H1007170" Then
Pointer = Convert(Value, 10, 16)
Pointer2 = Right(Pointer, 2) + 30
Pointer = Left(Pointer, 3) & Pointer2
End If

Convert base 10 to base 16 and then:
ReadProcessMemory "&H" & Pointer, "Solitario", TextPuntos.Text

I cannot add 30 in the complete string because the string contain letters, so I must separate the last digits and add 30. And later to join it.

Sorry for my english... If there is some better way of making it please say it to me.
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 programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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