There was an error while loading. Please reload this page.
1 parent 577651c commit 7ca8c12Copy full SHA for 7ca8c12
scripts/Automate OS/Automate_OS.py
@@ -0,0 +1,19 @@
1
+# Automate Win, Mac and Linux
2
+# pip install PyAutoGUI
3
+import pyautogui as py
4
+# Mouse Movements
5
+py.moveTo(100, 100)
6
+py.moveTo(200, 200, duration=1)
7
+py.click(100, 100)
8
+py.doubleClick(200, 200)
9
+# Keyboard Inputs
10
+py.write('Hello World!', interval=0.25)
11
+py.press('enter')
12
+py.hotkey('ctrl', 'c')
13
+py.keyDown('shift')
14
+py.keyUp('shift')
15
+# Screen Automation
16
+img = py.screenshot('screenshot.jpg')
17
+img.save('screenshot.jpg')
18
+loc = py.locationsOnScreen('icon.jpg')
19
+print(loc)
scripts/Automate OS/Readme.md
@@ -0,0 +1,4 @@
+# Automating Operating System Using Python
+
+# Dependecies
+ pip install PyAutoGUI
0 commit comments