I doubt it would be legal. Sounds like a 3rd party script. I'm almost certain there's no method for dragging/dropping resources in that manner within the function of the Enhanced client.
Are you buying the ore from faction vendors? Or are you in training? Just wondering why you wouldn't smelt as you mine.