Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SetUpApp()
- CheckFocus()
- touchDown(2, 960.17, 624.95);
- usleep(89691.71);
- touchUp(2, 960.17, 624.95);
- usleep(4503836.54);
- touchDown(4, 67.21, 200.72);
- usleep(98196.83);
- touchUp(4, 67.21, 200.72);
- usleep(1469303.75);
- touchDown(6, 576.10, 1706.20);
- usleep(64698.12);
- touchUp(6, 576.10, 1706.20);
- usleep(2210070.67);
- touchDown(1, 788.30, 2278.58);
- usleep(91570.46);
- touchUp(1, 788.30, 2278.58);
- usleep(1653559.50);
- touchDown(3, 827.67, 302.68);
- usleep(80714.08);
- touchUp(3, 827.67, 302.68);
- usleep(1569602.25);
- touchDown(5, 655.80, 494.11);
- usleep(55492.96);
- touchUp(5, 655.80, 494.11);
- end
- function newClicker()
- local found = false;
- local loc1 = findColors({{16777215,0,0}, {16777215,-20,18}, {16777215,-41,0}}, 0, {60.11, 182.67, 51.28, 39.35});
- local loc2 = findColors({{12830672,0,0}, {13619929,19,-7}, {12830672,22,4}, {13225429,33,-11}, {12830672,35,14}, {12830672,44,-10}, {12830672,56,11}, {12830672,68,-9}, {12830672,79,-10}, {12830672,94,-11}, {12830672,78,14}, {13028050,95,13}, {12830672,80,2}, {12830672,92,1}, {12830672,118,-10}, {12830672,127,14}, {12830672,138,-10}, {12830672,151,-9}, {12830672,150,12}, {12830672,169,-3}}, 0, {466.13, 1660.25, 194.38, 72.80});
- local loc3 = findColors({{12830928,0,0}, {12830928,47,-1}, {12830928,11,14}, {12830928,24,26}, {12830928,34,14}, {12830928,49,51}, {12830928,-2,53}, {12830928,24,54}, {12830928,-3,28}, {12830928,23,0}, {12830928,48,25}}, 0, {749.32, 2227.61, 77.78, 77.14});
- local loc4 = findColors({{16777215,0,0}, {16777215,-18,-17}, {16777215,14,-16}, {16777215,15,16}, {16777215,-17,15}}, 0, {1008.02, 139.23, 48.09, 43.42});
- local loc5 = findColors({{16448250,0,0}, {16448250,32,-1}, {16448250,33,32}, {16448250,1,31}, {16448250,18,14}}, 0, {1056.58, 139.34, 62.40, 56.21});
- local loc6 = findColors({{16777215,0,0}, {16777215,33,1}, {16777215,32,32}, {16777215,15,16}, {16777215,-1,33}}, 0, {1007.89, 133.43, 49.58, 52.82});
- local arrLocations = {loc1, loc2, loc3, loc4, loc5, loc6}
- for index, loc in ipairs(arrLocations) do
- if #loc > 0 then
- tap(loc[1][1],loc[1][2]);
- found = true;
- startTime = os.time();
- end
- end
- return found;
- end
- function CheckFocus()
- if frontMostAppId() ~= "com.higheroven.cydhtfour" then
- appActivate("com.higheroven.cydhtfour")
- usleep(1000000)
- end
- end
- function DoThis()
- touchDown(2, 777.75, 492.21)
- usleep(86975.88)
- touchUp(2, 777.75, 492.21)
- repeat
- if os.difftime(os.time(), startTime) > checkHowLong then
- appKill("com.higheroven.cydhtfour");
- usleep(3000000);
- startTime = os.time();
- SetUpApp();
- break;
- end
- usleep(1000000)
- until newClicker() == true
- usleep(1000000)
- CheckFocus()
- end
- checkHowLong = 30; -- seconds
- startTime = os.time();
- SetUpApp()
- while true do
- DoThis()
- usleep(1000000)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement