sOnt
sOnt

Reputation: 97

Capture Keypress in WPF C# Application when not in focus

I want to capture the PrintScreen button even if the application is minimised or not on focus at all. I've seen some snippets but none of these worked in WPF, only in Winforms. Anyone can give some code to start?

Upvotes: 1

Views: 5389

Answers (1)

Mohamad Rashidi
Mohamad Rashidi

Reputation: 317

What you want is called "Global Keyboard Hooks" there is a pretty good solution here: http://www.codeproject.com/KB/cs/globalhook.aspx

Upvotes: 1

Related Questions