Gad
Gad

Reputation: 42306

Monitoring general keyboard shortcuts in Windows (Ex. Ctrl twice to bring up Google Desktop Search)?

Google Desktop Search has this nice feature of catching monitor shortcuts (such as Ctrl + Ctrl) while running in the background. Once the event is caught, the desktop search bar is being shown. Is there a way to simply implement this in C#?

Upvotes: 1

Views: 213

Answers (1)

Eric J.
Eric J.

Reputation: 150108

You can do this with a Global Keyboard Hook.

This lets you preview keyboard events (and mouse events) before they are dispatched to the active application.

Upvotes: 3

Related Questions