There's a thread a few pages back to do with a Guitar Hero bot and I explain a way to get the pixels color on the screen and compare it to a certain color, let me get the link for you.
https://www.mpgh.net/forum/33-visual-...-searcher.html
There you go, scroll down a bit and you'll find my post.