scripting is a different kind of game manipulate. most of the time it doesn't involve modifying the game, which most of the hacks do. it instead is a program to automate a repeative process, in this case attacking, then queuing the any rebuild, then keeping the screen on until it's ready for the next attack.
the simple level of this would require the user to wait long periods of time between attacks, which makes it a very poor choice. but the next level of scripting program actually take screen capture and make adjustments to the script based on those images. some are even so good that they could easily bypass the occasional code that pops up if you play to long.
I've played other games that had a big issue with scripting, and the only real solution was to change the way the grinding worked in the game, to a method that couldn't be scripted easily.