Jump to content

Need to clear a dialog box that randomly pops up

Recommended Posts

I have a program that runs that occasionally runs afowl of another, background, process.  This requires my clcking an "OK" button on a pop up dialog box.  Is there a way I could have a script running that would check for this box every so often, and, if open, click the OK button?


Link to comment
Share on other sites

$s = "Title of your window"
While True
    $h = WinWait($s)
    ControlClick($h,"",1) ; your control might not be id = 1...check the autoit info tools

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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

  • Recently Browsing   0 members

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