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

Return None if no active window #34

Open
akhilesh-balaji opened this issue Nov 6, 2020 · 0 comments
Open

Return None if no active window #34

akhilesh-balaji opened this issue Nov 6, 2020 · 0 comments

Comments

@akhilesh-balaji
Copy link

Hi, this is really cool!
I'm using it for one of my open-source projects called Textylic: https://akhilesh-balaji.github.io/Textylic/

However, if there is no active window detected, it returns an empty string (pygetwindow.getActiveWindow() method). This is really annoying, because sometimes, there really are windows without no title, which get bundled in with that. So, when there really is an active window, my program thinks there is non, because it returns an empty string.

If there was no active window, it would be nice if the method could return None, or if there was a parameter where I could specify what I wanted returned.

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

1 participant