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

Capturing active window with mouse/keyboard events? #7

Closed
reckoner opened this issue Nov 16, 2017 · 3 comments
Closed

Capturing active window with mouse/keyboard events? #7

reckoner opened this issue Nov 16, 2017 · 3 comments

Comments

@reckoner
Copy link

Are there plans to capture the active window that is beneath the mouse/keyboard events? This would help when one wants to ensure that the keyboard is replayed in the correct window.

@boppreh
Copy link
Owner

boppreh commented Nov 16, 2017

I understand this is useful, and I want to work in a library to control windows in the future, but not for this one. Keyboard and mouse only,sorry.

@boppreh boppreh closed this as completed Nov 16, 2017
@reckoner
Copy link
Author

reckoner commented Dec 1, 2017

I can try to do this for myself. Can you point me to a good starting point in your code?

@boppreh
Copy link
Owner

boppreh commented Dec 2, 2017

You'll probably want to send the fake events to the specific window handler. The file _winkeyboard.py has all the code to interact with the Windows API, but I'm afraid there's nothing to interact with a specific handler there.

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