Jump to content
  • 0

How to click a button by changing a value?


g1doz
 Share

Question

Hi,

I want to know how to make an action like click in a specific button in the game but without clicking on it but instead by changing a value?

So my question is, How to find the value that when I changed will run the function of a specific button?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

To achieve this, you need to understand how the button works in the game.

Understand Button Events. When you click a button in a game, it triggers an event. This event is linked to a specific action or function in the game's code.
Find the Function: Each button in the game is programmed to run a specific function when clicked. For example, a "shoot" button in a shooting game runs a function that handles shooting.
Locate the Memory Address, Games store information and functions in memory. To trigger a button's action without clicking it, you need to find the memory address where the button's function is stored.

Better do the call or hooking trough modding, you will have a hard time trying this with game guardian cause the only way is to write raw assembly code.

Using Auto Clickers (Alternative):

If finding and changing memory addresses sounds too complex, you can use an auto-clicker app. Auto-clickers simulate clicks at specified intervals, so you can automate the button clicking without dealing with the game's code.
https://play.google.com/store/apps/details?id=com.truedevelopersstudio.automatictap.autoclicker&pcampaignid=web_share

Edited by MAARS
Link to comment
Share on other sites

  • 0
  • Moderators
On 5/24/2024 at 2:13 PM, MAARS said:

To achieve this, you need to understand how the button works in the game.

Understand Button Events. When you click a button in a game, it triggers an event. This event is linked to a specific action or function in the game's code.
Find the Function: Each button in the game is programmed to run a specific function when clicked. For example, a "shoot" button in a shooting game runs a function that handles shooting.
Locate the Memory Address, Games store information and functions in memory. To trigger a button's action without clicking it, you need to find the memory address where the button's function is stored.

Better do the call or hooking trough modding, you will have a hard time trying this with game guardian cause the only way is to write raw assembly code.

Using Auto Clickers (Alternative):

If finding and changing memory addresses sounds too complex, you can use an auto-clicker app. Auto-clickers simulate clicks at specified intervals, so you can automate the button clicking without dealing with the game's code.
https://play.google.com/store/apps/details?id=com.truedevelopersstudio.automatictap.autoclicker&pcampaignid=web_share

Don't necessarily need to write raw assembly code.  It could be possible to change branch from screenTap/touch or action of such, and branch it to the button want clicked instead. So just tapping screen, will give the action of clicking button, without it even being visible.

Link to comment
Share on other sites

  • 0
Posted (edited)
1 hour ago, NoFear said:

Don't necessarily need to write raw assembly code.  It could be possible to change branch from screenTap/touch or action of such, and branch it to the button want clicked instead. So just tapping screen, will give the action of clicking button, without it even being visible.

Yeah this is also a good method.
my idea was to find a function we know run every frame and add a BL call to another function inside this one

kinda just like

before:

void Shoot()
{
    printf("Shooting");
}
void Tick()
{
    printf("I run every frame !");
}

After:
 

void Shoot()
{
    printf("Shooting");
}
void Tick()
{
  	Shoot();
    printf("I run every frame !");
}


 

Edited by MAARS
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.