Giora Ron Genender
Giora Ron Genender

Reputation: 817

Creating a Process in the background that will listen to keyboard

I have a project that runs in the background in a different process, I want it to be able to react to keyboard everywhere, for example I run the project, and afterwards I do other stuff in the computer such as browsing, facebook, watching movies etc.., and every time I press F9 I want my project to show up. Same as how you press a combination of keys to invoke Babylon... I want to implement it in C#, I have no idea how to begin.

Upvotes: 2

Views: 6986

Answers (1)

Matteo Italia
Matteo Italia

Reputation: 126787

You can register a hotkey with the RegisterHotKey API function. You can see an example of its usage from C# here.

Upvotes: 9

Related Questions