Kalmat / PyWinCtl

Cross-Platform module to get info on and control windows on screen
Other
179 stars 19 forks source link

fix: check window visibility before querying data #54

Closed leoshusar closed 1 year ago

leoshusar commented 1 year ago

This is a fix for my issue #53.

Since _findMainWindowHandles() returns only visible windows anyway, I tried to move the visibility check to the top of the winEnumHandler and can confirm this fixed my issue.

Fixes #53

Kalmat commented 1 year ago

Hi! Thank you SO MUCH for finding this issue and providing a solution!!!

leoshusar commented 1 year ago

It took me a while, if I didn't know the original library worked, I would probably gave up with "it's probably impossible" :D No problem!