I havent seen this posted but if it has been oh well.
Step 1: Make a macro with: /Console reloadui in it
Step 2: While mining with the cast bar click the macro when its in the middle.
If done right the screen should freeze for a few seconds and when it comes back it should have the loot window open. loot it and repeat step 2 untill it wont let you mine anymore.
No doubt this works on herbalism too.
I am 90% sure this works if someone else would like to confirm it That would be awesome.