Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 def click(self):
     self._logger.info("click")
     mousecontrol.mouse_click()
     time.sleep(self.delay)
Beispiel #4
0
 def click(self):
     self._logger.info("click")
     mousecontrol.mouse_click()
     time.sleep(self.delay)