

Try this version instead which doesn't try to strip off the " - YouTube" part, in case it's different in your locale:Ĭode: Select all FileSelectFile, SourceFile, 3, Pick a text or HTML file to analyze.

Use the Window Spy tool and copy and paste the full title rather than retyping it, including presumably the " - YouTube" at the end. When you put those URLs into your browser, what does it show for the full window title? I'm thinking it might be location specific in terms of what it shows as a title (which would affect the RegEx match). It's not the version of AHK that's an issue, nor the Windows version. I don't understand why it only worked once. I copied the script over to another laptop also running Windows 10 and a slightly older version of AHK (1.1.32.0) and get the same result - just a blank MsgBox. I tried some different YouTube URLs and got it to work once ( - although it didn't handle an apostrophe) but now it won't do it again. RickC wrote: I'm using AHK 1.1.33.09 in Windows 10 and just see a blank MsgBox.
