-
Notifications
You must be signed in to change notification settings - Fork 430
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
mouse support or pre-release? #51
Comments
Hi Take a look at https://github.com/boppreh/keyboard/blob/master/keyboard/mouse.py It's available as |
I see, thanks a lot. |
The events detected are global. There's no notion of "window", or window handlers. You can call And I'm not sure if it would work with a PyQt program, because the Windows backend that handles keyboard events is its own Windows message-loop (https://github.com/boppreh/keyboard/blob/master/keyboard/_winkeyboard.py#L430). That may or may not interfere with the Qt event loop, you would have to test it. If you do, please post the results, that would be very useful to know. If it doesn't work for PyQt, you may have more luck with a PyQt specific solution, such as https://pypi.python.org/pypi/PyGlobalShortcut/0.2.3 . |
Hi, keyboard can be used with PyQt. But it will freeze input dialog sometimes, and I can't move the mouse. Maybe we should not call SetWindowsHookEx in anothor thread? or can we call SetWindowsHookEx in main thread and use Qt's main loop to do pythoncom.PumpMessages(), just like pyHook do? Thanks. |
I solved the freezing by moving
This seems to fix the problem for me but I haven't done any extensive testing so it might still freeze in some situations. |
What are the requirements to consider mouse for release, at least the Windows version? Since I need mouse hooks for the project I'm working on, I might contribute on the way as well(even though the functionality implemented so far is enough). |
@Doom8890 It's already available as
You can also listen for events, record and replay macros. It's quite similar to It's not "official", and not documented in the main page, because I think |
Good news everyone! I've contacted the current owner of the This is by far the best resolution I could hope for. Stay tune for news. |
I'm not sure if I should post here, open another issue, or wait for the ownership transfer and a new repo. Anyway, I would like a |
Here; 85a4162 Unrelated, I'm getting some errors on the mouse listening parts. I'll have to investigate. |
Awesome, thanks! |
Now available at https://github.com/boppreh/mouse and |
Hi, when can we use this library with mouse support? Looking forward to use it. Thanks.
The text was updated successfully, but these errors were encountered: