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 


Implementing Cheat Engine offsets into Visual Basic

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

Joined: 24 Dec 2012
Posts: 1

PostPosted: Mon Dec 24, 2012 6:12 am    Post subject: Implementing Cheat Engine offsets into Visual Basic Reply with quote

Hey, I have successfully learned how to find the static adresses and everything. Now I would want to implement them into my visual basic trainer.

So lets say I have this static adress for solitaire with offsets, how do I implement it into visual basic so it would work?

I have this code for visual basic but I didn't find a way to add offsets there.

Code:
           Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Try
            WriteInteger("SpiderSolitaire", &H1E6A88, TextBox1.Text)
        Catch ex As Exception

        End Try
    End Sub


This is the whole module for ReadWritingMemory
pastebin [dot] com/1GAxbvkJ

Thanks for helping me out and also Merry Christmas!
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Mon Dec 24, 2012 7:50 am    Post subject: Reply with quote

You have to read every address, starting from the static address found, here's an example using the ReadProcessMemory API, let's say your address is:

Code:
Static [00B32A40] --> Contains Addr1
[Addr1+0x200] --> Contains Addr2
[Addr2+0x4] --> Contains Wanted address


This would be:
Code:

int Addr1
int Addr2
int Wanted

Addr1 = ReadProcessMemory(proc,0x00B32A40,4)
Addr2 =  ReadProcessMemory(proc,Addr1+0x200,4)
Wanted =  ReadProcessMemory(proc,Addr2+0x4,4)


In your module code, Use the 'ReadInteger' function as the ReadProcessMemory equivalent, with the same steps explained above.

then finally use Read/WriteProcessMemory to control your desired value
Code:
Read/WriteProcessMemory(proc,Wanted,NEW_Value,4)


---THESE ARE JUST EXAMPLES---
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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