I understand it perfectly .
So I think that there's a main LUA script that names the buttons and then name the function (the other LUA scripts, if you didn't know every button, everything in game is scripted in LUA ) I get what you wanna say, I will try to do it later..
PS: I don't know if that will work, because the game was not designed for that.. so it's basically reverse engineering which is the most complicated thing to do, and obviously i have no clue about what to do for that..
But I will see, let's hope it will work.