Specifically for selectWindow it seems that there are undocumented Regex LIKE features that seem to search in a "greedy fashion causing UI vision to take to long.
It seems like a “-”(dash) is treated like a range when included in a “title=” and if you only have one dash you can fix this with another undocumented feature by replacing the dash with a “*?”. the question mark after in regex means give the smallest match i.e.don’t ber “greedy”. ( I suspect there are other undocumment characters also)
Example:
before title=Top topics - Ui.Vision, AI & OCR Community Forums
after title=Top topics *? Ui.Vision, AI & OCR Community Forums
Now, for anyone who has just a few(or one) tabs open with that exact same title both the before and after will work. (after will even be slower).
BUT, if you have dozens or more tabs with similair enough titles UIvisiion seems to try and search them all thus timing out.
(I am not sure if there is a way that it could be programmed to stop after the first match, but that would be ideal.)
This problem gets expanded when you try to also use more than 2 “*”(asteriks) as it is even more to search.
The below real world examples are using an (needed for other macros) extension that adds the url to the end of the title. The searches are looking for any steam game page open. Remeber I ussually have over a hundred similar tabs open that have a title like with this in the middle "on Steam - https://store.steampowered.com/app/*
(HTTPS was removed from all the urls below for forum posting reasons)
Working Examples:
(exact match to one page) title=Potion Problems on Steam - ://store.steampowered.com/app/3306050/Potion_Problems/
(dash replaced) title=Potion Problems on Steam *? ://store.steampowered.com/app/3306050/Potion_Problems/
(title generalized) title=* on Steam - ://store.steampowered.com/app/3306050/Potion_Problems/
(title generalized dash replaced) title=* on Steam *? ://store.steampowered.com/app/3306050/Potion_Problems/
(url generalized) title=Potion Problems on Steam - ://store.steampowered.com/app/*
(title generalized dash replaced) title=Potion Problems on Steam ? ://store.steampowered.com/app/
Not Working Examples that are wanted:
(title & url generalized) title=* on Steam - ://store.steampowered.com/app/*
(title & url generalized dahs replaced) title=* on Steam ? ://store.steampowered.com/app/