Beyond the Browser: Automating Desktop Applications with PyAutoGUI and Python

Welcome to MasterPythonNow, your gateway to Python mastery!
Ready to transcend the limitations of web automation and dive into controlling your entire desktop with Python? This isn't just about scripting; it's about unlocking a new level of efficiency and control. In this article, we'll show you how to effortlessly automate desktop applications with PyAutoGUI, opening up a world of possibilities. Curious to know how Python can click, type, and navigate any program? Let's get started!
- Introduction to Desktop Automation with Python and PyAutoGUI
- PyAutoGUI Fundamentals: Controlling Your Mouse and Keyboard
- Automating Common Desktop Tasks with PyAutoGUI
-
Frequently Asked Questions
- What is PyAutoGUI and what can it do?
- What types of desktop applications can I automate with PyAutoGUI?
- What are some common use cases for automating desktop applications with PyAutoGUI?
- Is it difficult to learn how to use PyAutoGUI?
- Are there any potential drawbacks or limitations to using PyAutoGUI?
- Final Reflection: Empowering Digital Efficiency
- Unleash Your Inner Automation Master!
Introduction to Desktop Automation with Python and PyAutoGUI
What is PyAutoGUI and Why Use It for Automation?
PyAutoGUI is a powerful Python library designed to control your mouse and keyboard, allowing you to automate interactions with your computer's graphical user interface (GUI). Think of it as a programmable robot that can see your screen and interact with applications just like a human user. This means you can automate virtually any task you would normally perform manually using your mouse and keyboard, regardless of the underlying technology of the application itself. Unlike web automation tools that are confined to browsers, PyAutoGUI operates at the operating system level, making it incredibly versatile for automating desktop applications.
The beauty of PyAutoGUI lies in its simplicity and broad applicability. It doesn't require access to an application's API or internal code. Instead, it uses computer vision techniques to locate elements on the screen and simulate user input. This approach makes it ideal for automating tasks in legacy systems, proprietary software, or any application where direct programmatic access is limited or unavailable. From automating repetitive data entry and report generation to streamlining software testing and system administration tasks, PyAutoGUI opens up a world of possibilities for boosting productivity and efficiency by automating desktop applications with Python.
Target Audience: Who Can Benefit from PyAutoGUI Desktop Automation?
The appeal of PyAutoGUI desktop automation spans across various roles and industries. For office professionals who spend hours on mundane, repetitive tasks like data entry, report generation, or file management, PyAutoGUI offers a way to reclaim valuable time. Imagine automating the process of copying data from spreadsheets into a CRM, or generating daily sales reports with just a script.
Software testers can significantly benefit from PyAutoGUI by automating UI testing. Instead of manually clicking through countless test cases, they can write Python scripts to simulate user interactions and verify application behavior, leading to faster and more comprehensive testing cycles. System administrators can use PyAutoGUI to automate server maintenance tasks, application deployments, and user account management through GUI-based tools, freeing them from repetitive manual interventions.
Even developers can leverage PyAutoGUI to automate tasks within their IDEs or streamline build and deployment processes that involve GUI interactions. In essence, anyone who regularly performs repetitive tasks on their computer can benefit from learning how to automate desktop applications with PyAutoGUI and Python.
Setting Up Your Environment for PyAutoGUI Automation
Before diving into automating desktop applications with PyAutoGUI, you need to ensure your Python environment is properly set up. This involves installing the PyAutoGUI library itself and understanding its dependencies. A well-configured environment is crucial for smooth and effective automation.
Installing PyAutoGUI
Installing PyAutoGUI is straightforward using Python's package installer, pip. Open your command prompt or terminal and execute the following command:
pip install pyautogui
This command will download and install PyAutoGUI and its core dependencies. It's recommended to use a virtual environment to keep your project dependencies isolated and avoid conflicts with other Python projects. If you're new to virtual environments, you can create one using venv (for Python 3.3+) or virtualenv (for older versions) before installing PyAutoGUI. For example, using venv, you would first create a virtual environment in your project directory:
python -m venv venv
And then activate it:
- On Windows:
venv\Scripts\activate - On macOS/Linux:
source venv/bin/activate
Once the virtual environment is activated, you can run the pip install pyautogui command to install PyAutoGUI within this isolated environment. This ensures a clean and manageable setup for your automation projects.
Understanding PyAutoGUI's Dependencies
PyAutoGUI relies on several underlying libraries to perform its magic. While pip generally handles dependency installation automatically, understanding these dependencies can be helpful for troubleshooting and advanced usage. Key dependencies include Pillow (or PIL) for image recognition, PyScreeze for screen capture, PyTweening for mouse movement effects, and mouseinfo for interactive mouse position retrieval.
Pillow (Python Imaging Library) is essential for PyAutoGUI's image recognition capabilities. It allows PyAutoGUI to locate images on the screen and interact with them. PyScreeze provides the functionality to take screenshots of the screen, which is fundamental for PyAutoGUI's visual automation approach. PyTweening is used to create smooth, non-linear mouse movements, mimicking more natural human interaction. While not strictly a dependency for basic functionality, mouseinfo is a useful tool included with PyAutoGUI that allows you to interactively get the coordinates of your mouse cursor, which is invaluable when developing automation scripts. Having these dependencies correctly installed ensures that PyAutoGUI can effectively automate desktop applications by accurately perceiving and interacting with the graphical interface.
PyAutoGUI Fundamentals: Controlling Your Mouse and Keyboard
At the heart of automating desktop applications with PyAutoGUI lies the ability to programmatically control the mouse and keyboard. These are the fundamental building blocks for interacting with any GUI, and PyAutoGUI provides a rich set of functions to manipulate them with precision. Mastering these basics is essential for creating effective automation scripts.
Mastering Mouse Movement with PyAutoGUI
Mouse control is a cornerstone of PyAutoGUI. The library offers various functions to move the mouse cursor, click, drag, and scroll, enabling you to simulate a wide range of mouse interactions. Understanding the different ways to move the mouse is crucial for building robust and adaptable automation scripts.
Moving the Mouse to Specific Coordinates
The most fundamental mouse operation is moving the cursor to a specific location on the screen. PyAutoGUI achieves this with the moveTo() function. This function takes two mandatory arguments: the x and y coordinates on the screen where you want to move the mouse. Screen coordinates in PyAutoGUI, and generally in computer graphics, start at (0, 0) at the top-left corner of the primary screen. The x-coordinate increases as you move right, and the y-coordinate increases as you move down.
For example, pyautogui.moveTo(100, 200) will move the mouse cursor to the pixel located at 100 pixels from the left edge and 200 pixels from the top edge of your screen. Optionally, you can specify a duration argument to control the time it takes for the mouse to reach the target coordinates. pyautogui.moveTo(100, 200, duration=2) will move the mouse to (100, 200) over a period of 2 seconds, creating a smoother, more visually perceptible movement. This precise control over mouse movement is essential for targeting specific UI elements in desktop applications accurately when you automate desktop applications with PyAutoGUI.
Relative Mouse Movements for Dynamic Automation
While moving the mouse to absolute coordinates is useful, sometimes you need to move the mouse relative to its current position. PyAutoGUI provides the moveRel() (or move() with offset arguments) function for this purpose. This is particularly helpful when you want to perform actions based on the current mouse location without needing to know the absolute screen coordinates.
For instance, pyautogui.moveRel(50, -25) will move the mouse cursor 50 pixels to the right and 25 pixels upwards from its current position. Similar to moveTo(), moveRel() also accepts an optional duration argument to control the movement speed. Relative mouse movements are invaluable in scenarios where UI elements shift position dynamically or when you want to perform repetitive actions in a consistent direction, like navigating through menu items or scrolling through a document. They add a layer of flexibility and adaptability to your automation scripts, especially when you automate desktop applications that have dynamic interfaces.
Getting the Mouse Position and Understanding Screen Coordinates
Before you can effectively control the mouse, it's crucial to understand your screen's coordinate system and be able to determine the current mouse position. PyAutoGUI's position() function is your tool for retrieving the current x and y coordinates of the mouse cursor. Calling pyautogui.position() returns a Point object with x and y attributes representing the mouse's current position.
Understanding screen coordinates is fundamental for accurate mouse control. As mentioned earlier, (0, 0) is the top-left corner of the primary screen. To determine the resolution of your primary screen, you can use pyautogui.size(), which returns a tuple containing the width and height in pixels. For example, if pyautogui.size() returns (1920, 1080), it means your screen resolution is 1920 pixels wide and 1080 pixels high. Using pyautogui.position() in conjunction with pyautogui.size() allows you to map out your screen and accurately target UI elements for automation. Tools like mouseinfo (included with PyAutoGUI) can also be very helpful for interactively finding the coordinates of specific points on your screen, making it easier to pinpoint locations for your automation scripts when you automate desktop applications with PyAutoGUI.
Keyboard Control with PyAutoGUI: Typing and Hotkeys
Complementing mouse control, keyboard automation is the other essential half of interacting with desktop applications. PyAutoGUI provides functions to simulate typing text, pressing individual keys, and executing complex keyboard shortcuts, allowing you to automate text input, menu navigation, and application commands.
Typing Strings of Text with PyAutoGUI
The simplest form of keyboard automation is typing text. PyAutoGUI's typewrite() function allows you to simulate typing strings of characters. pyautogui.typewrite('Hello, World!') will type the string "Hello, World!" into the currently active window, as if you were typing it manually.
typewrite() can also accept a list of strings as an argument, typing each string sequentially. Furthermore, you can introduce delays between each character typed by using the interval keyword argument. pyautogui.typewrite('slow text', interval=0.25) will type "slow text" with a 0.25-second pause between each character. This can be useful for applications that might not register rapid input correctly or to make the automation appear more human-like. When you automate desktop applications that involve text input, typewrite() is your primary tool for simulating keyboard typing.
Pressing and Releasing Specific Keys
Beyond typing strings, you often need to press specific keys like Enter, Tab, Shift, or function keys. PyAutoGUI provides the press() function for this. pyautogui.press('enter') will simulate pressing and releasing the Enter key. You can find a comprehensive list of key names that PyAutoGUI recognizes in its documentation.
You can also press and release multiple keys in sequence by passing a list of key names to press(). For example, pyautogui.press(['tab', 'tab', 'enter']) simulates pressing Tab twice and then Enter. For more granular control, PyAutoGUI offers keyDown() and keyUp() functions. pyautogui.keyDown('shift') presses and holds down the Shift key, and pyautogui.keyUp('shift') releases it. These functions are particularly useful for creating complex keyboard shortcuts or simulating actions that require holding down keys.
Combining Keys for Hotkey Automation (e.g., Ctrl+C, Ctrl+V)
Hotkey automation is crucial for efficient desktop application control. PyAutoGUI simplifies simulating keyboard shortcuts like Ctrl+C (copy), Ctrl+V (paste), Ctrl+S (save), and many others using the hotkey() function. pyautogui.hotkey('ctrl', 'c') will simulate pressing and releasing Ctrl and then C, effectively performing a copy operation.
hotkey() can take multiple key names as arguments, simulating more complex shortcuts. For example, pyautogui.hotkey('ctrl', 'shift', 'esc') simulates the Ctrl+Shift+Esc shortcut to open the Task Manager on Windows. Using hotkey() significantly simplifies automating actions that are triggered by keyboard shortcuts, making your automation scripts more concise and readable. Mastering keyboard control, including typing, key presses, and hotkeys, is essential for effectively automating a wide range of tasks when you automate desktop applications with PyAutoGUI.
Automating Common Desktop Tasks with PyAutoGUI
With a solid grasp of mouse and keyboard control, you can begin automating a wide range of common desktop tasks. PyAutoGUI's capabilities extend to window management, image recognition, and file system interactions, enabling you to build sophisticated automation workflows.
Window Management Automation
Managing windows programmatically is often a key requirement when automating desktop applications. PyAutoGUI provides functions to activate, move, resize, minimize, maximize, and close windows, giving you control over the application's interface itself.
Activating and Focusing Specific Windows
To interact with a specific application window, you first need to bring it to the foreground, or "activate" it. PyAutoGUI's getWindow() and getActiveWindow() functions, combined with activate(), allow you to focus on the desired window. pyautogui.getActiveWindow() returns the currently active window object. You can also get a window object by its title using pyautogui.getWindowsWithTitle('Window Title'), which returns a list of window objects matching the title.
Once you have a window object, you can use window.activate() to bring that window to the front and give it focus. For example, if you want to automate tasks in a window titled "My Application", you could use:
windows = pyautogui.getWindowsWithTitle('My Application')
if windows:
my_window = windows[0] # Assuming the first window with the title is the one you want
my_window.activate()
else:
print("Window with title 'My Application' not found.")
Activating the correct window is crucial before performing mouse or keyboard actions within that application, ensuring that your automation script interacts with the intended target when you automate desktop applications.
Moving and Resizing Windows Programmatically
PyAutoGUI allows you to programmatically move and resize application windows. Window objects obtained using getWindow() or getActiveWindow() have moveTo() and resizeTo() methods for this purpose. window.moveTo(x, y) moves the top-left corner of the window to the screen coordinates (x, y). window.resizeTo(width, height) resizes the window to the specified width and height in pixels.
For example, to move the active window to position (100, 100) and resize it to 800x600, you could use:
active_window = pyautogui.getActiveWindow()
if active_window:
active_window.moveTo(100, 100)
active_window.resizeTo(800, 600)
else:
print("No active window found.")
Programmatically moving and resizing windows can be useful for organizing your workspace during automation, ensuring that application windows are positioned optimally for image recognition or to enhance the visual clarity of automated processes.
Automating Window Closing and Minimizing
PyAutoGUI provides methods to programmatically control window states, including minimizing, maximizing, and closing windows. Window objects have methods like minimize(), maximize(), and close() to perform these actions. window.minimize() minimizes the window, window.maximize() maximizes it to fill the screen, and window.close() attempts to close the window.
For instance, to close all windows with the title "Untitled - Notepad", you could iterate through the list of window objects and call close() on each:
notepad_windows = pyautogui.getWindowsWithTitle('Untitled - Notepad')
for window in notepad_windows:
window.close()
Note that window.close() might not forcefully close an application if it prompts for saving unsaved work. To force-close an application, you might need to use operating system-specific commands or explore other libraries that offer process management capabilities. However, for standard window management tasks like minimizing, maximizing, and attempting to close windows gracefully, PyAutoGUI provides convenient and cross-platform solutions when you automate desktop applications.
Image Recognition in PyAutoGUI for Robust Automation
One of PyAutoGUI's most powerful features is its ability to use image recognition to locate elements on the screen. This allows your automation scripts to interact with applications based on visual cues, making them more robust and adaptable to UI changes compared to coordinate-based automation alone.
Locating Images on the Screen
PyAutoGUI's locateOnScreen() function is the cornerstone of image recognition. It takes a path to an image file as an argument and searches the screen for that image. If the image is found, locateOnScreen() returns a tuple of four integers: (left, top, width, height) representing the bounding box of the found image on the screen. If the image is not found, it returns None.
For example, if you have an image file named "button.png" that represents a button in your application, you can locate it using:
button_location = pyautogui.locateOnScreen('button.png')
if button_location:
print("Button found at:", button_location)
else:
print("Button image not found on screen.")
It's crucial to provide accurate and well-cropped images for reliable image recognition. The image you provide should be a clear and distinct representation of the UI element you want to locate. locateOnScreen() performs pixel-by-pixel matching, so the image you search for should closely resemble the element on the screen for successful detection when you automate desktop applications with PyAutoGUI.
Clicking Based on Image Recognition
Once you've located an image using locateOnScreen(), you can use click() to interact with it. The center() function, applied to the bounding box tuple returned by locateOnScreen(), gives you the coordinates of the center of the image. You can then pass these coordinates to pyautogui.click() to click on the center of the located image.
Combining image location and clicking, you can automate actions based on visual elements. For instance, to click on the "button.png" image if it's found on screen:
button_location = pyautogui.locateOnScreen('button.png')
if button_location:
button_center = pyautogui.center(button_location)
pyautogui.click(button_center)
else:
print("Button image not found, cannot click.")
This approach makes your automation scripts more resilient to changes in screen resolution or application window positioning, as they are based on visual identification rather than fixed screen coordinates. Clicking based on image recognition is a powerful technique for robustly automating desktop applications.
Handling Situations Where Images Are Not Found
Robust automation scripts must gracefully handle situations where images are not found on the screen. locateOnScreen() returns None if the image is not found, and it's essential to check for this None value in your scripts to prevent errors.
Always include conditional checks after calling locateOnScreen() to handle cases where the image search fails. Instead of directly trying to click on a potentially non-existent location, check if locateOnScreen() returned a valid location before proceeding. You can implement error handling logic such as logging a message, retrying the image search after a short delay, or taking alternative actions if the image is not found after multiple attempts.
For example, to retry image location a few times before giving up:
button_location = None
for i in range(3): # Retry up to 3 times
button_location = pyautogui.locateOnScreen('button.png')
if button_location:
break # Image found, exit retry loop
time.sleep(1) # Wait for 1 second before retrying
if button_location:
button_center = pyautogui.center(button_location)
pyautogui.click(button_center)
else:
print("Button image not found after multiple retries, automation failed at this step.")
Implementing proper error handling for image recognition failures is crucial for creating reliable and production-ready automation scripts when you automate desktop applications with PyAutoGUI.
Automating File Management Tasks
While PyAutoGUI primarily focuses on GUI automation, it can also be used in conjunction with Python's built-in file system libraries to automate file management tasks that involve GUI interactions, such as using file explorer or file dialogs within applications.
Creating and Deleting Files and Folders
While PyAutoGUI itself doesn't directly create or delete files and folders in the file system, you can use Python's os module for these operations and then use PyAutoGUI to interact with GUI-based file managers if needed. For example, you can create a folder using os.makedirs() and then use PyAutoGUI to navigate to that folder in a file explorer window to perform further actions.
Similarly, you can delete files or folders using os.remove() or os.rmdir() respectively. If you need to automate file creation or deletion within a specific application through its GUI (e.g., creating a new document within a text editor), you would use PyAutoGUI's mouse and keyboard control to interact with the application's menus and dialogs to achieve this. For direct file system operations, Python's os module is the more appropriate tool, and PyAutoGUI can be used to bridge the gap when GUI interactions are required in file management workflows.
Copying and Moving Files using PyAutoGUI
Automating file copying and moving, especially through GUI file explorers, is a common task. PyAutoGUI can be used to simulate the steps involved in copying or moving files using mouse and keyboard actions. This typically involves:
- Selecting the file(s) or folder(s): Using mouse clicks and keyboard shortcuts like
Ctrl+A(select all) orShift+click(range selection). - Initiating the copy or move operation: Using context menus (right-click), menu items, or keyboard shortcuts like
Ctrl+C(copy) andCtrl+X(cut). - Navigating to the destination folder: Using file explorer navigation, address bar input, or tree view interactions.
- Pasting or completing the move operation: Using
Ctrl+V(paste) or confirming move operations through dialogs.
For instance, to automate copying a file named "my_document.txt" from the desktop to the "Documents" folder using Windows File Explorer, you would write a PyAutoGUI script that simulates these steps:
import pyautogui
import time
# Open File Explorer
pyautogui.hotkey('win', 'e')
time.sleep(1)
# Navigate to Desktop (assuming it's a Quick Access location)
pyautogui.typewrite('Desktop')
pyautogui.press('enter')
time.sleep(1)
# Select the file (assuming it's visible and unique on the desktop)
file_location = pyautogui.locateOnScreen('my_document_icon.png') # Image of the file icon
if file_location:
file_center = pyautogui.center(file_location)
pyautogui.click(file_center)
time.sleep(0.5)
# Copy the file (Ctrl+C)
pyautogui.hotkey('ctrl', 'c')
time.sleep(0.5)
# Navigate to Documents folder (assuming it's a Quick Access location)
pyautogui.typewrite('Documents')
pyautogui.press('enter')
time.sleep(1)
# Paste the file (Ctrl+V)
pyautogui.hotkey('ctrl', 'v')
print("File copied successfully.")
else:
print("File 'my_document.txt' icon not found on desktop.")
This example demonstrates how PyAutoGUI can automate file copy operations by simulating user interactions with the GUI. Similar approaches can be used to automate file moving and other file management tasks that involve GUI applications.
Automating File Renaming
File renaming can also be automated using PyAutoGUI, especially when done through GUI file explorers or application-specific file dialogs. The process typically involves:
- Selecting the file to rename: Using mouse clicks to select the file in a file explorer or application's file list.
- Initiating the rename operation: Often done by right-clicking and selecting "Rename" from the context menu or pressing the
F2key. - Typing the new file name: Using
pyautogui.typewrite()to enter the desired new name. - Confirming the rename: Pressing
Enteror clicking an "OK" button in a dialog.
For example, to rename a file named "old_name.txt" to "new_name.txt" on the desktop using Windows File Explorer:
import pyautogui
import time
# Open File Explorer (if not already open)
pyautogui.hotkey('win', 'e')
time.sleep(1)
# Navigate to Desktop
pyautogui.typewrite('Desktop')
pyautogui.press('enter')
time.sleep(1)
# Locate and select the file (using image recognition of the file icon)
old_file_icon_location = pyautogui.locateOnScreen('old_file_icon.png')
if old_file_icon_location:
old_file_center = pyautogui.center(old_file_icon_location)
pyautogui.rightClick(old_file_center) # Right-click to open context menu
time.sleep(0.5)
# Navigate to "Rename" in the context menu (using keyboard navigation - down arrow and enter)
pyautogui.press(['down', 'down', 'down', 'down', 'down', 'down', 'enter']) # Approximate down presses to reach "Rename"
time.sleep(0.5)
# Type the new file name
pyautogui.typewrite('new_name.txt')
pyautogui.press('enter') # Confirm rename
print("File renamed successfully.")
else:
print("File 'old_name.txt' icon not found on desktop.")
This example demonstrates automating file renaming through GUI interactions. Automating file management tasks with PyAutoGUI often involves a combination of mouse and keyboard control to simulate user actions within file explorer or application-specific file dialogs. While direct file system operations are generally more efficient for programmatic file management, PyAutoGUI provides a way to automate these tasks through the GUI when necessary.
Frequently Asked Questions
What is PyAutoGUI and what can it do?
PyAutoGUI is a Python library that allows you to control your mouse and keyboard to automate interactions with desktop applications. It enables you to write scripts to automate tasks you would normally perform manually.
What types of desktop applications can I automate with PyAutoGUI?
You can automate almost any desktop application with a graphical user interface (GUI). This includes software like web browsers, office suites, image editors, and even games, provided they are not specifically designed to prevent automation.
What are some common use cases for automating desktop applications with PyAutoGUI?
Common use cases include automating data entry, automating repetitive tasks, creating automated testing scripts, and even building simple bots for games or other applications.
Is it difficult to learn how to use PyAutoGUI?
PyAutoGUI is generally considered easy to learn, especially if you already have some Python programming experience. MasterPythonNow.com offers tutorials and exercises to help you get started quickly.
Are there any potential drawbacks or limitations to using PyAutoGUI?
PyAutoGUI relies on screen coordinates, so it can be sensitive to changes in screen resolution or application layout. Also, it can be less reliable when dealing with applications that have dynamic or complex interfaces.
Final Reflection: Empowering Digital Efficiency
The journey into automating desktop applications with PyAutoGUI, as explored in this article, highlights a crucial shift in how we interact with technology. The ability to automate repetitive tasks is no longer a luxury, but a necessity for maximizing productivity and minimizing human error in our increasingly digital world. This skill empowers individuals and organizations alike to reclaim valuable time and resources, focusing instead on strategic initiatives and creative problem-solving.
This exploration of PyAutoGUI has profoundly influenced my perspective on the potential of automation, moving beyond simple web-based tasks to encompass the entire desktop environment. It underscores the importance of accessible automation tools for everyone, regardless of their technical background. The greatest use of a life is to spend it on something that will outlast it.
- William James. This quote resonates deeply, as automating mundane tasks allows us to invest our time and energy into endeavors that truly matter, leaving a lasting impact.
Now, I invite you to consider the possibilities that automation unlocks in your own life. What repetitive tasks consume your time and energy? How could PyAutoGUI, or similar tools, free you to pursue more meaningful and impactful activities? Embrace the power of automation, and discover the transformative potential it holds for your personal and professional growth.
Unleash Your Inner Automation Master!
Thanks for exploring the power of PyAutoGUI with us! You've discovered a new world of automation possibilities beyond the browser. Now, let's put that knowledge into action and elevate your Python skills.
Here's how to get started:
- Start automating your most tedious desktop tasks today! Think repetitive data entry, file organization, or anything that drains your energy. Even a small win will boost your confidence!
- Explore PyAutoGUI's advanced features like image recognition and pixel manipulation. MasterPythonNow.com offers more tutorials to help you master these techniques.
- Share your impressive automation scripts with the MasterPythonNow community! Let's collaborate, learn from each other, and inspire even more innovative projects.
What surprising desktop task will you automate first with PyAutoGUI? Share your ideas in the comments below!
