Automatically "pop out" and "on top" a YouTube video

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
roysubs
Posts: 421
Joined: 29 Sep 2018, 16:37

Automatically "pop out" and "on top" a YouTube video

Post by roysubs » 02 Oct 2022, 10:04

I'm sure that many of you know the "Enhancer for YouTube" extension that is available for all major browsers and makes YouTube a little easier to use. Within that extension, there is a function "Pop-Up Player which nicely splits a frame out of Chrome (or other browser) and you know have a little floating window playing the video. However, big problem, the "Always On Top" function in there does not work, but no problem (AutoHotkey to the rescue!), and I have set CTRL + F12 to do an Always on Top on the current window.

Code: Select all

^F12::ontopToggle("A")   ; Ctrl-F12, same key to always-on-top as DeskPins
So, what I would like some help with is an AutoHotkey trigger that will do the following:

1. With a YouTube Window open, activate the "Pop-Up Player" function from "Enhancer for YouTube"
2. Automatically make that new window "Always on Top".

I'm a bit lost apart from the Always on Top part... :(

Return to “Ask for Help (v1)”