The smallest table was the starting point of the script creation..
Anyway, here is a debug version of the script. It will log all function calls and the parameters passed to those functions in a file called PokerPad.txt
http://www.autohotkey.net/~Xander/PokerPad-Debug.zip
Extract this zip to current PokerPad folder. Close PokerPad and run this version instead. You only need to run it up until the script doesn't something wrong. Then just send the PokerPad.txt file to me and close the debugging script and open back up the original.