Close ''Picture-Based Menu'' when use an item.

I made a customized menu based on this post, and a situation I'm going through, is that I want to use an item in a certain specific place on the map and right after there is a kind of cutscene, but the menu doesn't close and ends up right in front of it.

I wanted to know if it is possible to close it when I use the item.


1662697101638.png

This is the specific event of the item.

1662697285501.png

There is a cutscene of the bookcase moving to the side, but the menu ends up getting in the way of her view.

Any idea what I can do? I tried using switches and it didn't work.
closing the menu should be possible, if you use labels as well.
I made one as well for MV which also works in MZ, it's slightly
different, but the purpose is the same.

depending how the item is used on the menu, would give a bit
more insight.

because if it's through the scene, it can close after that (by switch
turning the menu ON/OFF).

by the first image, its done by a common event, but do you call the menu
by event on the map itself or through item?

Original thread: https://forums.rpgmakerweb.com/threads/close-picture-based-menu-when-use-an-item.151178/