I have a program that, when I minimize it, gets into the system tray.
I want to know the following: a) how can I detect a keystroke when my program is in the system tray. b) how can I find out that they press the function buttons on the keyboard.
You need to configure the Windows hook using SetWindowsHookEx () and WH_KEYBOARDHOOK .
If you know exactly what keystroke you expect, you can use RegisterHotkey and Windows will send you a message when that key is pressed.
RegisterHotkey
If you want to detect all keystrokes, @OJ's answer will work.
Source: https://habr.com/ru/post/1340114/More articles:Extending a Javascript array with additional methods and syntactic sugar - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1340110/adding-functions-to-javascripts-array-class-breaks-for-loops&usg=ALkJrhjHLDim2G-XCfFdfyF5Co_ecdkb9gThe jQuery.change () event does not fire in the select list from the keyboard: how can I override this? - jquerySending a message in ActiveMQ over the Internet - jmsServerless Internet chat client? - logicJavascript scope issues when passing an anonymous function to a named function with a local variable - javascriptOracle SQL - Case-sensitive help in a select expression - sqlCrazy issue with NSTextView - fontsWhy can't I use the same cfqueryparam in two places in the same query when using CFScript? - coldfusionhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1340119/mouse-movement-click-the-the-sprite-walks-to-point-clicked&usg=ALkJrhiMfS0Ma7YFGJB_RsGFpQ0jxqZR0QAll Articles