See if a key was presssed
-
The ones that are completely separate windows belonging to other applications, so the 3rd option you listed.
-
Hi, for listening to keystrokes regardless of which program or window they end up in, there are a couple of Win32 API:s you can use from a normal (unprivileged) program, for example: SetWindowsHookExW()
-
Hi, for listening to keystrokes regardless of which program or window they end up in, there are a couple of Win32 API:s you can use from a normal (unprivileged) program, for example: SetWindowsHookExW()
@hskoglund said in See if a key was presssed:
you can use from a normal (unprivileged) program, for example: SetWindowsHookExW()
Wow! So without any warning or elevated privilege, any Windows program I install could be logging all keystrokes I make in any application? Nice.
-
Yes, it's been around since Windows 3.0, there's an older forum discussion here
I posted an example program there, see if I can get the link to gitlab working again... -
Yes, it's been around since Windows 3.0, there's an older forum discussion here
I posted an example program there, see if I can get the link to gitlab working again...@hskoglund
Indeed! There is a blow-by-blow discussion in https://0x00sec.org/t/windows-keylogging-part-i/99Scary how easy Windows makes it!
-
As I remember it, those API:s were initially designed for training/teaching how to use a computer (not for spying on you!) for example the acronym CBT you'll see in the docs stands for Computer Base Training :-)
-
As I remember it, those API:s were initially designed for training/teaching how to use a computer (not for spying on you!) for example the acronym CBT you'll see in the docs stands for Computer Base Training :-)
@hskoglund the root to hell is paved with good intentions....
but this is also the reason, why anti-cheat software from games has to be so terrible invasive on the Operating System.
-
Hi all, thanks for your replies, but I think I'm gonna have to stick with only the mouse movement. If I get this right, it won't work on Linux, so that's a bad thing.
Edit: Messing with Windows APIs is something I have no idea how to do and it would take days for me to learn it. The mouse is probably the only way.
Thanks again for your answers. -
Hi all, thanks for your replies, but I think I'm gonna have to stick with only the mouse movement. If I get this right, it won't work on Linux, so that's a bad thing.
Edit: Messing with Windows APIs is something I have no idea how to do and it would take days for me to learn it. The mouse is probably the only way.
Thanks again for your answers.@Sucharek
I never knew why you needed to track key presses to other applications. And I hope Linux doesn't allow it anyway! :)I don't know whether it helps, but you can (I believe) track focus changes/activate/deactivate windows in your app. Which I think would accompany going typing keys into another application. Maybe you could investigate those?
-
@Sucharek
I never knew why you needed to track key presses to other applications. And I hope Linux doesn't allow it anyway! :)I don't know whether it helps, but you can (I believe) track focus changes/activate/deactivate windows in your app. Which I think would accompany going typing keys into another application. Maybe you could investigate those?