Okay. Now I really have a problem.
The command to open my selection menu works, i.e. it shows the window.
But the actor commands (the window on the right) is still active, so if I press enter, it executes the command from the old window. "hide()" doesn't help, the actor commands are still active. "close()" and "deactivate" just don't do anything.
The code I used to open the command?
aka. the same that is used opening the window to pick an enemy.
So... if someone can help me, please do :)

The command to open my selection menu works, i.e. it shows the window.
But the actor commands (the window on the right) is still active, so if I press enter, it executes the command from the old window. "hide()" doesn't help, the actor commands are still active. "close()" and "deactivate" just don't do anything.
The code I used to open the command?
JavaScript:
Scene_Battle.prototype.commandSwitch = function(){
this._commandWindow.refresh();
this._commandWindow.show();
this._commandWindow.select(0);
this._commandWindow.activate();
}
So... if someone can help me, please do :)