|We already know that Direct Object (DO) pronouns and Indirect Object (IO) pronouns are placed before the verb. For example:|
"Ana no me lo ha dicho."
Where "me" is the IO pronoun, "lo" is the DO pronoun and the verb is "ha dicho". (That would be in English "Anne didn't tell it to me".)
But, where should these pronouns should be placed when used either with infinitive, gerund or command forms?
It isn't as complicated as it seems. Both or any of these type of pronouns are always placed AFTER an infinitive, gerund or command form, becoming one word. Look:
Don't give me the book --> No me des el libro.
Hope this helps!