logkeys icon indicating copy to clipboard operation
logkeys copied to clipboard

log mouse clicks too (enchantment)

Open Areso opened this issue 7 years ago • 6 comments

Left click right click scroll click and scroll movement up or down. It would be very nice *edited

Areso avatar Aug 14 '17 06:08 Areso

I could use this, too. For my purposes I just need left click. Nothing fancy--no need for coordinates, window name, or anything like that. Just simple fact that left mouse button was clicked to show up in log.

If you can point me in the right direction, I'd be more than happy to chip away at adding this feature.

bdantas avatar Oct 10 '17 01:10 bdantas

This unfortunately won't be as trivial and likely would require using and linking to Xlib (or something like it for wayland?), which then will fail to work when not run within an X session (i.e. on a headless, virtual console, i.e. a remote server).

kernc avatar Oct 10 '17 01:10 kernc

That's a pity, but I understand the desire to stay portable and avoid entanglement.

bdantas avatar Oct 10 '17 01:10 bdantas

Could you do it via Try-Except-Finally wrapper, at least for X11 system? For me there are no need to log mouse in GUI-less mode...

Areso avatar Oct 10 '17 02:10 Areso

Someone could do it, yes ... 👍

kernc avatar Oct 10 '17 02:10 kernc

I'd like to work on this but expect it to take more than a month.
Please inform if anyone else is already working.

Hritik14 avatar Mar 13 '19 11:03 Hritik14