python import pyautogui screen_width, screen_height = pyautogui.size() pyautogui.moveTo(screen_width / 2, screen_height / 2) pyautogui.click() pyautogui.typewrite('Hello, PyAutoGUI!') pyautogui.sleep(1) pyautogui.screenshot('screenshot.png')