Information générale
Catégorie:
Fonctions Windows API
Hi Ed,
>GetWindow as you're using it will only close child Windows of the current >Desktop window. It will find at most one occurance, and not that if the Window >in question is not active.
No, the loop in my program finds the appropriate window. I could test this also by adding a messagebox which confirms when the matching window is found.
>You'd be better off using the Wscript.Shell's AppActivate to bring the desired >application to the active state and its SendKeys method to send whatever >keystrokes were needed to shut down the application; it's documented in the >help for the Windows Scripting Host as pointed to in my signature block.
Yes, I would give it a try with WSH.
Thanks & regards
Vijay
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement