What I'm looking for is functionality similar to Google desktop. When you hit Ctrl twice rapidly, a little search box pops up.
I've tried using a fairly heavy keyboard hook class that I found somewhere, but that kept giving meunpredictable results (ie first time it would work, then I'd press Ctrl once, and it would raise the key pressed event several times?).
Anyway, this just doesn't seem like it should be complicated, so I feel like I must be doing something wrong. My app (a WPF app) will be running with the primary window's visibility set to hidden, and not residing in the task bar. When I perform the Ctrl - Ctrl, I want to catch it and show the window.
One other side issue - I'm currently doing this by registering a hot key, but that doesn't give me the full functionality I want (the double-press of Ctrl). When the window is shown, I haven't found a 100% fool-proof way of detecting when it no longer has focus (I want to hide it again when this happens). I've tried responding to Deactivated, LostFocus, etc... and those work most of the time. But sometimes it appears that the window is shown without actually being Activated, or receiving focus. Anyy ideas on this as well?
Thanks!
Adam