MV Highlight last command used in menu?

Hi, not sure if this is the correct spot to post this, but here goes...

For RMMV, I'm looking for a plugin, script, snippet, event, or something that can highlight a command in the menu that has already been used. I'm using "YEP Main Menu Manager" to make a common event command. I'm using that command to show a mini menu of sorts. When selected, the menu closes and my mini menu that uses choice selection pops up. When I select a choice to go back to the menu, the menu commands are reset, and "Item" is highlighted instead of my common event command. I know this happens because of the menu being closed, but is there a way to re-highlight a previous used command? I've looked around on google and other places but can't seem to find anything. I also looked in "rpg_scenes.js" and I don't know what to look for if making a call script command. Thanks.
I think rpg_scenes.js is the wrong place to look. Have a look at rpg_windows.js. Specifically I think you need to set Window_MenuCommand._lastCommandSymbol to the symbol of your common event command.
by default it uses the last command until the menu is totally closed.
if you can return from the command event from the main menu, that you
can eomereolsson solution.

we dont know how your mini menu look likes and what happens there,
but you most like need a scriptcall in there to return the last command used.
I think rpg_scenes.js is the wrong place to look. Have a look at rpg_windows.js. Specifically I think you need to set Window_MenuCommand._lastCommandSymbol to the symbol of your common event command.
Thanks for your reply.

Okay, I seen that in rpg_window.js, but there are three of them. Do I edit one of these or set it in an event script call? I also don't know the format it should be in. I don't really have much scripting experience. lol According to the plugin, the symbol is just common event.

I tried this in a call script event, but just got a "syntax error, unexpected identifier".
Code:
Window_MenuCommand._lastCommandSymbol = common event
Try putting common event in quotation marks (like this 'common event'). Could be that doing it in an event script call is enough, but I fear it will get overwritten again when you actually open the menu.
Maybe there is something in the menu core we can use, but we'll probably need like a mini plugin or something. Unfortunately I can't take a closer look right now.
Try putting common event in quotation marks (like this 'common event'). Could be that doing it in an event script call is enough, but I fear it will get overwritten again when you actually open the menu.
Maybe there is something in the menu core we can use, but we'll probably need like a mini plugin or something. Unfortunately I can't take a closer look right now.
Alright, I'll try that when I get a chance later.

Original thread: https://forums.rpgmakerweb.com/threads/highlight-last-command-used-in-menu.166488/