ilqar200 Posted March 15 Share Posted March 15 Hello. I am programming some automation on Metatrader 4 (trading software in financial markets).I have attached screenshot to explain. I need to determine the pixel color of one of items(the item with Balance text , see screenshot) in virtual listview control for the reason to not click on that item using ControlClick function. In automation i need to click on above and below items of that item with Balance text. I am able to click on items with ControlClick function. But i dont need to click item with Balance text. I need to skip this item while clicking on items.To be able to skip clicking on item with Balance text i want to use PixelGetColor function to get color of gray area of that item and skip clicking on it. AutoIt window info tool shows me the color of gray area of that item is 0xC8C8C8.In screenshot AutoIt window info tool is set to Coord Mode to window.I used this code to able to determine pixel color of gray area of item with Balance text AutoItSetOption("PixelCoordMode",0) ConsoleWrite(PixelGetColor(809,864,0x000420B4)) But this code showed me in console output 16777215 which is wrong color. 809 and 864 is x and y coordinates of mouse pointer while mouse on the grey area of needed item with Balance text and 0x000420B4 is virtual listview control handle . These parameters is from AutoIt window info tool.I have tested above code with PixelCoordMode setting to 1 and 2 too. But all unsuccessfully. I was not able to identify item with Balance text using PixelGetColor function. So how to identify correctly item with Balance text ? Thanks for answers. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now