how to detect button presses without being selected on the program

Viewed 55

I am trying to make a C# program that detects inactivity, and I was trying to do this by checking the keyboard buttons, but Console.ReadLine() can only detect keyboard inputs if they happen while in the window, how would I make it read the keyboard input without being inside the window.

0 Answers
Related