<p>Here is an additional example:</p>
<p>“Hopefully, you will smile at me.” (“I hope that you will smile at me.”)
Some people think this implies, “You will smile at me hopefully” or “You will smile at me in a promising manner,” as if the speaker is commanding the person to smile promisingly at him or her. But “hopefully” is functioning as a sentence adverb, which comments on the entire sentence; a sentence adverb does not modify a verb. So the structure of “Hopefully, you will smile at me” is acceptable, unless there is a chance of confusion or disapproval by the audience, in which case you should play it safe and say “I hope [that] you will smile at me,” although I don’t know why you would try to be formal or want to be grammatically correct about a statement like that.</p>