def __init__(self, *a, **kw): if len(a) == 2: kw['spec'], kw['static'] = a elif len(a) == 1: kw['spec'] = a[0] a = [] proxy = aenea.proxy_actions.ProxyMouse(*a, **kw) local = dragonfly.Mouse(*a, **kw) AeneaDynStrActionBase.__init__(self, proxy, local, spec=kw.get('spec', None), static=kw.get('static', False))
def click(self): dragonfly.Mouse("left").execute()
def move(self, coordinates): dragonfly.Mouse("[{}, {}]".format(*coordinates)).execute()
def scroll_up(self, n=1): dragonfly.Mouse("wheelup:{}".format(n)).execute()
def scroll_down(self, n=1): dragonfly.Mouse("wheeldown:{}".format(n)).execute()
def click_up(self): dragonfly.Mouse("left:up").execute()
def click_down(self): dragonfly.Mouse("left:down").execute()