scolor(4,0)="101010" scolor(4,1)="040404" scolor(4,2)="040404" scolor(4,3)="040404" scolor(5,0)="080808" scolor(5,1)="080808" scolor(5,2)="040404" scolor(5,3)="0C0C0C" scolor(6,0)="0C0C0C" scolor(6,1)="0C0C0C" scolor(6,2)="080808" scolor(6,3)="080C0C" do while i<7 Do while ii<4 getcolor = GetPixelColor(d2_pyx + 435 + (30 * i), d2_pyy + 330 + (30 * ii)) // TracePrint i&ii&d2_pyx + 435 + (30 * i)&", "&d2_pyy + 330 + (30 * ii) //TracePrint getcolor //Call Plugin.File.WriteFileEx("c:\zdkp_log.txt",i&ii&"="&getcolor) if getcolor = scolor(i,ii) then TracePrint "yes" Else MoveTo d2_pyx + 435 + (30 * i), d2_pyy + 330 + (30 * ii) Delay 100 LeftClick 1 Delay 500 RightClick 1 Delay 500 end if ii=ii+1 Loop Do While ii = 4 ii = 0 i = i + 1 Exit Do Loop Loop end Sub