I've been trying to get just a pixel color detection to work to wait for a change in a window.
Repeat Until %N1% = 14215660
Delay 5117 Milliseconds
Get Pixel: Window Coords: 1434,113 into %N1%
Text Box Display: Pixel color
Repeat End
Text Box Display: Done
I originally set this up using the mouse locator to get the window coordinates and the color integer. It never detected the color.
Then I added the text display to show me the color it was detecting. It wasn't the same as what the mouse locator had shown me.
So I changed the integer in the Repeat Until to match the color actually detected. Then it seemed to work, but it also falsely detects the color when that part of the window is an entirely different color.
I think the Get Pixel and the mouse locator use different coordinates, and the Repeat Until is broken.