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

getWindowsByTitle.activate gives me an error #685

Open
pavelcalinmihai opened this issue Apr 5, 2022 · 1 comment
Open

getWindowsByTitle.activate gives me an error #685

pavelcalinmihai opened this issue Apr 5, 2022 · 1 comment

Comments

@pavelcalinmihai
Copy link

pavelcalinmihai commented Apr 5, 2022

Hello. I'm receiving "Error code from Windows: 0 - The operation completed successfully."

opera = pyautogui.getWindowsByTitle("Opera")[0]
opera.activate()

Is important to mention that this issue appears often, but not all the time. After 5+ tries to restart the script, is working but of course.

I'm starting to think that my Windows 11 could be the problem, I didn't encounter any issues on 10.

Does someone else have the same issue?

@jl1011
Copy link

jl1011 commented Apr 26, 2022

Until this is fixed, I am now using this instead: asweigart/PyGetWindow#16 (comment)

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