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
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))
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))