Send keyboard shortcuts at YouTube, even while it's in a background window.
I made this so I can skip back & repeat what was just said I'm while gaming.
- Set which program to control: Open it to a video, and tap a hotkey once.
- Continue using other apps in the foreground, but don't minimise YouTube.
- With multiple YouTube tabs open, it will control the first one it sees.
- Set a different window/app by long-pressing the hotkey.
- Usually, you can't long-press
MEDIA_*
keys. (egMEDIA_STOP
)
As a work-around, I sometimes rebind my play/pause toF21
>F24
in iCue.
AutoHotKey Version: 2.0 (Tested on build a122)
- Use provided examples to add your hotkeys in the
Main
section (bottom). - Install AutoHotKey v2 if you haven't already.
- Set the .ah2 file to run in AutoHotKey. In windows:
right-click
>properties
>open with
.
- Run the AutoHotKey script, (or set it to run at OS startup).
- Choose a window with a YouTube video in it. Tap your hotkey to remember it.
- While in another app, use your hotkeys to control YouTube in the background.
- If the browser changes: long-press a hotkey to reset the script to the new window.