Create a .NET application for Windows when you press a key

My application is mainly on the taskbar while minimizing. I would like the user to be able to press a keystroke key (e.g. ALT + SHIFT, etc.), and it is displayed on the screen (e.g. Launchy if you used it, or in the Google search bar).

Does anyone know how to do this?

+3
source share
2 answers

You want to call the Windows API call SetWindowsHookEx. This CodeProject article has several details:

http://www.codeproject.com/KB/system/CSLLKeyboard.aspx

, , SetWindowsHookEx .NET :

http://www.pinvoke.net/default.aspx/user32.SetWindowsHookEx

+2

Source: https://habr.com/ru/post/1703896/


All Articles