Last active
December 15, 2015 06:48
-
-
Save bahostetterlewis/5218484 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32api, win32con, time | |
def click(x, y): | |
win32api.SetCursor((X,y)) | |
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0) | |
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0) | |
def clean(): | |
click(1050, 200) | |
click(1050, 220) | |
def run(): | |
while True: | |
clean() | |
time.sleep(3) | |
if name == "__main__": | |
run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look at the autopy module too.