| View previous topic :: View next topic |
| Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Tue Jun 07, 2016 3:51 pm Post subject: Question related to button click detection in a game. |
|
|
What is the most efficient or effective way to find the code that activates when clicking a button in game? Such as a button on a menu.
I only know one way to do it: Ultimap. However, it is laggy and inefficient. Any better way? Thanks. |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Jun 07, 2016 4:06 pm Post subject: |
|
|
There are ways to improve ultimap performance - especially if you are working from a menu (i.e. not in-game). That said, ultimap is the best way.
If the button brings up a new window, that might make it easier to find. You may be able to hold the left-mouse button on the game button and/or just hover your mouse over the button in question in order to find the section of code that you need to be in. Also, depending on what the button does when you press it (e.g. if it changes a value in the game), you may be able to backtrace from that function and find where the button-pressed check occurs etc.. |
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Tue Jun 07, 2016 5:21 pm Post subject: |
|
|
| ++METHOS wrote: | There are ways to improve ultimap performance - especially if you are working from a menu (i.e. not in-game). That said, ultimap is the best way.
If the button brings up a new window, that might make it easier to find. You may be able to hold the left-mouse button on the game button and/or just hover your mouse over the button in question in order to find the section of code that you need to be in. Also, depending on what the button does when you press it (e.g. if it changes a value in the game), you may be able to backtrace from that function and find where the button-pressed check occurs etc.. |
Thanks, ++METHOS.
I will give it a try when I get home, and post a feedback. |
|
| Back to top |
|
 |
|