ControlClick("Window name", "", , , 1, 278, 231)
$pos = MouseGetPos()
if $color NOT = PixelGetColor($pos[0], $pos[1])
I didn't even test this so it might not even work.. but is there a better way of checking the pixel color on a certain coordinate relative to the window you're working on? (in case the user moves the window, I want it to still work)