vainly

adverb
  1. without success; unsuccessfully
  2. in a conceited or excessively proud manner

Examples