First; All you're doing is recording your mouse clicks? So your clicks in game will repeat over and over and over. Of course you got caught.
Second; The reason you just got banned, and the reason a whole bunch of other people got banned was because they ban in waves, and get everyone at once...