hi steve,
I would discourage to use windows object for reasons you have put.
I would recommend to use
session.utils.put("key","value")
session.utils.get("key")
This way, the "key" value is saved for entire session irrespective of which screen you are in.
Check here:
Scripting Utility Methods - SAP Imagineering - SCN Wiki
@Olivier..There are some screen events which you can use to execute a script when user press ENTER rather than clicking on the button.
You can find more about it over here:
Available Events for Scripting - SAP Imagineering - SCN Wiki
Let me know if you need example for this.
Regards,
Sushant