Add function object by double clicking layout white space and selecting it (like you would add keyboard or mouse, etc). Then you can use function events and actions.
You will need a basic scripting understanding of what functions are/do though.
A function isn't going to help. Only one Layout exists at a time, so you need to store the data, in a global, for example, and grab it when the new layout starts-up.
I will try the global variables approach.
Thanks both of you