I have a very simple AutoHotkey script that listens for certain key presses to run Windows Shortcut files (lnk):
F21::
Run "C:\Users\djcim\Google Drive\Powershell Scripts\Admin Shortcuts\djcim\StartOBS.lnk"
Return
F22::
Run "C:\Users\djcim\Google Drive\Powershell Scripts\Admin Shortcuts\djcim\StopOBS.lnk"
Return
It seems to capture the key presses in most situations, however when I have certain programs focused like OBS or VSCode nothing happens.
Are these programs somehow blocking AutoHotkey from capturing these key presses? I have verified that neither of these programs are using F21 or F22 for shortcuts in program.