@frankerebus i did something similar too.. but as you say, assuming you only play cod and no updates open in battle.net window...
now im trying to make a imagesearch to find play button to detect if cod is the active game on battle.net and to click on it... i already did works runing script manually, but when i tell to triggercmd to do it... it returns 0 on my search... trying to figure why... any idea? i replyied in other topic here
https://www.triggercmd.com/forum/topic/1303/problem-run-call-of-duty-warzone/8?_=1684440229512