is it possible to read keyboard inputs without always having my console application focused? I would like to do something with a button without always going to the console.
Doesn't that somehow work with events? Unfortunately I only found unsightly solutions with Forms.
This solution from @Siarhei Kuchuk didn't help me either: Global keyboard capture in C# application
The OnKeyPressed event is activated but is not triggered.
Does somebody has any idea?
That's possible. You may google "keyloggers" and find many examples but I'm gonna give you a very rough bare boned one. But first you have to add a refrence to
System.Windows.Forms.dll
for this to work