Home > database >  pyautogui how do i write outside my code editor
pyautogui how do i write outside my code editor

Time:10-08

i am trying to make a macro and i have run into some problems. whenever i try to make it type something outside vscode the program runs but it doesn't type anything. it works fine typing inside vscode though so i know it works. i have run into this issue with another module pynput as well i also tried adjusting the permissions but it didn't do anything different.

Here's my code:

import pyautogui
import time
time.sleep(5)
pyautogui.write("Hello World! ", interval=0.01)

CodePudding user response:

The program was working exactly as intended it was just not interacting with my os properly

  • Related