Code: Select all
#p::ExitApp
Loop
{
Sleep 20000
Send {Tab down}
PixelGetColor,col,46,105,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else if
{
Sleep 5
}
PixelGetColor,col,46,124,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,143,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,162,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,180,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,197,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,216,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,234,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,251,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,169,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,287,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,307,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,324,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,342,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,360,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,378,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,396,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,413,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 5
}
PixelGetColor,col,46,431,RGB ;get pixel at 10,10 in RedGreenBlue format
if (col == 0x5f5f5f) { ;if color = 0x5f5f5f hex for Grey
{ msgbox % "Color = " col " `nThis color is Grey"
ExitApp
}
else
{
Sleep 500
}
Sleep 500
Send {Tab up}
Sleep 4000
Sleep 300
Send /
Sleep 300
Send w
Sleep 300
Send a
Sleep 300
Send r
Sleep 300
Send p
Sleep 300
Send {space}
Sleep 300
Send p
Sleep 300
Send a
Sleep 300
Send r
Sleep 300
Send k
Sleep 300
Send {enter}
Sleep 10000
Sleep 300
Send /
Sleep 300
Send w
Sleep 300
Send a
Sleep 300
Send r
Sleep 300
Send p
Sleep 300
Send {space}
Send e
Sleep 300
Send n
Sleep 300
Send d
Sleep 300
Send {enter}
return
}
return ;return script to idle
Sleep 5000
Send {Tab up}