How to check if Window_ActorCommand is open

Hey guys! I wondering what script I can use to check whether or not Window_ActorCommand is open?
I've tried everything but I'm not very good at javascript.
SceneManager._scene._actorCommandWindow.active

You can find it easily if you check SceneManager._scene inside a console.
It worked thanks! 😀 😀

It only seems to work on actorCommandWindow

cause when I try to enter helpWindow, battleSkillWindow and battleStatusWindow.

It doesn't seem to work. Thanks though 😀
Simple solution, type Scene manager._scene into the console (call it through f8 when you are in battle) and look at it 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-window_actorcommand-is-open.83544/