Jump to content

Recommended Posts

Posted
$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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...