So far I've only come across with the "thank you" meaning of merci. Recently, I saw this phrase:
Merci de vous enregistrer au moins une heure avant de partir.
Which translates to
Please register at least one hour before leaving.
The original has roughly the same meaning as "Veuillez vous enregistrer au moins une heure avant de partir.". When can and I use "Merci" that way?