Тема: AHK: Нужно проверить пиксели на цвет, дабы нажалась нужная кнопка
!vk0x71::
mousegetpos Mx, MY
Pixelgetcolor, Color, %MX%, %MY%, RGB
msgbox x = %MX%, y=%MY%, Color = %Color%
!vk0x45::
Loop
{
Pixelgetcolor, check, 980, 808
if(check = 0xC1C1C1)
{
Pixelgetcolor, up_one, 959, 821
Pixelgetcolor, up_two, 966, 827
Pixelgetcolor, up_three, 953, 827
if (up_one != 0xffffff & up_two != 0xffffff & up_three != 0xffffff) {
sendinput, {Up}
}
Pixelgetcolor, right_one, 963, 824
Pixelgetcolor, right_two, 963, 839
Pixelgetcolor, right_three, 970, 832
if (right_one != 0xffffff & right_two != 0xffffff & right_three != 0xffffff) {
sendinput, {Right}
}
Pixelgetcolor, left_one, 956, 839
Pixelgetcolor, left_two, 950, 832
Pixelgetcolor, left_three, 956, 825
if (left_one != 0xffffff & left_two != 0xffffff & left_three != 0xffffff) {
sendinput, {Left}
}
Pixelgetcolor, down_one, 952, 834
Pixelgetcolor, down_two, 960, 841
Pixelgetcolor, down_three, 967, 835
if (down_one != 0xffffff & down_two != 0xffffff & down_three != 0xffffff) {
sendinput, {Down}
}
}
sendinput, {E}
}
Return
почему не работает ?