09-28-2024, 05:06 AM
The regex does not match. This code with the same regex prints "not found".
Triggers.Window[TWEvent.ActiveNew, null, null, "**m chrome.exe||msedge.exe||brave.exe"] = o => {
var w = o.Window;
print.it("Browser Triggered", w);
if (Regex.IsMatch(w.Name, "^(?=.*\b(Chrome|Edge|Brave)\b)(?!.*\bWork - Microsoft Edge\b).*")) {
print.it("Browser Found");
} else {
print.it("Browser Not Found");
}
};