Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 14:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Is there any good approach to find a function that is associated with a button?

Discussion on Is there any good approach to find a function that is associated with a button? within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2017
Posts: 1
Received Thanks: 0
Is there any good approach to find a function that is triggered with a button?

Usually I find an entity of the function i want to call for example (healthAddress) press "Find what Accesses This Address" and then i have found the associated function for it.
Is there any good approach to find functions that are associated with a buttons

I think this is a pretty spot on explaination for my problem(even if it is short). But if i missed any informations you may need pls ask^^
jokalokadsd is offline  
Old 12/22/2018, 09:17   #2
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,487
There is no generic way. There are many ways to call a function for a button.
The easiest to find one should be to start off with cheat engine. If the button has direct effect to something (like showing a window) you can find the windows visibility value with cheat engine. The address that writes to this value might be inside the handler of the button. Now switch over to a debugger, go to the address and make a breakpoint on the start of the function (first instruction). Now click the button ingame. If the breakpoint hits, this code still belongs to the button. Write down the return address on the stack. Now click a different button, if the breakpoint does not hit, go to the return address from before an repeat this process until the breakpoint hits on other buttons or other unrelated game events. Once you have that location, you know where the handler starts.
florian0 is offline  
Old 12/22/2018, 13:15   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
If the game has no debugger blocking mechanism you could also break in the frameworks message scheduling function using a conditional breakpoint for only targeting click messages
Than just step to the program and search for the beginning of the desired function
warfley is offline  
Reply


Similar Threads Similar Threads
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
[B] Push Button [S] 10 e*gold/Button; 25 e*g/psd+Button
09/20/2013 - elite*gold Trading - 4 Replies
Moin, Hier könnt ihr folgenden Push Button kaufen: http://i.epvpimg.com/YlrYe.jpg Pro Button wären das 10e*g, pro Button mit .psd dazu 25e*g. Wenn ihr einen Button kaufen wollt, schreibt mir eine PN, damit ich den Namen ändern kann, alles hochladen kann und euch dann per Treasure schicken kann. ;) Schrift kann auch geändert werden. Dazu einfach in der PN schreiben, welche Schrift ihr haben wollt^^
[help]cannot find table associated with cos texture
12/16/2012 - SRO Private Server - 0 Replies
i was hoping to add new horses but, i worked off the existing horse textures and made one and i set in the DB the same drop image and icon as another horse. but i can't find the table for the texture file its Cos_c_DHorse4_02.ddj and _01.ddj where would the be
can't find associated ref error in SR_ShardManager
11/19/2011 - SRO Private Server - 0 Replies
Hi guys when i start sr_shardmanager it give this errors, ofc the same appear in sr_gameserver. I can normally start server and logIn but i think this errors disable somethink or make bugged but idk what. Maybe some1 know how can i repair this. http://img221.imageshack.us/img221/1845/shardsrer rortx.jpg



All times are GMT +1. The time now is 14:59.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.