CODE:
win w1=window ("1", "Chrome_WidgetWin_1", -1);
activate(w1);
pause(500);
sendmouse (LEFT, 174, 90, w1);
pause(3000);
sendmouse (LEFT, 367, 276, w1);
pause(500);
sendmouse (LEFT, 367, 276, w1);
win w2=window ("2", "Chrome_WidgetWin_1", -1);
activate(w2);
pause(500);
sendmouse (LEFT, 174, 90, w2);
pause(3000);
sendmouse (LEFT, 367, 276, w2);
pause(500);
sendmouse (LEFT, 367, 276, w2);
win w3=window ("3", "Chrome_WidgetWin_1", -1);
activate(w3);
pause(500);
sendmouse (LEFT, 174, 90, w3);
pause(3000);
sendmouse (LEFT, 367, 276, w3);
pause(500);
sendmouse (LEFT, 367, 276, w3);
win w4=window ("4", "Chrome_WidgetWin_1", -1);
activate(w4);
pause(500);
sendmouse (LEFT, 174, 90, w4);
pause(3000);
sendmouse (LEFT, 367, 276, w4);
pause(500);
sendmouse (LEFT, 367, 276, w4);
win w5=window ("5", "Chrome_WidgetWin_1", -1);
activate(w5);
pause(500);
sendmouse (LEFT, 174, 90, w5);
pause(3000);
sendmouse (LEFT, 367, 276, w5);
pause(500);
sendmouse (LEFT, 367, 276, w5);
win w6=window ("6", "Chrome_WidgetWin_1", -1);
activate(w6);
pause(500);
sendmouse (LEFT, 174, 90, w6);
pause(3000);
sendmouse (LEFT, 367, 276, w6);
pause(500);
sendmouse (LEFT, 367, 276, w6);
win w7=window ("7", "Chrome_WidgetWin_1", -1);
activate(w7);
pause(500);
sendmouse (LEFT, 174, 90, w7);
pause(3000);
sendmouse (LEFT, 367, 276, w7);
pause(500);
sendmouse (LEFT, 367, 276, w7);
win w8=window ("8", "Chrome_WidgetWin_1", -1);
activate(w8);
pause(500);
sendmouse (LEFT, 174, 90, w8);
pause(3000);
sendmouse (LEFT, 367, 276, w8);
pause(500);
sendmouse (LEFT, 367, 276, w8);
win w9=window ("9", "Chrome_WidgetWin_1", -1);
activate(w9);
pause(500);
sendmouse (LEFT, 174, 90, w9);
pause(3000);
sendmouse (LEFT, 367, 276, w9);
pause(500);
sendmouse (LEFT, 367, 276, w9);
win w10=window ("10", "Chrome_WidgetWin_1", -1);
activate(w10);
pause(500);
sendmouse (LEFT, 174, 90, w10);
pause(3000);
sendmouse (LEFT, 367, 276, w10);
pause(500);
sendmouse (LEFT, 367, 276, w10);
Как сделать чтоб это было примерно вот так :
win w1=window ("1", "Chrome_WidgetWin_1", -1);
win w1=window ("2", "Chrome_WidgetWin_1", -1);
win w1=window ("3", "Chrome_WidgetWin_1", -1);
win w1=window ("4", "Chrome_WidgetWin_1", -1);
win w1=window ("5", "Chrome_WidgetWin_1", -1);
win w1=window ("6", "Chrome_WidgetWin_1", -1);
win w1=window ("7", "Chrome_WidgetWin_1", -1);
win w1=window ("8", "Chrome_WidgetWin_1", -1);
win w1=window ("9", "Chrome_WidgetWin_1", -1);
win w1=window ("10", "Chrome_WidgetWin_1", -1);
activate(?); //здесь надо активировать каждое окно по очереди и дальше нажимать кнопки на мыши
pause(500);
sendmouse (LEFT, 174, 90, ?);
pause(3000);
sendmouse (LEFT, 367, 276, ?);
pause(500);
sendmouse (LEFT, 367, 276, ?);
win w1=window ("1", "Chrome_WidgetWin_1", -1);
activate(w1);
pause(500);
sendmouse (LEFT, 174, 90, w1);
pause(3000);
sendmouse (LEFT, 367, 276, w1);
pause(500);
sendmouse (LEFT, 367, 276, w1);
win w2=window ("2", "Chrome_WidgetWin_1", -1);
activate(w2);
pause(500);
sendmouse (LEFT, 174, 90, w2);
pause(3000);
sendmouse (LEFT, 367, 276, w2);
pause(500);
sendmouse (LEFT, 367, 276, w2);
win w3=window ("3", "Chrome_WidgetWin_1", -1);
activate(w3);
pause(500);
sendmouse (LEFT, 174, 90, w3);
pause(3000);
sendmouse (LEFT, 367, 276, w3);
pause(500);
sendmouse (LEFT, 367, 276, w3);
win w4=window ("4", "Chrome_WidgetWin_1", -1);
activate(w4);
pause(500);
sendmouse (LEFT, 174, 90, w4);
pause(3000);
sendmouse (LEFT, 367, 276, w4);
pause(500);
sendmouse (LEFT, 367, 276, w4);
win w5=window ("5", "Chrome_WidgetWin_1", -1);
activate(w5);
pause(500);
sendmouse (LEFT, 174, 90, w5);
pause(3000);
sendmouse (LEFT, 367, 276, w5);
pause(500);
sendmouse (LEFT, 367, 276, w5);
win w6=window ("6", "Chrome_WidgetWin_1", -1);
activate(w6);
pause(500);
sendmouse (LEFT, 174, 90, w6);
pause(3000);
sendmouse (LEFT, 367, 276, w6);
pause(500);
sendmouse (LEFT, 367, 276, w6);
win w7=window ("7", "Chrome_WidgetWin_1", -1);
activate(w7);
pause(500);
sendmouse (LEFT, 174, 90, w7);
pause(3000);
sendmouse (LEFT, 367, 276, w7);
pause(500);
sendmouse (LEFT, 367, 276, w7);
win w8=window ("8", "Chrome_WidgetWin_1", -1);
activate(w8);
pause(500);
sendmouse (LEFT, 174, 90, w8);
pause(3000);
sendmouse (LEFT, 367, 276, w8);
pause(500);
sendmouse (LEFT, 367, 276, w8);
win w9=window ("9", "Chrome_WidgetWin_1", -1);
activate(w9);
pause(500);
sendmouse (LEFT, 174, 90, w9);
pause(3000);
sendmouse (LEFT, 367, 276, w9);
pause(500);
sendmouse (LEFT, 367, 276, w9);
win w10=window ("10", "Chrome_WidgetWin_1", -1);
activate(w10);
pause(500);
sendmouse (LEFT, 174, 90, w10);
pause(3000);
sendmouse (LEFT, 367, 276, w10);
pause(500);
sendmouse (LEFT, 367, 276, w10);
Как сделать чтоб это было примерно вот так :
win w1=window ("1", "Chrome_WidgetWin_1", -1);
win w1=window ("2", "Chrome_WidgetWin_1", -1);
win w1=window ("3", "Chrome_WidgetWin_1", -1);
win w1=window ("4", "Chrome_WidgetWin_1", -1);
win w1=window ("5", "Chrome_WidgetWin_1", -1);
win w1=window ("6", "Chrome_WidgetWin_1", -1);
win w1=window ("7", "Chrome_WidgetWin_1", -1);
win w1=window ("8", "Chrome_WidgetWin_1", -1);
win w1=window ("9", "Chrome_WidgetWin_1", -1);
win w1=window ("10", "Chrome_WidgetWin_1", -1);
activate(?); //здесь надо активировать каждое окно по очереди и дальше нажимать кнопки на мыши
pause(500);
sendmouse (LEFT, 174, 90, ?);
pause(3000);
sendmouse (LEFT, 367, 276, ?);
pause(500);
sendmouse (LEFT, 367, 276, ?);