Jump to content
Sign in to follow this  
YogeshDikshit

Getting window text() / Window Title()

Recommended Posts

YogeshDikshit

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

Share this post


Link to post
Share on other sites
PsaltyDS

"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

Share this post


Link to post
Share on other sites
YogeshDikshit

"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

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  

×