Jump to content
Sign in to follow this  
tonauac

extract text from a wpf window

Recommended Posts

tonauac

hey how can I extract text from a WPF window

this is what I am doing

include <DotNetIdentification.au3>
Run("F:\Shashank\shashank\DEbug 09\Debug\RibbonDemo.exe")
$WindowName = "Login Version"
$WindowText = ""

$var1 = NET_ControlGetHandleByName( $WindowName,$WindowText,"txtUser")
MsgBox("64","ControlGetHandle",$var1)
$var2=ControlGetText("Login Version","user",$var1)
MsgBox("64","ControlGetText",$var2)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×