gohook icon indicating copy to clipboard operation
gohook copied to clipboard

Consume Events?

Open jonatino opened this issue 4 years ago • 3 comments

Is there any way to consume events to prevent farther propagation to windows (disabling alt+tab, windows key for example)?

jonatino avatar Jun 11 '20 03:06 jonatino

Well, we need to explore libuiohook for this method.

cauefcr avatar Sep 18 '20 13:09 cauefcr

In libuihook it is possible by setting 0x1 in a reserved variable memory location in the event struct that is returned. But that is in C runtime. Any way we can achieve same in Go runtime. I saw the code looks like go hook is creating its own copy of that struct. Anyway we can have this 0x1 copied to C environment from Go when running ?

Libuihook event porpoagation block : Block event issue link libuihook

rajatkb avatar Oct 17 '20 20:10 rajatkb

This tool does something similar... May be useful https://gitlab.fi.muni.cz/unix/noctrl

igorcafe avatar Sep 23 '22 19:09 igorcafe