Windows – Disabling Function Keys in Windows 8 with Autohotkey

autohotkeykeyboard shortcutswindows 8

I would need to use Autohotkey to disable Function keys ( F1F12 ) on my Lenovo ideapad u310, running a Windows 8. I need this in order to use the F1F12 in applications such as Ableton Live. Additionally, if it's possible to program the Windows 8's stock features behind an Fn key (see nb below) that would be even better.

The autohotkey program itself is working just fine, I've tried bunch of things successfully. But for some reason, I can't disable the Function keys or re-map them. Function Keys in Windows 8 are by default programmed to do things like opening up Charm, controlling volume etc.

In Windows 8, the F10 key, for example, opens the second screen option. This means I can't use it for other purposes, because every time I press it the second screen option opens up. The audio software I use would badly require freeing those F1F12 keys from Windows 8 features, such as the second screen example. Simply: I'd like the Function Keys do nothing at all by default, thus being "available" for certain software to utilize.

I tried the basic "F1::Return" but nothing. Any ideas? Any help would mean a lot 🙂

So is it even possible to override these Windows 8 interface features with autohotkey?

nb: There's a feature in Mac OS that I'm actually trying to somewhat emulate here. On a mac computer, you can choose to have the function keys' features behind the Fn button, so you have to always press Fn+function. This way the user can execute OS features BUT still use the function keys without the Fn button in any software (like pressing F5 for refresh on an internet browser etc.).

Best Answer

I think that your problem is the "reverse" Fn key.

I think your problem can be described as:
"When I press F5 with my browser open, "Windows" does "something" and when I press Fn+F5, my browser reloads the page as I would expect".

This has nothing to do with Windows 8. Unfortunately there are many laptop suppliers (e.g. HP and Compaq) who do/did the same. I always had to go back to the BIOS to reverse (normalize) the Fn key function, so that F1 ... F12 worked without first pressing Fn and that the "special" functions like volume, WiFi, Screen Switching, etc. all require the use of the Fn key first.

From the Lenovo Manual. Change settings in your BIOS!

Setting hotkey mode

By default, the hotkey functions are accessible by pressing the appropriate hotkey. However, you can disable the hotkey mode in the BIOS setup utility.

To disable the hotkey mode:

1 Restart the computer.
When the Lenovo logo appears, immediately press Fn+F2 to enter the BIOS setup utility.

2 In the BIOS setup utility, open the Configuration menu, and change the setting of HotKey Switch from Hotkey Mode to Legacy Mode.

3 Open the Exit menu, and select Exit Saving Changes.

Note: When hotkey mode is disabled, press the Fn key and the appropriate hotkey to access the corresponding hotkey function.

Not in the manual:

From now on you enter the BIOS most likely with just F2.

Related Question