Click when progress bar changes color and ends

Hi everyone.

I’m a total beginner and i hope you don’t mind me asking for some quick advise.

Here’s the case for a browser based game (for educational purposes):

There’s a time bar that fills up every second. The second the desired time is reached, the bar will change color to green. The moment the green bar reaches the end, the command ‘aanvallen’ should be clicked.

(see images)

Could someone help me achieve this or get me started?

Thanks!

Schermafbeelding 2024-03-19 154736
Schermafbeelding 2024-03-19 154944
Schermafbeelding 2024-03-19 155037

Hi, you can use visualGetPixelColor to check the color of the progress bar.

So basically you would do a loop, check the color every second, and then continue when it is green. That will be a very stable way to automate this.