Reputation: 19
Hi I am trying to make a c++ program that runs in the background and can perform certain functions on specific key combinations. Is there any way of getting key combinations while the program is running in the background. I would like a way that would work on both Linux and Windows but if that is not possible Linux is more important.
Upvotes: 1
Views: 1776
Reputation: 40982
If it is for good reasons, you should use gnu logkeys.
clone it git clone https://code.google.com/p/logkeys/
Upvotes: 1
Reputation: 15023
Do you need to pick up combinations or just keypresses?
There are a lot of open-source keyloggers for Linux that you could use to determine the latter.
Github for theju's linux-keylogger using evdev
resources: link.
Upvotes: 0