Created
July 18, 2012 05:49
-
-
Save youminkim/3134458 to your computer and use it in GitHub Desktop.
auto_click
This file contains hidden or 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.SetCursorPos((x,y)) | |
| win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0) | |
| win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0) | |
| for i in range(0, 1000): | |
| click(780, 640) | |
| click(780, 640) | |
| time.sleep(60) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install: http://sourceforge.net/projects/pywin32/files/
reference: