MCPcopy Create free account
hub / github.com/X-PLUG/MobileAgent / tap

Function tap

PC-Agent/run.py:170–176  ·  view source on GitHub ↗
(x, y, count=1)

Source from the content-addressed store, hash-verified

168 # pyautogui.press('enter')
169
170def tap(x, y, count=1):
171 x, y = x//ratio, y//ratio
172 print('Action: click (%d, %d) %d times' % (x, y, count))
173 mouse = Controller()
174 pyautogui.moveTo(x,y)
175 mouse.click(Button.left, count=count)
176 return
177
178def shortcut(key1, key2):
179 if key1 == 'command' or key1 == 'ctrl':

Callers 1

run.pyFile · 0.70

Calls 2

ControllerClass · 0.85
clickMethod · 0.45

Tested by

no test coverage detected