Was wondering why the directive #winactivateforce has not been used in these scripts?
I have done a lot of window manipulation in autohotkey over the years and placing this at the top of the script really helps with the winactivate commands. For windows that sometimes would activate, or never seem to activate - they work when this is used.