Block F keys globally except for certain apps
6 hours ago, LogicalDrm said:You have two ways. Either set better hotkey as F-keys are quite often used for functions withing other software (numpad numbers much less for example). Another is to make AutoHotkey scrip that blocks use of all f-keys (as they are placed one-by-one, maybe block just the one you need) unless certain window is active. Note here being that AHK will block them completely, I'm not sure if you can pick per process. You certainly can per active Window.
56 minutes ago, General K3nobi said:Is it easy to do? I do have a AHK script I used daily for small and basic stuff so i do not know much about AHK
Rather than trying to detect which programs are active, It would probably be even simpler to remap F6 to one of the obsolete/unused function keys (F16–F24) which should have no function in any application. They it can be assigned as a hotkey in OBS and won't affect anything else; AHK suppresses the original key function by default. Simple one-liner:
F6::Send {F16}
Save that to a .ahk file and put it in the startup folder so it runs at system log-in.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now