Advertisement
Guest User

Perk TV 2.1.1 color

a guest
May 27th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. x = true
  2. runtime = 1200000000
  3. appRun("com.jutera.perktv")
  4. do
  5. local t = 0
  6. while x do
  7. if (getColor(74.7, 131.3)) == 7647726 then
  8. touchDown(8, 74.7, 131.3);
  9. usleep(200000);
  10. touchUp(8, 74.7, 131.3);
  11. break
  12. elseif (getColor(287.5, 87.1)) == 0 then
  13. touchDown(1, 287.5, 87.1);
  14. usleep(200000);
  15. touchUp(1, 287.5, 87.1);
  16. elseif (getColor(70.6, 263.4)) == 16053492 then
  17. touchDown(3, 70.6, 263.4);
  18. usleep(200000);
  19. touchUp(3, 70.6, 263.4);
  20. end
  21. usleep(500000)
  22. t = t + 1
  23. if (t > 60) then
  24. x = false
  25. end
  26. end
  27. end
  28. usleep(500000)
  29. do
  30. local t = 0
  31. while x do
  32. if (getColor(171.5, 112.3)) == 16777215 then
  33. touchDown(5, 171.5, 112.3);
  34. usleep(200000);
  35. touchUp(5, 171.5, 112.3);
  36. break
  37. end
  38. usleep(500000)
  39. t = t + 1
  40. if (t > 20) then
  41. x = false
  42. end
  43. end
  44. end
  45. usleep(500000)
  46. while x do
  47. usleep(runtime)
  48. end
  49. appKill("com.jutera.perktv")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement