gohook
gohook copied to clipboard
Consume Events?
Is there any way to consume events to prevent farther propagation to windows (disabling alt+tab, windows key for example)?
Well, we need to explore libuiohook for this method.
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
This tool does something similar... May be useful https://gitlab.fi.muni.cz/unix/noctrl