Alur71, that would only make it so that it is checked after each script is done. It probably would not be much quicker. I was saying you would need to insert a small function into his code like this: (Done on phone...)
Warning: Spoiler!IsHostile(){
aryHostileImgs := ["neut.png","neg5.png","neg10.png","war.png"]
WinGetActiveStats, Title, Width, Height, X, Y
For i, imgNm in aryHostileImgs
{
ImageSearch, OutputVarX, OutputVarY, 1, 1, Width / 3, Height, *30 %imgNm%
If(OutputVarX !=""){
Return True
}
}
Return False
}