Fn + F8

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
stewievibs
Posts: 5
Joined: 23 Mar 2021, 11:27

Fn + F8

23 Mar 2021, 12:04

Could anyone tell my the script to bind right FN to F8? im an idiot.
gregster
Posts: 9001
Joined: 30 Sep 2013, 06:48

Re: Fn + F8

23 Mar 2021, 12:22

In most cases, Fn keys can't be used as hotkeys (there act on a lower system level).
But you can try: https://www.autohotkey.com/docs/KeyList.htm#SpecialKeys (AHK v1)

Corresponding v2 alpha docs: https://lexikos.github.io/v2/docs/KeyList.htm#SpecialKeys
stewievibs
Posts: 5
Joined: 23 Mar 2021, 11:27

Re: Fn + F8

23 Mar 2021, 13:02

@gregster So, an example of a key that i could use could be K right? or somthing like that. Before i did LShift::F1, and that worked, but when i do somthing such as K::F8 it doesnt work? I know im doing somthing wrong, i just dont know what.
gregster
Posts: 9001
Joined: 30 Sep 2013, 06:48

Re: Fn + F8

23 Mar 2021, 13:09

Code: Select all

k::F8
works for me in v1 (I haven't AHK v2 installed on this computer, but in this case the syntax should also work in AHK v2, afaik)

It might not work, if the target/active window runs elevated, though.

Then see FAQ: https://lexikos.github.io/v2/docs/FAQ.htm#uac (v2 FAQ)

btw, which AutoHotkey version are you using? Actually v2 (alpha)- that's the section where you posted - or the v1 main release ?

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Danielsan73, Descolada, Rohwedder and 41 guests