Ejemplo n.º 1
0
 def input_data(self, image_temp, string):
     while 1:
         try:
             x, y = ctr().opencv2(image_temp)
             self.mouse.click(x=int(x), y=int(y), button=1, n=1)
             self.keyboard.type_string(string)
             logging.info('input_data:%s' % string)
             break
         except :
             continue
Ejemplo n.º 2
0
 def click_middle_mouse(self, image_temp):
     x, y = ctr().opencv2(image_temp)
     self.mouse.click(x=int(x), y=int(y), button=3, n=1)
     logging.info('click_middle_mouse:%d,%d' % (x, y))
Ejemplo n.º 3
0
 def click_double_left_mouse(self, image_temp):
     x, y = ctr().opencv2(image_temp)
     self.mouse.click(x=int(x), y=int(y), button=1, n=2)
     logging.info('click_double_left_mouse:%d,%d' % (x, y))