def menu_action(self, action): """action = 1 (first menu item), 2 (second menu item), ...""" self._logger.info("menu_action(%d)" % (action, )) mousecontrol.mouse_click() time.sleep(self.delay) mousecontrol.mouse_warp(self.x + 5, self.y + 5 + (action-1) * YDIST_MENU_ITEM) mousecontrol.mouse_click() time.sleep(self.delay)
def menu_action(self, action): """action = 1 (first menu item), 2 (second menu item), ...""" self._logger.info("menu_action(%d)" % (action, )) mousecontrol.mouse_click() time.sleep(self.delay) mousecontrol.mouse_warp(self.x + 5, self.y + 5 + (action - 1) * YDIST_MENU_ITEM) mousecontrol.mouse_click() time.sleep(self.delay)
def click(self): self._logger.info("click") mousecontrol.mouse_click() time.sleep(self.delay)