Pretzel_Jesus
asked on
Minimize Specific Window Using VBScript
I want a VBScript that checks all currently opens windows and if a specific window exists (by title) I want the script to minimize it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
but you need to remember that AppActivate need the FULL title, or a Prefix or suffix of it.
this can have unexpected consequences
WSH help....
"In determining which application to activate, the specified title is compared to the title string of each running application. If no exact match exists, any application whose title string begins with title is activated. If an application still cannot be found, any application whose title string ends with title is activated. If more than one instance of the application named by title exists, one instance is arbitrarily activated."
eg if you open a new notepad application. empty. then run the following scrip
Open in new window