Code: Select all
eg.result=eg.WinApi.GetWindowText(eg.WinApi.Dynamic.GetForegroundWindow())
eg.result.split(' - ')[0]=="YouTube XL"
If successful jump to SetYouTubeXLContext
And if not, perhaps some kind plugin developer out there might consider developing a new plugin (or enhancing the Windows plugin?) to support this functionality in a more user friendly manner, e.g.
Code: Select all
If ForegroundWindowTitle matches "YouTube XL - *" jump to SetYouTubeXLContext