mireazma Posted September 20, 2022 Share Posted September 20, 2022 The application I is most probably made with MSVS. Here's how I reproduced a similar one: Here's the AutoIt Window info: Here's the code I used, results are commented in the code: expandcollapse popupGlobal $window = "AU3 sand" WinActivate($window) WinWaitActive($window) Global $txt2 = ControlGetText($window, "", "[CLASSNN:Edit1]") MsgBox(0, "", $txt2) ; refocused as advised in the help file WinActivate($window) WinWaitActive($window) ; edit - yields 0 Global $grab1 = ControlCommand($window, "", "[CLASS:Edit; INSTANCE:1]", "FindString",'fast') ; edit - yields 0 Global $grab2 = ControlCommand($window, "", "[ID:1001]", "FindString",'fast') ; combo - yields 0 Global $grab3 = ControlCommand($window, "", "[CLASS:WindowsForms10.COMBOBOX.app.0.141b42a_r24_ad1; INSTANCE:1", "FindString",'fast') ; combo - yields 0 Global $grab4 = ControlCommand($window, "", "[NAME:comboBox2]", "FindString",'fast') ; combo - yields 0 Global $grab5 = ControlCommand($window, "", "[ID:198018]", "FindString",'fast') ; list - yields 0 Global $grab6 = ControlCommand($window, "", "[CLASS:Progman; INSTANCE:1]", "FindString",'fast') ; the list doesn't have an ID so I can't use `ID` MsgBox(0, "", $grab1 & $grab2 & $grab3 & $grab4 & $grab5 & $grab6) ; yields 000000 WinActivate($window) WinWaitActive($window) ; does nothing ControlCommand($window, "", "[CLASS:WindowsForms10.COMBOBOX.app.0.141b42a_r24_ad1; INSTANCE:1", "SelectString",'medium') ; does nothing ControlCommand($window, "", "[CLASS:Progman; INSTANCE:1]", "SelectString",'medium') ; does nothing ControlCommand($window, "", "[CLASS:Progman; INSTANCE:1]", "SelectString",'medium') I've also checked this topic to no avail: https://www.autoitscript.com/forum/topic/123094-select-value-from-dropdown/ Link to comment Share on other sites More sharing options...
Nine Posted September 20, 2022 Share Posted September 20, 2022 You are missing a "]" Global $grab3 = ControlCommand($window, "", "[CLASS:WindowsForms10.COMBOBOX.app.0.141b42a_r24_ad1; INSTANCE:1]", "FindString",'fast') “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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
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