With your guys help I have writen what I needed to so far, it sets the mouse to the location to the color, but I just realized something, its off about X,Y the reason is
CreateDC("DISPLAY",0,0,0) which takes in the Display, so whatever is ontop (which will be great for my screenshot function).
BUt I only want to look inside my window im using.
Does anyone know the correct parameters to look inside the form window?