Usually TASers look at memory addresses of data in the game. When they find a buffer overflow exploit (the game accidentally writing data that doesn't fit into where they're trying to write it thus letting you write data into the adjacent piece of memory) they figure out by trial and error the ways to manipulate what is written into the adjacent memory in order to achieve a desired result.
2complicated4me
Thanks for the explanation!