dizietemblesssma Posted May 22, 2021 Share Posted May 22, 2021 I'm investigating the potential of the openinventory function and I wish to know if there is a way to get this ui to open ontop of the MCM menu?At the moment if the MCM (or just the system menu) is open then I have to close it to see the inventory menu. diziet Link to comment Share on other sites More sharing options...
dylbill Posted May 22, 2021 Share Posted May 22, 2021 As far as I know, there's not a way to open the container or inventory menu on top of the MCM. But you can force close the MCM, then open inventory after: Int I = 0 While I < 5 && UI.IsMenuOpen("Journal Menu") Input.TapKey(1) ;esc key I += 1 Utility.WaitMenuMode(0.2) EndWhile SomeReference.OpenInventory() Link to comment Share on other sites More sharing options...
dizietemblesssma Posted May 26, 2021 Author Share Posted May 26, 2021 If I read that right that gives 5 presses of the escape key( I =0,1,2,3,4), shouldn't that be 3 presses, I ask because if it's not the same for everyone then any odd mumber of extra presses have the initial problem? Thanks for the idea, I'm assuming that there is no programmatic way to open a particular MCM menu? diziet Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 26, 2021 Share Posted May 26, 2021 Open a particular MCM menu? Not off the top of my head. But since the list of mod menus are entries in an array, it could theoretically be possible to see if the array could be accessed and processed until a particular entry is found and then do something to make its menu show. But that would require digging into the code of SkyUI's MCM in a way that is beyond what the MCM API is capable of doing. (i.e. the actual source scripts for SkyUI would need to be obtained and examined rather than using the MCM API variants.) Link to comment Share on other sites More sharing options...
dylbill Posted May 26, 2021 Share Posted May 26, 2021 Yes, opening the menu again would be difficult, but using IsharaMeradinâs advice it may be possible. I put 5 clicks and the condition IsMenuOpen(âJournal Menuâ) because as you said everyoneâs setup is different. It will tap the key 5 times maximum but stop once the menu is closed. I use that same code in my latest mod Skyrim Currency System. You can also put a check after the while loop. If UI.IsMenuOpen(âJournal Menuâ) Debug.messagebox(âclose the menu to continueâ)Endif In case tapping the escape key didnât work for closing the menu. Link to comment Share on other sites More sharing options...
dizietemblesssma Posted May 29, 2021 Author Share Posted May 29, 2021 Thankyou both, browsing the MCM source is probably a little beyond me but I think I can do without:) diziet Link to comment Share on other sites More sharing options...
Recommended Posts