Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to use it in the text editor #853

Open
DevYuriOliveira73 opened this issue Apr 24, 2024 · 2 comments
Open

trying to use it in the text editor #853

DevYuriOliveira73 opened this issue Apr 24, 2024 · 2 comments

Comments

@DevYuriOliveira73
Copy link

DevYuriOliveira73 commented Apr 24, 2024

I wanted to know if this library works in specific environments.
For example using this code:

=======================================

import pyautogui
import time

time.sleep(2)

pyautogui.write('UFC Combate', interval= 0.15)
pyautogui.press('enter')

=======================================

The code works in the IDE or browser, however it does not work in the UBUNTO text editor

@darkb0ts
Copy link

may be text editor may not allow external programs to simulate keyboard input or Ubuntu text editor doesn't have focus when the script is running

Run the script with administrative privileges to see if it's a permissions issue. [ chmod +x filename ]

@DevYuriOliveira73
Copy link
Author

Thank you, I will test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants