jagex really doesnt have any way of knowing if you are using an illegal mousekey script or not, unless you seriously over-do it for an extended period of time (I'm talking about using your script for hours). if you slowed down the mouse speed jagex likely wouldn't be able to detect you through any means. hypothetically, of course, your script is "illegal". to make it legal, alternate between the spacebar and another button, say Shift. Have the spacebar click the space, and have shift move to the next unclean herb (you could use loops and such to make this more efficient), and just spam click shift and space. perfectly legal. i think using the mouse wheel is legal as well.