10-18-2012, 08:22 AM
LL keyboard hook is switched on. Should have mentioned that before. Anyway, writing my own LL hook is too complicated for me right now. I hardly understand the examples. But I tried the following and it seems to work:
Function Function2
The only thing now is that this function creates a lot of threads (when I'm a bit slow on the Win-key). The infinitive loop is running real fast, I guess
. As soon as there are 200 threads QM issues a warning for each thread: "Warning: There are [n] threads. QM may fail to create more threads and stop working." n > 199
Btw, if I start writing a low level hook, you think I should take into account that the Win-key can be a modifier and a standalone hotkey (unlike e.g. SHIFT)?
As a side note: there is a VK_SHIFT, VK_LSHIFT and VK_RSHIFT, but for the Win-key I couldn't find a generic code like VK_WIN (only VK_LWIN and VK_RWIN).
Function Function2
rep
,ifk (VK_LWIN)
,,OnScreenDisplay "1 2 3 4 5 6 7 8 9 0" 2 80 1080 "Arial" 24 0xff00 16
. As soon as there are 200 threads QM issues a warning for each thread: "Warning: There are [n] threads. QM may fail to create more threads and stop working." n > 199Btw, if I start writing a low level hook, you think I should take into account that the Win-key can be a modifier and a standalone hotkey (unlike e.g. SHIFT)?
As a side note: there is a VK_SHIFT, VK_LSHIFT and VK_RSHIFT, but for the Win-key I couldn't find a generic code like VK_WIN (only VK_LWIN and VK_RWIN).
