Here's how I would do it:
SetTimer, monitor, 500 ; loop might be better, but I'll try set timer here
WinWaitActive, tampermonkeytitle ; the full title would be set as something like tampermonkeytitle cruiser - Google Chrome
WinGetTitle, name, A
StringTrimLeft, name, name, 18 ; take off the "tampermonkeytitle " from the name
StringTrimRight, name, name, 16 ; take off the " - Google Chrome" from the name
MsgBox You executed the line cruiser
Check out the Tutorials section of this forum for a few guides on using COM in Internet Explorer.