Scottofallthings Posted July 30, 2020 Posted July 30, 2020 $hWnd = WinWaitActive("[CLASS:WindowsForms10.Window.8.app.0.141b42a_r11_ad1]") MsgBox($MB_SYSTEMMODAL, "", $hWnd) $sText=WinGetText($hWnd,"") MsgBox($MB_SYSTEMMODAL, "", $sText) I am trying to get the visible text from a window with the code above. I am able to successfully get the handle, but the script appears to pause on the WinGetText command. It will resume if I move the mouse over the window. Interestingly, the "AutoIt V3 Window Info tool" has a similar behavior. If I put the crosshairs on that window, it will pause until I move the mouse over the window. It will then populate all the info in the tool. I also cannot inspect any of the controls in the window. I think the window maybe some sort of "wrapper" for older code, but not sure. Any help on keeping the script from pausing would be much appreciated.
Bert Posted July 30, 2020 Posted July 30, 2020 The Vollatran project My blog: http://www.vollysinterestingshit.com/
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