I am developing a "rhythm game" auto playing using Python, but I have a problem : [enter image description here][1]


I am developing a "rhythm game" auto playing using Python, but I have a problem.

My plan is as follows.

1 Capture a specific range in the game.(Infinite repeat)
2 "1" to from detect pre-stored pictures.
3 When detected, enter the keyboard "S" button.

"1" was successfully implemented But I could not implement number "2".

P.s  i'm using python Ver

[enter image description here][2] Capture range

[enter image description here][3] Photos to detect


  [1]: https://i.stack.imgur.com/CzJU4.png
  [2]: https://i.stack.imgur.com/F4xNG.png
  [3]: https://i.stack.imgur.com/EuNnj.png