On demand it loots the nearest corpse, loots the corpse your targeting cursor rolls over, and harvests any available hide, bone, or meat (from animal corpses).
In game, go to Commands > Macros, create a new macro, and paste the below code. Name the macro “Loot” and select an icon.
Put this is in a toolbar slot (or bind it to a hot key) and execute as needed. For one corpse, that’s it. When dealing with multiple corpses, however, roll your targeting cursor over each in turn to rapidly loot and/or harvest them all.
/loot all;
;
/loot corpse;
/harvest hide;
;
/harvest bone;
;
/harvest meat;
;