 Investigators have determined that the gunman Thomas Crook searched online a week before the shooting for the dates of Trump speaking events and the Democratic National Convention. They've also found that he visited the site of the Trump rally in Butler, Pennsylvania on July 7th, about a week before the event took place. He then visited the site again the morning of the rally, then left and later returned and carried out the shooting.