When you open a players paper doll and d-click their backpack, that then becomes your last object but if you use last object next to the person it does not open their bag.
In case it helps, I use the Last Object macro that comes with the client. I don't use the Razor version (if there even is one).