05-27-2011, 01:10 PM
Gintaras Wrote:Whole area must match exactly? Or color of single pixel? Or colors of several pixels?
colors of several pixels
Gintaras Wrote:Must search for the second area? Or wait? Or simply compare?
search for a second area that matches in colors with first one and click on it (i can add coordinates where the matched area should be, 6 different coordinates)
edit:
QM_Expert Wrote:Macro Macro5
int col = pixel(300 35 "Quick Macros") ;; where on the screen will your first point be
int r g b
ColorToRGB(col &r &g &b)
int col2 = pixel(500 35 "Quick Macros") ;;where on the screen will the second point be
int r2 g2 b2
ColorToRGB(col2 &r2 &g2 &b2)
if col1 = col2
,lef 500 35 ;; put your code here to click
to add 5 more ares i just put col3 - 4 ecc or i just put col 2 as the whole area where buttons are?