You're right about CTRL+F4, I tend to use it to close browser windows. I meant ALT+F4.
When I use ALT+F4 while using Microsoft Office, it does ask me if I would like to save the file first. Now, if you end the process, that will just kill the program. ALT+F4 should act like hitting the X to close.
A lot of times, the reason Active Window doesn't work, is because you have the title of the window wrong in some way.
Also, if you're trying to display the window, try using SHOW instead, I find that works, while NORMAL may work, but could screw with the window if it's Maximized, which is irritating.
I made a command that you trigger by voice. Called - Windows Title.
Set Windows clipboard to '{WINDOWTITLEUNDERMOUSE}'
Write '[Blue] {WINDOWPROCESSUNDERMOUSE} <<< The Exe' to log
Write '[Blue] {WINDOWTITLEUNDERMOUSE} <<< The Windows Title' to log
It will copy the windows title to the clipboard for you, and tell you in the log what the Process name is and windows title is under the mouse cursor. You'll be surprised how the title changes while your in a menu of a program. I was in a program just a couple of days ago, that the title changed to "Analyze" just because where I was trying to paste data. I spent 30mins trying to figure out why the program wasn't working. Didn't make any sense, till I double check the windows title.
This command is also very handle for finding the windows title for different parts of VA if you try to make some commands to add commands to VA with your voice.
I have one that will save the mouse data location of where the mouse is, and when I go back to the command in VA, have it automatically add the mouse point data to my command for me. I love it.
Hope some of this might help!