 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Mar 05, 2005 2:42 am Post subject: "F Lock" key on Microsoft Multimedia keyboard |
|
|
| Is it possible to control the "F Lock" (Function Lock) key on a Microsoft Multimedia keyboard so that you can force F-Lock to be on? |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sat Mar 05, 2005 3:19 am Post subject: |
|
|
Follow these steps:
- Run an AHK script. Make sure this script uses the keyboard hook (#InstallKeybdHook).
- Right-click on the tray icon and select Open.
- A window will appear. In the menubar, select View >> Key history and script info
- You will see a list of the last twenty key events (and mouse events, if the mouse hook is installed), including their virtual key numbers and scancodes. Pressing F5 will refresh this list.
- Anything that you can see in this list can be captured and/or reproduced in AutoHotkey. However, not everything can be seen here. So, to test, press the key, F Lock in this case, and then press F5 to refresh the list. If AutoHotkey couldn't see the key, the list will be unchanged except for the F5 key you just pressed. If it could, though, it will be the last key on the list (excluding F5).
If you're successful, report the virtual key number (the VK column) and the scancode (the SC column) back to us and we can help you control it. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Mar 05, 2005 9:57 am Post subject: |
|
|
And in case those steps can't detect the key, here is a registry change you can apply to make F-lock seem "always on". It remaps the alternate functions of the function keys back onto the function keys themselves so that the state of F-lock doesn't matter. I believe it requires Windows 2000/XP or later.
1) To use this, copy & paste the following into a file such as FLock.reg.
2) You might want to save the original contents of the subkey mentioned below prior to the next step (though I think you can just delete the "Scancode Map" entry to revert to the original behavior).
3) Run the .reg file.
| Quote: | Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,\
; --------------------------------------------------------------------------------------------------------------
; BE SURE TO UPDATE THE COUNT BELOW TO REFLECT THE TOTAL NUMBER
; OF REMAPS + 1 (1 extra for the null terminator):
; --------------------------------------------------------------------------------------------------------------
0D,00,00,00,\
; ----------------------------------------------------------------------------
; Make the status of F-Lock irrelevant as it pertains to the 12 function keys:
; ----------------------------------------------------------------------------
; 1. F1
3b,00,3b,e0,\
; 2. F2
3c,00,08,e0,\
; 3. F3
3d,00,07,e0,\
; 4. F4
3e,00,3e,e0,\
; 5. F5
3f,00,3f,e0,\
; 6. F6
40,00,40,e0,\
; 7. F7
41,00,41,e0,\
; 8. F8
42,00,42,e0,\
; 9. F9
43,00,43,e0,\
; 0A. F10
44,00,23,e0,\
; 0B. F11
57,00,57,e0,\
; 0C. F12
58,00,58,e0,\
; ------------------------------------
; Make any other desired subsitutions:
; ------------------------------------
; ...
; ...
; 0D. Null Terminator (required).
; If you add or remove any lines, be sure to change the count at the top to reflect
; the number on the line above (currently 0D).
00,00,00,00 |
|
|
| Back to top |
|
 |
Guest
|
Posted: Tue Mar 08, 2005 3:44 pm Post subject: |
|
|
Thanks for the replies.
Unfortunatley it looks like the F-Lock key is not recognised.
The registry hack does not make a difference either. From what I have read the registry hack only works if you have they keyboard connected to a PS/2 port, but my keyboard is on a USB port.
It looks like several of the keys on my keyboard, a Microsoft Wireless Multimedia Keyboard 1.0A, are not recognised. At least not on my system. E.g. the "My Music" key.
Does anyone know if the Microsoft keyboad control software IntelliType Pro can interfere with AutoHotkey. I am still running MS IntelliType. I expect not for much longer as from what I have seen AutoHotkey can do it should be a great replacement.
Thanks for your help. |
|
| Back to top |
|
 |
smythg
Joined: 08 Mar 2005 Posts: 4 Location: UK
|
Posted: Tue Mar 15, 2005 10:11 am Post subject: |
|
|
Update on the above.
I have removed all of the Microsoft IntelliType software so just AutoHotkey is running now.
This does not seemed to have helped AutoHotkey recognise some of the extra keys on a Microsoft Multimedia Keyboard.
I guess it still could be possible for AutoHotkey to support Microsoft keyboards as the IntelliType software recognises the extra keys. I will raise this as a requirement. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|