def fillInnerPicFirst(): mouse.position = (649, 512) mouse.click(Button.left, 1) time.sleep(0.5) mouse.position = (180, 187) mouse.click(Button.left, 1) time.sleep(0.5) mouse.position = (866, 649) mouse.click(Button.left, 2) time.sleep(0.5) mouse.position = (334, 110) mouse.click(Button.left, 2) time.sleep(0.5) mouse.position = (1041, 442) mouse.click(Button.left, 2) mouse.scroll(-100,-500) time.sleep(0.5) mouse.position = (324, 208) mouse.click(Button.left, 2) time.sleep(0.5) mouse.position = (707, 339) mouse.click(Button.left, 2) doKeyboard() time.sleep(0.5) mouse.position = (1074, 739) mouse.click(Button.left, 2)
def fillInnerPicFirst(): mouse.position = (649, 512) mouse.click(Button.left, 1) time.sleep(0.5) mouse.position = (180, 187) mouse.click(Button.left, 1) time.sleep(0.5) mouse.position = (866, 649) mouse.click(Button.left, 2) time.sleep(0.5) mouse.position = (334, 110) mouse.click(Button.left, 2) time.sleep(0.5) mouse.position = (1041, 442) mouse.click(Button.left, 2) mouse.scroll(-100, -500) time.sleep(0.5) mouse.position = (324, 208) mouse.click(Button.left, 2) time.sleep(0.5) mouse.position = (707, 339) mouse.click(Button.left, 2) doKeyboard() time.sleep(0.5) mouse.position = (1074, 739) mouse.click(Button.left, 2)
def fillInnerPicSecond(): mouse.position = (649, 512) mouse.click(Button.left, 1) time.sleep(0.2) altUp() time.sleep(0.2) mouse.position = (323, 668) mouse.click(Button.left, 1) # time.sleep(0.5) down() enter() time.sleep(0.1) doKeyboard() time.sleep(0.5) mouse.position = (1074, 739) mouse.click(Button.left, 2)
def on_click(x, y, button, pressed): # print('{0} at {1}'.format( # 'Pressed' if pressed else 'Released', # (x, y))) # doKeyboardc() # doKeyboardv() print (str(button)) if pressed and str(button) == "Button.left" : # win32api.keybd_event(17,0,0,0) # Control # win32api.keybd_event(65,0,0,0) # A # win32api.keybd_event(65,0,win32con.KEYEVENTF_KEYUP,0) #A # win32api.keybd_event(17,0,win32con.KEYEVENTF_KEYUP,0) #Control doKeyboard() time.sleep(0.1) doKeyboardc() time.sleep(0.1) doKeyboardv() if not pressed: # Stop listener return False