$Part_1 = 0
$Part_2 = @DesktopWidth / 2
$Part_3 = @DesktopHeight / 2
$Pixel_Search_1 = PixelSearch($Part_1, $Part_1, $Part_2, $Part_3, 0xEA282E, 2)
$Pixel_Search_2 = PixelSearch($Part_2, $Part_1, @DesktopWidth, $Part_3, 0xEA282E, 2)
$Pixel_Search_3 = PixelSearch($Part_1, $Part_3, $Part_2, @DesktopHeight, 0xEA282E, 2)
$Pixel_Search_4 = PixelSearch($Part_2, $Part_3, @DesktopWidth, @DesktopHeight, 0xEA282E, 2)
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
PixelSearch($Pixel_Search_1[0] - 50, $Pixel_Search_1[1] - 50, $Pixel_Search_1[0] + 50, $Pixel_Search_1[1] + 50, 0x2B9CE7, 2) ;blu
If Not @error Then
PixelSearch($Pixel_Search_1[0] - 50, $Pixel_Search_1[1] - 50, $Pixel_Search_1[0] + 50, $Pixel_Search_1[1] + 50, 0x28B24D, 2) ; green
If Not @error Then
PixelSearch($Pixel_Search_1[0] - 50, $Pixel_Search_1[1] - 50, $Pixel_Search_1[0] + 50, $Pixel_Search_1[1] + 50, 0xA244A2, 2); purple
If Not @error Then
MouseClick("left", $Pixel_Search_1[0], $Pixel_Search_1[1])
ConsoleWrite("1" & @CRLF)
EndIf
EndIf
EndIf
PixelSearch($Pixel_Search_2[0] - 50, $Pixel_Search_2[1] - 50, $Pixel_Search_2[0] + 50, $Pixel_Search_2[1] + 50, 0x2B9CE7, 2) ;blue
If Not @error Then
PixelSearch($Pixel_Search_2[0] - 50, $Pixel_Search_2[1] - 50, $Pixel_Search_2[0] + 50, $Pixel_Search_2[1] + 50, 0x28B24D, 2) ; green
If Not @error Then
PixelSearch($Pixel_Search_2[0] - 50, $Pixel_Search_2[1] - 50, $Pixel_Search_2[0] + 50, $Pixel_Search_2[1] + 50, 0xA244A2, 2); purple
If Not @error Then
MouseClick("left", $Pixel_Search_2[0], $Pixel_Search_2[1])
ConsoleWrite("2" & @CRLF)
EndIf
EndIf
EndIf
PixelSearch($Pixel_Search_3[0] - 50, $Pixel_Search_3[1] - 50, $Pixel_Search_3[0] + 50, $Pixel_Search_3[1] + 50, 0x2B9CE7, 2) ;blue
If Not @error Then
PixelSearch($Pixel_Search_3[0] - 50, $Pixel_Search_3[1] - 50, $Pixel_Search_3[0] + 50, $Pixel_Search_3[1] + 50, 0x28B24D, 2) ; green
If Not @error Then
PixelSearch($Pixel_Search_3[0] - 50, $Pixel_Search_3[1] - 50, $Pixel_Search_3[0] + 50, $Pixel_Search_3[1] + 50, 0xA244A2, 2); purple
If Not @error Then
MouseClick("left", $Pixel_Search_3[0], $Pixel_Search_3[1])
ConsoleWrite("3" & @CRLF)
EndIf
EndIf
EndIf
PixelSearch($Pixel_Search_4[0] - 50, $Pixel_Search_4[1] - 50, $Pixel_Search_4[0] + 50, $Pixel_Search_4[1] + 50, 0x2B9CE7, 2) ;blue
If Not @error Then
PixelSearch($Pixel_Search_4[0] - 50, $Pixel_Search_4[1] - 50, $Pixel_Search_4[0] + 50, $Pixel_Search_4[1] + 50, 0x28B24D, 2) ; green
If Not @error Then
PixelSearch($Pixel_Search_4[0] - 50, $Pixel_Search_4[1] - 50, $Pixel_Search_4[0] + 50, $Pixel_Search_4[1] + 50, 0xA244A2, 2); purple
If Not @error Then
MouseClick("left", $Pixel_Search_4[0], $Pixel_Search_4[1])
ConsoleWrite("4" & @CRLF)
EndIf
EndIf
EndIf