QUOTE(GBHis @ Jun 5 2008, 07:12 AM)

I had a look at the xml files for menus yesterday. Are you 100% positive it isn't possible? I'll give it a shot when I get home.
Damn near 100%. the .xml files control appearance of menus, not function*. Since the OP isn't looking to change the menu appearance, but instead make it auto-close when there is nothing left to display, the closest they'll get is that mod that was already linked.
*citing any of the mods which affect sliders doesn't really count since there was already an ability for those values within the game, they were just limited. This requires actual actions to be executed.