condition to check if the dialogue window is open

Hello,

I have a parallel process that runs a simple homemade clock (wait 60 frames, add 1 to the variable "minutes", that sort of thing). I'd like the clock to stop whenever the dialogue window is open (i.e. whenever you're talking to an NPC or buying something, etc.). Is there a way to have a condition that checks to see if the dialogue window is open or not?

Thanks!
For the message window:
Code:
$gameMessage.isBusy()

For shop and other scenes, i think you dont have to worry, because parallel events on map only work on th Scene_Map.
If you are in Menu or Shop, this is another Scene. Not 100% sure about that, but i think it is right.
Wow, that was fast, thanks! Works perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/condition-to-check-if-the-dialogue-window-is-open.107582/