Okay, with your helpful reply I found this page, which has something that is similar to what I want. I changed a couple of things and came up with this: #Include <Constants.au3>
#NoTrayIcon
Global $Enabled = 0
Opt("TrayMenuMode",1)
$radio1 = TrayCreateItem("Enable - Always on Top", -1, -1, 1)
TrayCreateItem("")
$radio2 = TrayCreateItem("Disable - Always on Top", -1, -1, 1)
TrayCreateItem("")
$exititem = TrayCreateItem("Exit")
TraySetState()
While 1
$msg = TrayGetMsg()
Select
Case $msg = $radio1
TrayItemSetState($radio2, $TRAY_UNCHECKED)
WinSetOnTop("BBC iPlayer - The Killing Episode 15", "", 1)
$Enabled = 1
Case $msg = $radio2
TrayItemSetState($radio1, $TRAY_UNCHECKED)
WinSetOnTop("BBC iPlayer - The Killing Episode 15", "", 0)
$Enabled = 0
Case $msg = $exititem
Exit
EndSelect
WEnd I have some way to go before I understand this script, but it works fine. Now, instead of having the window's name (BBC iPlayer - The Killing Episode 15) hardcoded, how could I use wildcards instead? Even better, to make this truly multipurpose, is there a way of getting the window name inserted by clicking on the window after starting the script?