jtpr Posted April 3, 2015 Posted April 3, 2015 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? Jim
jdelaney Posted April 3, 2015 Posted April 3, 2015 (edited) $s = "Title of your window" While True $h = WinWait($s) Sleep(1000) WinActivate($h) ControlClick($h,"",1) ; your control might not be id = 1...check the autoit info tools WEnd Edited April 3, 2015 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.
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