예제 #1
0
파일: fillPic.py 프로젝트: mktsyy/codes
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)
예제 #2
0
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)
예제 #3
0
파일: fillPic.py 프로젝트: mktsyy/codes
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)
예제 #4
0
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)
예제 #5
0
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