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?


Share this post

Link to post
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.

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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.