I vote for a function like this or this functionality to be added to one of the current autoit functions... or enable the other functions to work off of PID as well as the hwnd for finding windows. It makes sense to be able to simply run $pid = run(bla app) and then winactivate($pid)