This should be done as fast as possible and the range of the search should be as big as possible as well.
Im using this bool function below. It does the job.
However it takes long to run, i think because of multiple Findtypes and TStringList.Create. Since is crucial for me to react fast when a played is detected, theres a better aproach?
Any improvement will help.
Thanks so much
Originary Code