futilely

adverb
  1. in a way that is incapable of producing any useful result; pointlessly or ineffectually

Examples