BlackScreen on Screenshots using opencv

I’m trying to create a farmbot for a specific game using opencv.
But, all the screenshots I take are black, the game has something blocking the screenshots.
I don’t know how to get around it, I’m looking for something around 14 hours and nothing works.