What you describe is a form of botting, which means it's against the TOS/EULA for the game so I'd recommend you don't do it, being a bannable offense n' all that...

edit: of course if you really want to do it, the G15 software is more than capable of it, you just need to add in delays etc iirc.