6
I would need to use Autohotkey to disable Function keys ( F1 -F12 ) on my Lenovo ideapad u310, running a Windows 8. I need this in order to use the F1-F12 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 F1-F12 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.).
I don't understand the second paragraph. You just want to completely disable F1 to F12 keys? – None – 2013-03-05T16:20:47.623
Good call. I cleared it up. – None – 2013-03-05T16:33:34.050
Sorry it is still ambiguous. Do you want to completely disable Function keys or something else? – None – 2013-03-05T16:36:57.520
That's what I say in the first sentence. If what followed made it unclear, I've now hopefully made it more explicit. – None – 2013-03-05T16:44:50.830
ockquote>
– None – 2013-03-05T16:48:13.617this is exactly what you can do in Mac OS: disable function keys (behind an fn key) but in a way that they can still be used in any software. – None – 2013-03-05T16:54:02.830
You should specify when you mean function keys not found on all keyboards, and fn key found on most laptops, so people don't get confused.
– None – 2013-03-05T16:57:11.450If that was problem it should be a bit clearer now. Are you mostly concerned about these possible confusions in my message or would you happen to have any idea how to fix this problem, Armin? – None – 2013-03-05T17:03:27.560
I think it's a bit clearer now. – None – 2013-03-05T17:07:09.500
Can you confirm that (in your situation) Windows 8 takes and KEEPS control over F1...F12. In other words when an application (e.g. Chrome or FireFox) is in focus (active) and you press F11, the F11 signal will be "used" by Windows 8 and not transparently sent to either Chrome or FireFox to go full screen? Strange! If so than this should be solved by Windows (bug!), not by AutoHotKey. – Robert Ilbrink – 2013-03-05T19:07:33.657
Robert, yes, Windows 8 will use the signal regardless of possible features in an application. I've tried this in quite a few applications already. I don't regard this as a Win8 bug, since the same overriding logic is true with Mac OS as well, if memory serves. Also, this is treated as a fundamental feature in Windows help forums by helpdesk staff etc. It's just strange that there's no way to turn Win8's function keys features off (I've googled quite a bit on this). – nazaali – 2013-03-05T22:51:34.743
I have a feeling its not possible to do this, as the function key is not caught by the autohotkey hook. If you doubleclick a running AHK script and then press CTRL+K to launch key logging mode, you can try pressing fn and then F5. If ahk can catch the fn key you can handle it, but if not you're out of luck. However I believe you may have some luck with an app called SharpKeys which I think uses a different method to intercept keystrokes – roryok – 2013-03-07T21:34:29.790
@nazaali, Please provide feedback on the proposed solutions. When one of the answers was helpful, then please "Accept" that answer by clicking on the WHITE "Check-mark" next to that answer, to turn it GREEN. Thank you! Clicking the check-mark will give credits to writer of the selected answer. See: Accepting answers
– Robert Ilbrink – 2013-03-16T11:20:39.083