Your example for FindText().PixelSearch() in the tutorial, you show that its possible to search for multiple colours in one invocation of FindText:
Code: Select all
ok := FindText().PixelSearch(,,,,,, "0xFFFFFF|0x000000") ; FFFFFF = black, 000000 = white
FindText().MouseTip(ok[1].x, ok[1].y) ; Displays first found black or white pixel
Code: Select all
FindText(X, Y, 33-150000, 137-150000, 33+150000, 137+150000, 0, 0, "|<SaveButton>[i]150$38.0000008|<LoadButton>[/i]138$39.0000D004")
Code: Select all
CoordMode, mouse, screen
CoordMode, Pixel, Screen
;ok := FindText().PixelSearch(,,10,10,100,100,"0x00FF00|0xFF0000",,,1) ;0x00FF00 = green | 0xFF0000 = red
ok := FindText().PixelSearch(,,10,10,100,100,"<green>0x00FF00|<red>0xFF0000",,,1) ;0x00FF00 = green | 0xFF0000 = red
I cant seem to figure out where I am going wrong. I would appreciate any help