| View previous topic :: View next topic |
| Author |
Message |
ppeterpp
Joined: 08 Jul 2009 Posts: 61
|
Posted: Mon Nov 09, 2009 10:01 pm Post subject: FN Button on laptop. |
|
|
Hi!
Can someone tell me what is the function (FN) button's keyname in autohotkey i'm using laptop and i want to bind it to another button.
Thanks for helping!
| Code: | | ^1::Send, {FN}{F1} ;Ctrl+1 will send FN+F1 |
Regards
Peter |
|
| Back to top |
|
 |
txquestor
Joined: 22 Aug 2009 Posts: 294
|
Posted: Mon Nov 09, 2009 10:15 pm Post subject: |
|
|
How to remap an FN key or any special key
| Quote: |
Special Keys
If your keyboard or mouse has a key not listed above, you might still be able to make it a hotkey by using the following steps (requires Windows XP/2000/NT or later):
Ensure that at least one script is running that is using the keyboard hook. You can tell if a script has the keyboard hook by opening its main window and selecting "View->Key history" from the menu bar.
Double-click that script's tray icon to open its main window.
Press one of the "mystery keys" on your keyboard.
Select the menu item "View->Key history"
Scroll down to the bottom of the page. Somewhere near the bottom are the key-down and key-up events for your key. NOTE: Some keys do not generate events and thus will not be visible here. If this is the case, you cannot directly make that particular key a hotkey because your keyboard driver or hardware handles it at a level too low for AutoHotkey to access. For possible solutions, see further below.
If your key is detectible, make a note of the 3-digit hexadecimal value in the second column of the list (e.g. 159).
To define this key as a hotkey, follow this example:
SC159:: ; Replace 159 with your key's value.
MsgBox, %A_ThisHotKey% was pressed.
returnReverse direction: To remap some other key to become a "mystery key", follow this example:
; Replace 159 with the value discovered above. Replace FF (if needed) with the
; key's virtual key, which can be discovered in the first column of the Key History screen.
|
_________________
"Man's quest for knowledge is an expanding series whose limit is infinity" |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5333 Location: San Diego, California
|
Posted: Mon Nov 09, 2009 10:17 pm Post subject: |
|
|
I think you'll have to do that on your own, my laptop doesn't seem to 'expose it' to AHk.
Please read here on how to do it yourself
http://www.autohotkey.com/docs/KeyList.htm#SpecialKeys
btw, This script satisfies step 1. of the 7 under "Special Keys"
HTH
Leef_me |
|
| Back to top |
|
 |
|