Note that there are some explanatory texts on larger screens.

plurals
  1. POLow-level Keyboard Hooks/SendInput with Winkey+L possible? (workstation lockout is intercepted in Vista and higher)
    primarykey
    data
    text
    <p>I work on a project called <a href="http://code.google.com/p/uawks/" rel="nofollow noreferrer">UAWKS</a> (Unofficial Apple Wireless Keyboard Support) that helps Windows users use Apple's bluetooth keyboard. One of the main goals of UAWKS is to swap the <kbd>Cmd</kbd> key (which behaves as <kbd>Winkey</kbd> in Windows) with <kbd>Ctrl</kbd>, allowing users to do <kbd>Cmd</kbd>+<kbd>C</kbd> for copy, <kbd>Cmd</kbd>+<kbd>T</kbd> for new tab, etc.</p> <p>It is currently developed using <a href="http://www.autohotkey.com" rel="nofollow noreferrer">AutoHotkey</a>, which worked pretty well under Windows XP. However, on Vista and Windows 7, <kbd>Cmd</kbd>+<kbd>L</kbd> causes problems:</p> <ul> <li>Regardless of low-level keyboard hooks, <kbd>Win</kbd>+<kbd>L</kbd> is always intercepted by Windows and normally locks the workstation...</li> <li>You can disable workstation locking with <a href="http://www.howtogeek.com/howto/windows-vista/disableenable-lock-workstation-functionality-windows-l/" rel="nofollow noreferrer">this registry hack</a>, but pressing <kbd>Win</kbd>+<kbd>L</kbd> still can't be rebound in AHK</li> <li>Pressing <kbd>Win</kbd>+<kbd>L</kbd> leaves Winkey in the Keydown state until the next (additional) Winkey Up. Simulating a Keyup event doesn't seem to work either!</li> </ul> <p>It seems that <kbd>Win</kbd>+<kbd>L</kbd> is a special chord that messes everything else up.</p> <p>I've looked through the AHK source code, and they try to address this problem in <code>SendKey()</code> in keyboard_mouse.cpp (near line 883 in v1.0.48.05), but it doesn't work. I wrote up my own low-level keyboard hook application in C#, and I see the same problem.</p> <p>Has anyone else run into this? Is there a workaround?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload