Take the 2-minute tour ×

I would like to configure a WPF application to function in a similar way to SlickRun. I would like to be able to minimize the application to the taskbar, then while in any other program, press a key command (ex: ALT + X) and have my application appear to the user.

Can someone point me in the right direction?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Your best bet is to use RegisterHotKey(). That works by sending the WM_HOTKEY message to the HWND you passed in. Since WPF doesn't expose its windows' message loop to developers, you'll probably need to get your hands dirty with some interop and create a message only window to receive the hot key messages.

share|improve this answer
This got me on the right track and the following resources look like they will help as well: stackoverflow.com/questions/48935/… blogs.vertigo.com/personal/ralph/Blog/archive/2007/02/12/…… (linked to cache as site was down at time of posting) –  Craig Shoemaker Jul 31 '09 at 13:19
add comment

Your Answer


