Jump to content

Help!


Recommended Posts

:)

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:

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...