According to the documentation, WinGetText and WinGetTitle should return numeric 0 on no match.
Instead these functions return string "0" in this case:
autoIt.WinGetTitle('NonexistingWindow', '')
"0"
autoIt.WinGetText('NonexistingWindow', '')
"0"
This means, that
if (autoIt.WinGetText('NonexistingWindow', '')) WScript.Echo('NonexistingWindow exists');
will display 'NonexistingWindow exists'.




