A question if possible to do

Hello
i have a website game in web browser that gives in each click a number
and i want this number to be clicked on an exe program in desktop
is it possible ?
So basically i wanna do a macro that keep clicking a button on the web and the numbers that comes out after each click based on that number it clicks in a position in exe program till the exe programm gives a yellow color thn the macro have to stop till i run it again same steps

That sounds doable. If you provide a link or a screen video we can even tell you the best strategy to solve it.

Here is a video example

Its manual input i am trying to make it automated