Code: Select all
^f1::
title := "test - Bing - Microsoft Edge"
WinGetActiveTitle, activeTitle
if (title = activeTitle)
MsgBox % title . "`n" . activeTitle . "`nAre the same"
else
MsgBox % title . "`n" . activeTitle . "`nAre different"
I tried this script with 'Waterfox'- and 'Vivaldi'-browsers and there I get normal behaviour saying they are the same.
I suspect there's a relation with when I copy-paste the title from 'Window Spy' to 'SciTE4AutoHotkey', it adds a question-mark.
Although it doesn't add the question-mark when I paste it here or in 'Notepad' ... ?
The title with question-mark is "test - Bing ?- Microsoft Edge"
Again I don't have this question-mark when copying it from 'Window Spy" when 'Waterfox' or 'Vivaldi' is active.
There seems to be something wrong with getting a 'Windows Edge'-title ?