I try to create a script, which checks if the window appears during the run, except a couple of type windows. But the function gives me TRUE value, despite I add Exclude titles on both functions. It should return me a False value, but it doesn't work. The class I give is just a Folder class for testing purpose
Code: Select all
SettitleMatchMode, 2
If WinExist("ahk_class CabinetWClass",, "first folder") AND WinExist("ahk_class CabinetWClass",, "second folder") ; any folder can be opened except those two
WinActivate
else
Msgbox item does not exist