UI Automation is amazing, what bothered me immediately though, was the lack of functions in LarsJ's approach. This is UDF tries to wrap up his approach into functions. LarsJ put a ton of work into making simple examples and I was eventually able to follow along. I highly suggest reading through at least some of those examples before starting here.
When I was writing all of the functions, I started to notice more repetition and it started to remind me of the AutoIt window format of "TITLE:Wi