shejeenarafee123 Posted September 23, 2022 Posted September 23, 2022 I am not getting anyway to locate the element, please help if someone aware about it, below code was working before changing the component to WPF: Func findEncoding($cpHandle, $encodingType, $upOrDown) activateClickWindow($cpHandle,1) Local $tmp = ControlGetText($cpHandle,"","[CLASS:ComboBox; INSTANCE:2]") Local $tmp1 = '' While Not($tmp == $encodingType) if Not($tmp == $tmp1) Then Send($upOrDown) Sleep(100) $tmp1 = $tmp activateClickWindow($cpHandle,1) $tmp = ControlGetText($cpHandle,"","[CLASS:ComboBox; INSTANCE:2]") Else $tmp1='Not Found' ConsoleWrite('Not Found') ExitLoop EndIf WEnd Return $tmp1EndFunc;
Luke94 Posted September 23, 2022 Posted September 23, 2022 I believe you'll be needing @junkew's IUIAutomation.
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