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 


Is it possible to call game functions from cheat engine?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
wulfcare
Advanced Cheater
Reputation: 0

Joined: 27 Feb 2023
Posts: 59

PostPosted: Thu Mar 02, 2023 4:32 am    Post subject: Is it possible to call game functions from cheat engine? Reply with quote

Can we call game functions from within cheat engine similar to calling game functions using function pointers within c++.

Being able to call game functions from within cheat engine would save alot of time when testing functions, instead of having to write it in c++ then compile then injecting.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Mar 02, 2023 5:34 am    Post subject: Reply with quote

yea, you can use executeCodeEx
Code:

executeCodeEx(0, nil, address, param1, param2, param3...)


or executeMethod if it's a class object
Code:

executeMethod(0, nil, address, classinstance (usually rcx), param1, param2, param3, ...)




(You can also compile C code inside CE and then execute that with executeCode or createthread)

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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