Jump to content

extract text from a wpf window


tonauac
 Share

Recommended Posts

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...