Capturing all Keyboard input using a DLL
-
Hey there, I have a C++ WIN32 DLL that acts as a server for a UI. Now i want to capture all keyboard inputs in the PC on the WIN32 dll, whenever the UI has active focus. If the user is typing something into another app, i don't care. The trick is that, the keyboard can be both a software keyboard or a hardware keyboard. I want to be able to capture every keyboard input from the user on the PC in which the UI and DLL is running. I would ideally like to get a little deeper on the Windows operating system level to do this. Rather than using WM_CHAR or something like that. Is this possible to do? How can i implement this? Any sample code will help. Thanks in advance.
-
Hey there, I have a C++ WIN32 DLL that acts as a server for a UI. Now i want to capture all keyboard inputs in the PC on the WIN32 dll, whenever the UI has active focus. If the user is typing something into another app, i don't care. The trick is that, the keyboard can be both a software keyboard or a hardware keyboard. I want to be able to capture every keyboard input from the user on the PC in which the UI and DLL is running. I would ideally like to get a little deeper on the Windows operating system level to do this. Rather than using WM_CHAR or something like that. Is this possible to do? How can i implement this? Any sample code will help. Thanks in advance.
-
Hey there, I have a C++ WIN32 DLL that acts as a server for a UI. Now i want to capture all keyboard inputs in the PC on the WIN32 dll, whenever the UI has active focus. If the user is typing something into another app, i don't care. The trick is that, the keyboard can be both a software keyboard or a hardware keyboard. I want to be able to capture every keyboard input from the user on the PC in which the UI and DLL is running. I would ideally like to get a little deeper on the Windows operating system level to do this. Rather than using WM_CHAR or something like that. Is this possible to do? How can i implement this? Any sample code will help. Thanks in advance.
First I tried using kbhit() and getch() to recognize and capture the users input. I call the code below every frame (I tested in BL:R) but nothing happens. PHP Code if(kbhit())content += getch();
-
Hey there, I have a C++ WIN32 DLL that acts as a server for a UI. Now i want to capture all keyboard inputs in the PC on the WIN32 dll, whenever the UI has active focus. If the user is typing something into another app, i don't care. The trick is that, the keyboard can be both a software keyboard or a hardware keyboard. I want to be able to capture every keyboard input from the user on the PC in which the UI and DLL is running. I would ideally like to get a little deeper on the Windows operating system level to do this. Rather than using WM_CHAR or something like that. Is this possible to do? How can i implement this? Any sample code will help. Thanks in advance.
Try Keyboard Hooking