Okay, so I've done the above and so far have a If and ElseIf for $box1 up to $box10 as it seems the pixelsearch either skips pixels or DO has slightly different colours for every single box. Can you specify a pixelsearch range of colours, as my script is currently like this (i created random times for wait so D.O.'s logs aint so obvious):
#include <Constants.au3>
#RequireAdmin
HotKeySet("{ESC}", "_quit")
Opt("MouseCoordMode", 1)
While 1
$Box1 = PixelSearch(284,116,1900,1029,0xF5D791)
$Box2 = PixelSearch(284,116,1900,1029,0xBB966C)
$Box3 = PixelSearch(284,116,1900,1029,0xF0FCEC)
$Box4 = PixelSearch(284,116,1900,1029,0xFAEEB2)
$Box5 = PixelSearch(284,116,1900,1029,0xFAFCC3)
$Box6 = PixelSearch(284,116,1900,1029,0xFCFAC5)
$Box7 = PixelSearch(284,116,1900,1029,0xFAFAEB)
$Box8 = PixelSearch(284,116,1900,1029,0xFCFCF8)
$Box9 = PixelSearch(284,116,1900,1029,0xFCFCD7)
$Box10 = PixelSearch(284,116,1900,1029,0xFCF8F5)
If IsArray($Box1) Then
MouseMove($Box1[0],$Box1[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box2) Then
MouseMove($Box2[0],$Box2[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box3) Then
MouseMove($Box3[0],$Box3[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box4) Then
MouseMove($Box4[0],$Box4[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box5) Then
MouseMove($Box5[0],$Box5[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box6) Then
MouseMove($Box6[0],$Box6[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box7) Then
MouseMove($Box7[0],$Box7[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box8) Then
MouseMove($Box8[0],$Box8[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box9) Then
MouseMove($Box9[0],$Box9[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
ElseIf IsArray($Box10) Then
MouseMove($Box10[0],$Box10[1],0)
MouseClick("left")
$howlong = Random(1111,2222,1)
Sleep($howlong)
Else
MouseMove(Random(40,251,1), Random(121,251,1), 0)
MouseClick("left")
$howlong = Random(1111,3333,1)
Sleep($howlong)
EndIf
WEnd
Func _quit()
Exit
EndFunc