Results 72 comments of BoppreH
trafficstars

Hotkeys are not removed when Windows unlocks, but an issue I've seen before is that Windows doesn't report key events when it's locked. This makes sense from a security perspective,...

glitchassassin is correct, Linux reports device id (and hence you can listen to filters from a single device), but Windows bunches all events together with no information on the source....

Thanks for the information. However this seems to be a per-process setting, and doing it in a library might have adverse effects elsewhere. Do you know of any alternatives that...

Hi there Most of the activity is happening over at Keyboard, and even there I'm been absent. Good news I'm finally picking up my projects back again. In your opinion...

Sorry, the Linux part has seen little love recently. I'm just finishing some major changes to `keyboard` and Linux crashes will be the next top priority. Thank you for the...

Keyboard events (plain object): https://github.com/boppreh/keyboard/blob/d9c616ca71c7013270c3b974b1ba1890283c92d6/keyboard/_keyboard_event.py#L13 Mouse events (named tuple): https://github.com/boppreh/mouse/blob/f369010b27593d74e0d2705cdc77e5208b43e36f/mouse/_mouse_event.py#L18 I don't see any reason why they wouldn't be pickle-able. Do you have an example code that fails?

``` import mouse, pickle pickle.dump(mouse.record(), open('file.pkl', 'wb')) mouse.play(pickle.load(open('file.pkl', 'rb'))) events = [] mouse.hook(events.append) pickle.dump(events, open('file.pkl', 'wb')) mouse.play(pickle.load(open('file.pkl', 'rb'))) ``` Works fine for me in Windows 10. Keyboard events also worked....

Hi @reckoner No, I had tested within the same process, but using two interpreters or restarting one still works, without any hook/unhook. Are you sure this bug is not in...

Ok, I can reproduce, the issue now, and the "hook/unhook dance" works by starting the event listener. Somehow Python2 requires an active Windows hook to be able to replay events,...

The callbacks given to `on_something` listeners are not added as raw hooks, so you can't remove them with `unhook`. But they do return hooks, so you can try calling `unhook`...