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 


Cheat Engine API's for 3rd party Bots/Applications

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

Joined: 06 Dec 2006
Posts: 2

PostPosted: Wed Dec 06, 2006 11:57 pm    Post subject: Cheat Engine API's for 3rd party Bots/Applications Reply with quote

I want to write a bot in C# using a set of Cheat Engine functions. Is there a DLL I can import to do such a thing? My sole interest at the moment is searching for an array of Bytes. Then watching the memory for changes and taking action accordingly.

Thanks Zuel

_________________
Zuel
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25831
Location: The netherlands

PostPosted: Thu Dec 07, 2006 4:28 am    Post subject: Reply with quote

there is dbk32.dll that you can use.
OP=OpenProcess
RPM=ReadPRocessMemory
WPM=WriteProcessMemory

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Zuel
How do I cheat?
Reputation: 0

Joined: 06 Dec 2006
Posts: 2

PostPosted: Thu Dec 07, 2006 4:06 pm    Post subject: Reply with quote

Perhaps then I need to research further. BTW I think the work done here is Great, thanks DB.

I am working on a Poker Calculator for a site that is not supported by the popular calculators.

CE helped me find the address of the Hand status. IE, Dealing Hands or You were delt Jh 8s or Dealing flop (2h3s6c).. etc.

Locating this position in memory I then through trial and error found the starting address to this block. Using search for address I was able to locate the actual Table(poker table) structure that has a pointer to that location. Now, the table structure has a unique signature that I can search for using Array of Bytes.

I however cannot find any static address that references either the table structures or the status message. So I can't use a static address and therefore I think I am left to creating a hack that uses the search for array of bytes to find the tables structure and further find the status message.

I would also like this to be a stand-alone app and not require me to use CE to find that location everytime I play.

My C# app already uses the DLL import methods of the Kernal to read memory and it's working nicely. However, since it's not static I need to enumerate the process's memory and find this array of bytes dynamicaly in code.

I am using VirtualQueryEx to enumerate the loaded pages but I think the InteropServices is pretty slow at returning these large blocks of unmanaged memory to the managed code.

Further more you already have the code to Watch a memory location for changes and that's something else I have to learn.

Anyway, thanks for your speedy response.

A wish list for me is an API with all searching capabilities, watching for changes with some sort of callback functionality on change.

Meanwhile I will keep digging in your code and hopefully it will provide the insite I need.

Keep up the great work!
This tool is super freaking cool!!!!!!!!!!!!!!!!!!!!!


Zuel

_________________
Zuel
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