asweigart / asweigart/PyGetWindow

.activate() sometimes throw error

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
422
Forks
73
PR merge metrics
No merged PRs in 30d

Description

![Snipaste_2020-08-16_13-01-47](https://user-images.githubusercontent.com/38245081/90326917-e7915e00-dfc0-11ea-906a-dc145133b459.png)
As the picture shows ,when I active the Typora window ,it throw the error message ,with the yellow flash in the dock icon ,and fail to active.

The bug is not 100% appear , just like 10%? this two lines code run several times , the environment is "Typora" app on the screen ,and lost focus .

When the error appear, the `window`object can normally work ,such as `rewin.minimize()` and `rewin.restore()` works well , only `rewin.activate()`failed.

And it also appear when I active "edge browser" app , and "windows Explorer" app(I'm not sure about this translation name , or "windows file resources explorer"?)

I'm not sure whether it is app conflict occur this ,and now , I use "force to minimize' and "restore" the target window to avoid this problem.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.