HockeyFan Posted July 13, 2005 Posted July 13, 2005 Can someone help me with the code to close an active window without haveing to manually close the window with a mouse click? I'm attempting to script an unattened install of a software package, but at the end of the installation, the program opens a message box stating installation has completed and requires clicking the OK button to close the window. My script won't continue unil the window is closed. Is there a simple way to handle this?? Thanks!
Moderators SmOke_N Posted July 13, 2005 Moderators Posted July 13, 2005 (edited) WinKill("Your Window Name") ? Or Get the Control Id of the the Button with AutoInfo. ControlClick("Your Window Name", "", controlID, "left", 1) Edited July 13, 2005 by ronsrules Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
HockeyFan Posted July 13, 2005 Author Posted July 13, 2005 Thanks Ron.... Don't know how I missed WinKill. Thanks again.
Moderators SmOke_N Posted July 13, 2005 Moderators Posted July 13, 2005 No problem, glad it helped. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now