Sign in to follow this  
Followers 0
HockeyFan

Help!

4 posts in this topic

:)

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! :evil:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

WinKill("Your Window Name") ?

Or Get the Control Id of the the Button with AutoInfo.

ControlClick("Your Window Name", "", controlID, "left", 1)

Edited 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.

Share this post


Link to post
Share on other sites

Thanks Ron.... :evil:

Don't know how I missed WinKill.

Thanks again. :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0