Jump to content

Getting window text() / Window Title()


Recommended Posts

Pls help me in using WinGetText() function. The desired window <<Control>> info using A3 Window info tool is as follows:

<<Control>>

Property Value

Class classMyWinMdiChildFram

Instance 1

ID 65281

Can we use any of these info...

I use WinGetText("[active]") for the desired window being active. But actually it shows the text info for all opened windows in my application

Thanks & BR,

Yogesh

Link to comment
Share on other sites

"Window" in that context means top level windows (direct child of the desktop). Not sub-windows of your application's window. If your app is currently active then all visible text in that app window is the correct return value. Try this instead:

$sText = ControlGetText("[ACTIVE]", "", "[CLASS:classMyWinMdiChildFram; INSTANCE:1]")

:blink:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

"Window" in that context means top level windows (direct child of the desktop). Not sub-windows of your application's window. If your app is currently active then all visible text in that app window is the correct return value. Try this instead:

$sText = ControlGetText("[ACTIVE]", "", "[CLASS:classMyWinMdiChildFram; INSTANCE:1]")

:blink:

Thanks...It worked
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...