Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retain default behaviour of win-key while using wait for.
#3
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
Code:
Copy      Help
rep
,ifk (VK_LWIN)
,,OnScreenDisplay "1     2     3     4     5     6     7     8     9     0" 2 80 1080 "Arial" 24 0xff00 16
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 Smile . 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).


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)