Get C++ to monitor a value on screen

I’ve been using google for the past couple hours to find a solution. My problem is: I don’t really know what exactly I have to look for, and as I’m new to programming, I’m a bit confused and might just have overlooked it.

My problem:

I need a program which can monitor a value at a certain position on screen. It then should be able to tell if the value has increased or decreased.

Whatever I put in the searchbar, the result is always input from either keyboard or mouse, which is not what I’m looking for.

Any hint (links or commands) would be greatly appreciated!

Happy new year

Was able to use autohotkey and a bunch of color detectors, problem solved.