help with text box trigger switch

Hey, I'm currently using a custom menu that uses variables / pictures as a menu, and the default menu sreen is disabled. my problem is, that the menu appears during when characters are speaking / in battle if you press "cancel" button. the custom menu looks weird in the background, if it appears when characters are talking. now, there is a way to manually disable this custom menu during every event that a textbox appears, but

is there a way to make a text box to trigger a switch or a variable? that would make this much easier. every time a text box appears on screen, it would trigger a switch to disable the custom menu. i'm still very new with this program, and have zero knowledge about javascript (can do basic python). thanks!
It's impossible for us to help you without seeing your work.

The typical way to do a custom menu is to have a parallel event that's checking for a button to be triggered, but that would not function in battle, so I have no idea how you're doing this.

Please post screenshots of your events.
Hmmm, they might have on map battles or something...

$gameMessage.isBusy()

That gives you true for a conditional branch if you have a message box.
Sorry for misspeling my problem. I need a Switch(69) to be active when there is text on screen, and Switch(69) to be disabled, when there is no text on screen. Is it doable?
Sorry for misspeling my problem. I need a Switch(69) to be active when there is text on screen, and Switch(69) to be disabled, when there is no text on screen. Is it doable?
It's doable, but it would either require you to manually turn the switch on and off every time you have dialogue, or it would require a custom plugin. @rpgLord69 already mentioned an easier way to check whether or not there is text on the screen. If you need help figuring out how to use his advice, then you will need to provide the screenshots that @ATT_Turan asked for.
I somehow missed RPGlord69's post (IDK how that happened), but that solved it! Thanks!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-text-box-trigger-switch.166186/