I don't think that screenshot is showing the names of mouseover. All the API calls to the RealID friends take 'friendIndex' as the parameter. His macro most likely looped through his friend list and displayed their names.