выдает ошибку: getColor: Возможно захват экрана не был подключен
код:
Код: Выделить всё
//переменные
Point confirm = Point.get(507,424);
Point play = Point.get(1084,657);
boolean a = false;
int b = getColor(507,424);
//главная функция
void startScreenСapture();
click(play);
int colorConfirm = 1925064;
while(!EXIT){
if(getColor(507, 424) == colorConfirm){
click(confirm);
}
}