MZ How to show Menu Item directly to a specific category instead "Items"?

Hello guys,

I'm making a plugin (MZ) and my goal is, by script, show the Menu Item directly to a specific category (Weapons, Armors, whatever) instead always "Items", like a shortcut.

I'm doing this, but... as I expected, always goes to "Items" and the user needs to navigate to the category he wants.
JavaScript:
SceneManager.push(Scene_Item);

Is there a solution?

Thank you in advance.
Hi!
I think you can use this:
SceneManager.push(Scene_Item)
SceneManager._scene._categoryWindow.selectSymbol('symbol')
Just replace the symbol with:
'item'
'weapon'
'armor'
'keyItem'

Don't know if when you push the item scene it will go to the symbol before that.
It works on the console.log, don't know if it will work on an event.
Hello @Eliaquim, I don't know how to tell you "THANK YOU!"

Works like a charm.
I just needed to add a simple timeout because "SceneManager._scene" is undefined immediately after push the scene, so... the final code is:

Push Scene_Item... wait 100 ms, and the go to the category.
JavaScript:
    SceneManager.push(Scene_Item);
    setTimeout(function () {
        SceneManager._scene._categoryWindow.selectSymbol('weapon');
    }, 100);

Thank you a lot. :LZScheeze:
Hello @Eliaquim, I don't know how to tell you "THANK YOU!"

Works like a charm.
I just needed to add a simple timeout because "SceneManager._scene" is undefined immediately after push the scene, so... the final code is:

Push Scene_Item... wait 100 ms, and the go to the category.
JavaScript:
    SceneManager.push(Scene_Item);
    setTimeout(function () {
        SceneManager._scene._categoryWindow.selectSymbol('weapon');
    }, 100);

Thank you a lot. :LZScheeze:
Wow! Nice workaround! I will remember this! haha!
Glad it worked!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-show-menu-item-directly-to-a-specific-category-instead-items.126475/