Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Remapping the Fn key - a solution


  • Please log in to reply
23 replies to this topic
Veil
  • Members
  • 24 posts
  • Last active: Jun 01 2013 04:47 PM
  • Joined: 01 Apr 2008
Howdy!

I've been at this for a while, and until now without success. It seemed impossible to map the fn key if it wasn't recognized by your computer since it doesn't send out a scan code you can use to remap it.

Then I found a DLL file on this forum written by Micha: DLLCall: Support for Human Interface devices. With this DLL it's possible to get a response back for a number of special keys, also Fn keys. So based on this DLL I wrote a script that checks whether the Fn key is pressed or released, so it can function as a modifier and you can use it in any way you'd like.

Since the matter of remapping the Fn key has been a problem for so many people for quite a while now, I created a complete guide explaining every step in full detail. The guide, and all the relevant files and information that comes along with it, can be found at:

http://brrp.mine.nu/fnkey/
http://yotz.eu/fnkey/

All this is based on the remapping of my Apple Wireless Keyboard, now with full use of the Fn key as a modifier and also the Eject key. From what I gather, the DLL has helped a lot of people already to remap single action keys and in doing so has proven its worth. That's why I'm confident that this method for remapping the Fn key will work on a wide variety of keyboards.

I hope this solves the Fn key mapping problem for all the people who've been looking for a solution all this time. Feedback on the script and on whether you succeeded is much appreciated.

Good luck!

BoBo²
  • Guests
  • Last active:
  • Joined: --
Folx, have a look at Veil's offered link! His documentation/website is an impressing example how to document your next AHK Tool. :D

@ Veil
Thx for sharing it! Much appreciated. 8)

Palomar
  • Guests
  • Last active:
  • Joined: --
Does anyone know where to find this script?

http://brrp.mine.nu/fnkey/ seems to be a dead link :( :(

BoBo²
  • Guests
  • Last active:
  • Joined: --
Have a look if the script itself will work out for you: [here].
Feel free to send Veil a PM (he's registered, and might be able to reactivate/replace the dead page)

Veil
  • Members
  • 24 posts
  • Last active: Jun 01 2013 04:47 PM
  • Joined: 01 Apr 2008
Site is back up!

BoBo²
  • Guests
  • Last active:
  • Joined: --
Thx. 8)

Hammillian7
  • Guests
  • Last active:
  • Joined: --
FnMapper.ahk link is broken. Could anybody provide the script?
Thanks!.

yeahtuna
  • Guests
  • Last active:
  • Joined: --
Thanks for the great howto. I just bought a MB110LL/A and I'm hoping I can get it working with my desktop. I'm on vacation right now and I plugged it into my ASUS M5N notebook, but couldn't detect the function key. I'll try with my desktop when I get home.

  • Guests
  • Last active:
  • Joined: --
the link is dead again...

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Unfortunately cache is not working!
<!-- m -->http://www.google.co... ... e.nu&meta=<!-- m -->
kWo4Lk1.png

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts
  • Last active:
  • Joined: 27 May 2007
<!-- m -->http://yotz.eu/fnkey/<!-- m --> works

n-l-i-d
  • Guests
  • Last active:
  • Joined: --
I created a copy on ahk.net, just in case (I assume Veil doesn't mind):

https://ahknet.autoh.../Veil/fnkey.htm

HTH
________________________________________________________
New here? Please, before you post...
1. Read the tutorial and try the examples. -> 2. Take a look at the command list to get an idea of what you could do. -> 3. Create your script. Consult the documentation and the FAQ if you get stuck. -> 4. Search the forum if you need help or examples, method 1 (forum), method 2 (site), method 3 (Google). -> 5. Post your code on the forum in the "Ask for Help" section if you still run into problems (but read this first). -> 6. There is more AHK on autohotkey.net and the Wiki and there is an AHK IRC chat.


mr. bean
  • Guests
  • Last active:
  • Joined: --
I tried to follow the tutorial, but the only think I get when i run the AutoHotkeyRemoteControlDLL.ahk

is a little message box saying:

GetDeviceCount fehlgeschlagen. Errorcode: -3

What is wrong?

n-l-i-d
  • Guests
  • Last active:
  • Joined: --
You are not using XP (or Vista)? If I recall correctly, this only works on Windows XP (or up)...

mr. bean
  • Guests
  • Last active:
  • Joined: --
Well I am on XP Pro edition....

On a T61 Thinkpad

Any idea what is wrong? When I double click the AutoHotkeyRemoteControlDLL.ahk I do not get any application window as they say in the tutorial, but instead that error message as i said above....