AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FN Button on laptop.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ppeterpp



Joined: 08 Jul 2009
Posts: 61

PostPosted: Mon Nov 09, 2009 10:01 pm    Post subject: FN Button on laptop. Reply with quote

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
View user's profile Send private message
txquestor



Joined: 22 Aug 2009
Posts: 294

PostPosted: Mon Nov 09, 2009 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5333
Location: San Diego, California

PostPosted: Mon Nov 09, 2009 10:17 pm    Post subject: Reply with quote

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"

Code:
#InstallKeybdHook
HTH
Leef_me
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group