Exemplo n.º 1
0
 def swipe(self, org: (int, int), tar: (int, int), delay, sfts: (int, int) = (10, 10)):
     original = (org[0] + self.shifts[0], org[1] + self.shifts[1])
     target = (tar[0] + self.shifts[0], tar[1] + self.shifts[1])
     util.swipe(
         util.shifter(original, sfts[0], sfts[1]),
         util.shifter(target, sfts[0], sfts[1]),
         delay)
Exemplo n.º 2
0
 def tap(self, crd: (int, int), i: int = 10, j: int = 10):
     x = crd[0] + self.shifts[0]
     y = crd[1] + self.shifts[1]
     util.tap(util.shifter((x, y), i, j))