MV Close Actor Command Window when Targeting Enemy

Is there a way I can close the Actor Command window when targeting an enemy? Is this something I can change in the JS code or would I need a plugin?

1610493878884.png
a plugin is a change in the js code, so yes to both - you'll need a plugin to do this change.
a plugin is a change in the js code, so yes to both - you'll need a plugin to do this change.

Do you know of one that could help me achieve this?
Give this attached plugin a try and let me know if it accomplishes your needs. I did some limited testing in a fresh MV project, and it does what you're asking for.
Give this attached plugin a try and let me know if it accomplishes your needs. I did some limited testing in a fresh MV project, and it does what you're asking for.

Excellent! This does exactly what I need! Thank you very much!
Is there a way to also make the window close when you're selecting an ally as well? Such as when you're using a healing spell or item?
Sure. Give this one a try.
Sure. Give this one a try.
Yes! This does everything I need! Thank you very much!
Cool! You're welcome.

Original thread: https://forums.rpgmakerweb.com/threads/close-actor-command-window-when-targeting-enemy.132159/