Hello i'm working with c# windows forms. My form has a transparent panel that i can click and see through. How can i capture the key pressings when not focused on the main form ??
I've seen both global keyboard hook as well as GetAsynckeystate dll import from user32 but isn't there actually a simpler way ? in c++ there's already the GetAsyncKeyState function ?
It's like a cardboard box with a rectangle hole and you can see what's behind it. The picturebox displays modified images with OpenCV of what is inside the purple part. I need to still be able to click and see through but at the same time capture which key is being pressed
I guess u would have to globaly track the mouse and use your window position minus screen size to get he mouse position I wonder if there is anything that facilitates that
That's true. I think it's hard to bring into any offical .NET codebase because you would have to make it cross-plat and WinForms, etc. don't get that many new features (lol) ;D