Run Common Event before opening menu

Hi all,

is there a way to call a common event, when the game's menu is supposed to open?

So:
1. Press ESC
2. Process a Common Event
3. Open the menu

I found one that could call a common event after closing the menu, but nothing before the menu opens.

Thanks!
You could set up a parallel event with a conditional branch for the Escape button being pressed - if yes, it does whatever stuff you want, then concludes with Open Menu Screen.

Or you can explain what you want to happen and see if there's a way to hook it into the code for opening the menu.
There are some Plugin Commands I want to cast before opening the menu, so I thought the easiest way would be a common event to fit them all in.

It would be kind of a temporary solution, until I build my own menu and don't use the default one anymore. But I guess I could implement the Press Key logic in advance already and link the normal menu for now.

Original thread: https://forums.rpgmakerweb.com/threads/run-common-event-before-opening-menu.171875/