satanikut 0 Posted September 20, 2010 I'm new in AutoIt therefore this is for sure an easy question: I cannot give Autoit the relative coordinates of my window because it refers always to the absolute ones. For example: AutoItSetOption("PixelCoordMode",0) ;relative coords to the defined window WinActivate("DoubleRainbow Mozilla Firefox") $register=PixelGetColor(616,556) Exit $register ...doesn't return the relative 616,556 pixel color of the browser's window "DoubleRainbow", but the p. color of the window that is in the coords 616,556 of the desktop. Help a newb please Share this post Link to post Share on other sites
Bert 1,430 Posted September 20, 2010 Look at the command AutoItSetOption specially the setting in that command: "PixelCoordMode" The Vollatran project My blog: http://www.vollysinterestingshit.com/ Share this post Link to post Share on other sites
satanikut 0 Posted September 20, 2010 Look at the command AutoItSetOptionspecially the setting in that command: "PixelCoordMode"I tried PixelCoordMode 0, 1 and 2 but autoit always return the same color even if it's changed, I'm blocked here ps. It's a flash application in a Firefox window Share this post Link to post Share on other sites
satanikut 0 Posted September 21, 2010 Ok it's not a problem of absolute/relative coords, but the point is that PixelGetColor return always the same color in a flash window... Share this post Link to post Share on other sites
seandisanti 6 Posted September 21, 2010 Ok it's not a problem of absolute/relative coords, but the point is that PixelGetColor return always the same color in a flash window... no it doesn't, see for yourself While 1 Sleep(20) $pos = MouseGetPos() ToolTip(PixelGetColor($pos[0]+1,$pos[1]+1),$pos[0]+10,$pos[1]+10) WEnd Share this post Link to post Share on other sites
satanikut 0 Posted September 21, 2010 You are right, it returns the correct color Share this post Link to post Share on other sites
seandisanti 6 Posted September 21, 2010 You are right, it returns the correct color you can add the coords to that tooltip too, so you know what reference you need to give it to see the color Share this post Link to post Share on other sites