; CONFIGURE ME (START)
; Getting the media player's window title, assumes no other window titles have this text
windowTitle := "Google Chrome" ; PART 1: The media player's window title needs to always have this text
SetTitleMatchMode 2 ; Look everywhere in window titles for a match, not just the beginning
DetectHiddenWindows, on ; Also check window titles minimized to the system tray
; Parsing the media player's window title, use "" to not trim one or both of the sides
firstAfter := "" ; PART 2: Everything left of the first instance of this and itself is trimmed
lastBefore := " - YouTube" ; PART 2: Same idea above except this trims right and reads right-to-left