» Tue Nov 20, 2012 7:12 pm
I don't think there is a function for checking whether or not the player is in a specific menu, but there is a function called http://www.creationkit.com/IsInMenuMode_-_Utility. The function isn't perfect since not all menus are considered to be true menus by the game engine. For example the alchemy crafting menu (might apply to all crafting menus) isn't considered a true menu since it doesn't pause the game. In such cases you can detect the menu by checking for the side effects of being in a menu. The alchemy crafting menu disables looking controls so an open menu can be detected by periodically checking the value returned by the IsLookingControlsEnabled function.