Release Page:
https://github.com/SethWiiPlaza/autotouch-script-dist/releases/tag/Waze
https://github.com/SethWiiPlaza/autotouch-script-dist/releases/tag/Waze
Code:
const { touchDown, touchMove, touchUp, usleep, appActivate, keyDown, keyUp } = at;
appActivate("com.waze.iphone");
const performTouchAction = (identifier, x, y, duration, speed = 1) => {
touchDown(identifier, x, y);
usleep(duration / speed);
touchUp(identifier, x, y);
};
const playSequence = (speed = 1) => {
performTouchAction(6, 1610.68, 576.87, 182625.33, speed); usleep(2983780.71 / speed);
performTouchAction(1, 757.23, 179.46, 108239.38, speed); usleep(2133326.08 / speed);
performTouchAction(3, 197.48, 407.43, 165814.29, speed); usleep(2292512.04 / speed);
performTouchAction(4, 1437.73, 445.42, 132249.54, speed); usleep(6100467.25 / speed);
performTouchAction(2, 1618.86, 462.88, 200112.17, speed); usleep(1641633.08 / speed);
performTouchAction(1, 791.00, 179.46, 165666.96, speed); usleep(1601129.17 / speed);
performTouchAction(3, 181.12, 408.45, 141040.42, speed); usleep(1875325.50 / speed);
performTouchAction(5, 1408.07, 376.62, 140967.54, speed);
}
playSequence(1.5);
usleep(1000000);
playSequence(1.5);