Home

Disabling Media Keys / Function Lock in Excel

%3CLINGO-SUB%20id%3D%22lingo-sub-429927%22%20slang%3D%22en-US%22%3EDisabling%20Media%20Keys%20%2F%20Function%20Lock%20in%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-429927%22%20slang%3D%22en-US%22%3E%3CP%3EI%20frequently%20use%20the%20function%20keys%20as%20media%20keys%20on%20my%20laptop%2C%20i.e.%20Pause%2FPlay%20music%2C%20Change%20screen%20brightness%2C%20etc.%20However%2C%20when%20using%20Excel%20I%20would%20like%20to%20use%20the%20function%20keys%20as%20their%20intended%20function%2C%20e.g.%20F4%20toggles%20A1%20-%26gt%3B%20%24A%241%20instead%20of%20going%20to%20the%20next%20song.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20I%20can%20achieve%20this%20if%20I%20enable%2Fdisable%20function%20lock%2C%20but%20I%20was%20wondering%20if%20there%20was%20a%20way%20to%20do%20it%20automatically%20for%20a%20specific%20program.%20So%20when%20I%20am%20working%20in%20Excel%2C%20function%20lock%20is%20disabled%20and%20then%20it%20will%20be%20re-enabled%20when%20I'm%20using%20another%20program.%20The%20easiest%20way%20might%20be%20to%20write%20a%20script%20or%20something%20that%20toggles%20function%20lock%20when%20Excel%20is%20in%20focus%2C%20but%20I%20have%20no%20idea%20how%20to%20do%20that.%20Any%20help%20is%20appreciated%2C%20thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-429927%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
antyos
Occasional Visitor

I frequently use the function keys as media keys on my laptop, i.e. Pause/Play music, Change screen brightness, etc. However, when using Excel I would like to use the function keys as their intended function, e.g. F4 toggles A1 -> $A$1 instead of going to the next song.

 

I know I can achieve this if I enable/disable function lock, but I was wondering if there was a way to do it automatically for a specific program. So when I am working in Excel, function lock is disabled and then it will be re-enabled when I'm using another program. The easiest way might be to write a script or something that toggles function lock when Excel is in focus, but I have no idea how to do that. Any help is appreciated, thanks!

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies