[ACE]Global Variable/Method to invoke when a Window is Used

is there any method or global variable I can invoke which return true or false or anything which I can know that a message/choice(or any other window like shop etc) window is currently being currently displayed or used?

I am kinda facing a race condition with my script in which I need to prevent the event from happening when a window will be shown...
Look at Game_Message and there should be some "busy?" methods or something.
Look at Game_Message and there should be some "busy?" methods or something.
HAHAHA Thank you =) and a million thanks for your quick reply  😀
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/ace-global-variable-method-to-invoke-when-a-window-is-used.19794/