Not sure which "Tempo button" was mentioned and what is the goal.
If that is inserting/replacing tempo change dialog, focus should be positioned on the button and then you need to imitate "space" computer keyboard key to tap. AZ Controller can do that (open dialog, change focus, send spaces, click "Ok" then).
But if the goal is to define already existing material tempo by tapping in parallel, you just need to record a midi track tapping at each beat (the button should send any "note") and then "Process/Fit improvisation".