How to place the cursor in a specific item of a list?

Hi all!

Im making my custom menus and I go back and forth between them and its kind of a bummer to have to go all the way back to the item I was positioned last. Example.

My MAIN MENU is: skills, options, achievements, save.

So my cursor starts at SKILLS when I go to the MAIN MENU and lets say I want to save my game, so I go to SAVE and once im in there I save my game, after saving, it automatically calls the MAIN MENU back and the cursor is back at skills, the question here is, HOW do I make my cursor appear at SAVE (since it was the last item selected from the MAIN MENU).

Thanks.
Did you code the entire thing or is it an evented system? Regardless of which one it is, you should provide screenshots of how the system is set so people can help.
Hi!

I didnt code it, I use an evented system. I attached some pictures.

Pic1 = I open my menu and my cursor starts at the first item, Inventory.
Pic2 = I go to the option Save -Load.
Pic3 = I save the game.
Pic4 = Automatically takes me back to main menu, where the cursor its positioned on the first item of the list Inventory, An I would want to be positioned in the last Item I picked, in this case, Save - Load.
It's pretty hard to provide suggestions without knowing the structure of your event but I'll just say what I'd do if I was in this situation. Instead of resetting the cursor(selected item), you can save the last item index or something temporarily to a variable so that after the scene change, it returns to highlighting that command.
Makes sense, but the question here is, how do I save the item index on a variable. Im looking at rpg_scenes and I cant find out which is the code that tells the cursor to be placed on the first item of the menu list. (index 0 of the list)

Im looking on the wrong .js?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-place-the-cursor-in-a-specific-item-of-a-list.124024/