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 


How to execute the action of a button using memory modding?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
trifidix
Newbie cheater
Reputation: 0

Joined: 11 May 2022
Posts: 16

PostPosted: Fri Jun 03, 2022 11:41 pm    Post subject: How to execute the action of a button using memory modding? Reply with quote

I have a button in a game, need to execute whatever action it does without opening the menu it's in and actually clicking it, automatically. Is there any way to do this?
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Sat Jun 04, 2022 1:40 pm    Post subject: Reply with quote

Find the function pressing the button calls.
Identify what needs to be set up prior to calling it so it wont break.
Call it.

https://www.cheatengine.org/forum/viewtopic.php?t=606816&sid=6a9a12a96350adac03c61efce8906b26
https://www.cheatengine.org/forum/viewtopic.php?t=601903&sid=c8ce100cb8a8e6e53eafc76916a63e4b

If you need more examples, just google:
site:forum.cheatengine.org call function
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Jun 04, 2022 3:33 pm    Post subject: This post has 1 review(s) Reply with quote

Buttons can be executed simply by changing a value sometimes. You can search for changed value when button is being pressed (or use ultimap, ultimap2 or code filter...all of which might be better since you will catch the function that handles the action and not just the button pressed state).

In your case, though, it sounds like you may need a series of buttons to be executed, assuming that a menu needs to be accessed first. In that case, you can try writing a script to execute those buttons in the order that you want, or, using a macro via 3rd-party app.
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