watch the unofficial addons section. there is a tool out there already which is doing exactly what you want, and even switches to the "action" on track. and you even can select several cars which run in a pack, so the tool tries to focus on those cars.