I've had on all my characters for years, a UO macro that I call the "swissarmy Knife" macro.
"Use Last Object
Last Target"
It can be used to repeat digs mining, repeat casts fishing, repeat attempts picking locks, repeat using scrolls from the same stack on the same target ...
and, most importantly, get into stacked corpses. IF I click once on what should be a lootable corpse, and get "You may not loot this corpse" or the message for a corpse one doesn't have rights to, I hit the macro, and it goes to the next corpse in the pile (and can go through all of them that I have rights to, with multiple uses), without having to muck with all-names or holding down CTRL-shift.