MZ How to hide/show the certain windows?

I currently have this set up:

Window_BattleEnemy.prototype.show = function() {
this.refresh();
this.forceSelect(0);
$gameTemp.clearTouchState();
Window_Selectable.prototype.show.call(this);
Window_ActorCommand.prototype.update = function() {
this.hide();
};
};

to hide the Actor_Command window when the BattleEnemy window is open, however it does not reappear when I press back from the battle enemy window. I understand that this is because I haven't written any code to show the window again after hiding it, but I'm not sure where I would place that. Any ideas?
There a reason you can't refer to your last thread on this, where someone was trying to help?
There a reason you can't refer to your last thread on this, where someone was trying to help?
1. It's been days
2. I don't know what he's talking about
3. This is a different issue now, I'm asking how to make the actor command window reappear when necessary
4. Internet janitor
1. It's been days
You can bump threads after a few days. I forget what the rules were, 24 or 72 hours.
2. I don't know what he's talking about
You could always ask him to clarify or explain stuff you don't understand

4. Internet janitor
Yeah, actually, the mods go to a lot of trouble to put stuff in the right place and reduce clutter so someone else with the same issue can easily find a solution. It would be frustrating to find a thread with the same issue, only for it to be unresolved because the OP decided to make a new one.
You could always update the thread with the evolution of the issue as well ask the member what they mean if you're not so certain. Talking to each other is always an option.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-hide-show-the-certain-windows.174826/