I would like to know if you guys know an alternative to the windows function getKeyState()?
It's working perfectly fine but I'd like do perform the same thing as this function but only when I'm tabbed in the program window (in my case a command console).
I'm making a sleep function for a program I'm working on, a sort of sleep screen, and I'd like the program to come out of sleep only when enter is pressed while tabbed in the program console, and not in random times when tabbed out.