Leaflet a écrit:Hi, Excale, I'm curious about your program nHide, actually, the shortcut function.
I'm used to using HOOK just like nCapture to detect if any hotkey is pressed and then excuting corresponding code such as show_msgbox. it works on OS 3.1(ndless 3.1 and/or 3.6) but failed on OS 3.6(ndless 3.6). I want to know how to detect if any hotkey is presssed (even combination keys) on OS 3.6 than I can excute corresponding code anytime if you can guide me.Thanks.
nCapture and nHide have nothing in common when it comes to detect keys.
nCapture is hooked in the event loop: it is really a hotkey.
nHide merely checks that the right keys are presses when you try to access your documents.
If you want some code to be executed when you press a special combination, you need to hook yourself in the timer loop and check every tick if the combination is pressed.