This ia a macro here for looting

But I agree, there isn't a reliable way to do it..and I also just click.