From c804477deee56adf189c3ff124cf6dbdb3932c7e Mon Sep 17 00:00:00 2001 From: utkrixx Date: Sat, 3 Oct 2020 13:24:14 +0545 Subject: [PATCH] Added new script using PyAutoGUI to change Tabs --- pyautogui.py | 13 +++++++++++++ pyautoguirequirements.py | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 pyautogui.py create mode 100644 pyautoguirequirements.py diff --git a/pyautogui.py b/pyautogui.py new file mode 100644 index 0000000..c0c7458 --- /dev/null +++ b/pyautogui.py @@ -0,0 +1,13 @@ +import pyautogui +import time + +while True: + initial_mouse = pyautogui.position() + time.sleep(0.5) + final_mouse = pyautogui.position() + print(initial_mouse) + print(final_mouse) + if initial_mouse != final_mouse: + pyautogui.hotkey("alt","tab") + else: + exit diff --git a/pyautoguirequirements.py b/pyautoguirequirements.py new file mode 100644 index 0000000..d2e0430 --- /dev/null +++ b/pyautoguirequirements.py @@ -0,0 +1,12 @@ +keyboard==0.13.5 +MouseInfo==0.1.3 +Pillow==7.2.0 +PyAutoGUI==0.9.50 +PyGetWindow==0.0.8 +PyMsgBox==1.0.8 +pyperclip==1.8.0 +PyRect==0.1.4 +PyScreeze==0.1.26 +python3-xlib==0.15 +PyTweening==1.0.3 +