{"id":13599593,"url":"https://github.com/tusharnankani/PythonAutoDraw","last_synced_at":"2025-04-10T13:30:49.787Z","repository":{"id":112038328,"uuid":"285299702","full_name":"tusharnankani/PythonAutoDraw","owner":"tusharnankani","description":"Python Library Functions like PyAutoGUI \u0026 time.","archived":false,"fork":false,"pushed_at":"2020-12-08T15:55:22.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T15:35:50.486Z","etag":null,"topics":["library","pyautogui","python","python-library","time"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tusharnankani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-08-05T13:42:13.000Z","updated_at":"2020-12-08T15:55:24.000Z","dependencies_parsed_at":"2023-07-31T06:00:45.387Z","dependency_job_id":null,"html_url":"https://github.com/tusharnankani/PythonAutoDraw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FPythonAutoDraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FPythonAutoDraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FPythonAutoDraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2FPythonAutoDraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tusharnankani","download_url":"https://codeload.github.com/tusharnankani/PythonAutoDraw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225707,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","pyautogui","python","python-library","time"],"created_at":"2024-08-01T17:01:07.458Z","updated_at":"2025-04-10T13:30:47.523Z","avatar_url":"https://github.com/tusharnankani.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Python Auto Draw\n##### THIS SIMPLE PROJECT WAS MADE TO LEARN PYTHON LIBRARY FUNCTIONS LIKE `pyautogui` \u0026 `time`.\n\n### *DEMO*:\n\n![Demo](pyautoguidemo.gif)\n![1](https://user-images.githubusercontent.com/61280281/89520553-a5676000-d7fb-11ea-8e2f-883782ddcbc6.png)\n\n\n### To run it on your PC:\n* Make sure you have Python 3.7.x or Python 3.8.x installed, if not, click [here](https://www.python.org/downloads/) to install! \n* Install PyAutoGUI: `pip install pyautogui`\n* Clone this into your Desktop: `git clone \"https://github.com/tusharnankani/PythonAutoDraw\"`\n* Open Command Line or Terminal \n* Change directory to a respective game: `cd \"Desktop\\PythonAutoDraw\"`\n* Run: `python python-auto-draw.py`\n* Then, switch tabs, and open PAINT. Place the cursor on the white board.\n* *ENJOY*\n\n\n### BASICS:\n\u003ccode\u003e\n\u003e\u003e\u003e import pyautogui\n\u003c/code\u003e\n\n\n`\u003e\u003e\u003e screenWidth, screenHeight = pyautogui.size()` # Get the size of the primary monitor.\n\n`\u003e\u003e\u003e currentMouseX, currentMouseY = pyautogui.position()` # Get the XY position of the mouse.\n\n`\u003e\u003e\u003e pyautogui.moveTo(100, 150)` # Move the mouse to XY coordinates.\n\n`\u003e\u003e\u003e pyautogui.click()`          # Click the mouse.\u003cbr\u003e\n`\u003e\u003e\u003e pyautogui.click(100, 200)`  # Move the mouse to XY coordinates and click it.\u003cbr\u003e\n`\u003e\u003e\u003e pyautogui.click('button.png')` # Find where button.png appears on the screen and click it.\u003cbr\u003e\n\n`\u003e\u003e\u003e pyautogui.move(0, 10)`      # Move mouse 10 pixels down from its current position.\u003cbr\u003e\n`\u003e\u003e\u003e pyautogui.doubleClick()`    # Double click the mouse.\u003cbr\u003e\n`\u003e\u003e\u003e pyautogui.moveTo(500, 500, duration=2, tween=pyautogui.easeInOutQuad)`  # Use tweening/easing function to move mouse over 2 seconds.\u003cbr\u003e\n\n`\u003e\u003e\u003e pyautogui.write('Hello world!', interval=0.25)`  # type with quarter-second pause in between each key\u003cbr\u003e\n`\u003e\u003e\u003e pyautogui.press('esc')`     # Press the Esc key. All key names are in pyautogui.KEY_NAMES\u003cbr\u003e\n\n`\u003e\u003e\u003e pyautogui.keyDown('shift')` # Press the Shift key down and hold it.\u003cbr\u003e\n`\u003e\u003e\u003e pyautogui.press(['left', 'left', 'left', 'left'])` # Press the left arrow key 4 times.\u003cbr\u003e\n`\u003e\u003e\u003e pyautogui.keyUp('shift')`   # Let go of the Shift key.\u003cbr\u003e\n\n`\u003e\u003e\u003e pyautogui.hotkey('ctrl', 'c')` # Press the Ctrl-C hotkey combination.\u003cbr\u003e\n\n`\u003e\u003e\u003e pyautogui.alert('This is the message to display.')` # Make an alert box appear and pause the program until OK is clicked.\u003cbr\u003e\n\n\n\n\n## *REFERENCES*:\n- [PyAutoGUI Docs](https://pypi.org/project/PyAutoGUI/)\n- [More about PyAutoGUI](https://pyautogui.readthedocs.io/en/latest/mouse.html#mouse-drags)\n- [Automate the Boring Stuff with Python](https://automatetheboringstuff.com/chapter18/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharnankani%2FPythonAutoDraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftusharnankani%2FPythonAutoDraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharnankani%2FPythonAutoDraw/lists"}