To install pyautogui module run in the terminal this command: (Be sur the path point to the Touchdesigner site-package) pip3 install pyautogui --target /Applications/TouchDesigner.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages In Touchdesigner, verify that the module has been installed by copy past the lines in the IMPORT_PYTHON_MODULES_CHECK DAT: def onCook(scriptOp): try: import subprocess # This is just a placeholder import scriptOp.appendRow(["Subprocess module imported successfully."]) except ImportError as e: scriptOp.appendRow([f"Failed to import subprocess module: {e}"]) try: import pyautogui # This is just a placeholder import scriptOp.appendRow(["PyAutoGUI module imported successfully."]) except ImportError as e: scriptOp.appendRow([f"Failed to import PyAutoGUI module: {e}"]) print("Script executed") return