I'm working on something like this for FF XIII now but using different methods than typing out a text macro. I have been trying to use gimx with motionjoy with keys all mapped the same plus hot keyboard pro to record all of the "keystrokes" submitted via the ps3 controller. I think though, that we play too fast via controller and it's best to just record the input one key at a time through the keyboard. I'll post if I get it to work properly.
I got it going without error for 3 hours so far. Set to run for 20 hours(2.5 minute run time * 500). I'll post a video soon. Should make FF XIII much more enjoyable to just speed through it all.