robertkwild Posted April 7, 2021 Posted April 7, 2021 hi all, can anyone please tell me what im doing wrong here in my code im trying to get it to click "OK" on the windows box labelled class "#32770" i know i could use the actual title of the windows box but im trying this out first WinWait("[CLASS:#32770]") ControlClick ("[CLASS:#32770]", "", "OK") what am i doing wrong please? thanks, rob
Nine Posted April 7, 2021 Posted April 7, 2021 Make sure you got success after each statement by adding error handling. BTW OK button should not have control class OK. Use Au3info.exe tool to find its true properties. You should always try to get handle first (WinGetHandle / ControlGetHandle). You can also check with au3info if you grab the right handle. Very useful when it gets time to debug such of your code. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
robertkwild Posted April 8, 2021 Author Posted April 8, 2021 ok so if i use for the title the "class" instead of "title" i should use the control id of "class" or "classnn"
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