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