Jump to content
Sign in to follow this  
Dracil

Check text on other application

Recommended Posts

Dracil

Ok i want my autoit code to check a text on my other application. Now im using autoit v3 Window info and i get this info, theres a specific static field on the application that change values and i want to grab that info.

In the WIndow Info it says:

>>>> Control <<<<

Class: MozillaWindowClass

Instance: 5

ClassnameNN: MozillaWindowClass5

Advanced (Class): [CLASS:MozillaWindowClass; INSTANCE:5]

ID:

Text: Hello

Position: 0, 198

Size: 1663, 774

ControlClick Coords: 1186, 395

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x00530652

Now you can see the Text : Hello

i want to grab that because that changes, sometimes its Hello sometimes its something else. How do i do that?

And i would like to avoid the way to open up the window and use a OCR to find out that value.

Thanks in advance!

Share this post


Link to post
Share on other sites
Dracil

Thanks alot James! Now what about Class? If i have a window active how to i grab the Class value out of that window?

Share this post


Link to post
Share on other sites
somdcomputerguy

With the AutoIt Window Info Tool..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
Dracil

Yes but how to do that in autoit script? since the title changes in this situation i have.

Share this post


Link to post
Share on other sites
Dracil

Im trying to get the title of the active window, is there something similair to this i can do ?

$hWnd = ControlGetHandle ( "[Active]", "", "Title")
or

$hWnd = ControlGetHandle ( "[Active]", "", "Class")

This wont get me anything.. just an idea

Share this post


Link to post
Share on other sites
Dracil

Thanks alot snowmaker! anyway to find out Class value ?

Share this post


Link to post
Share on other sites
Delta

Thanks alot snowmaker! anyway to find out Class value ?

It's right there in your first post.

Class: MozillaWindowClass


[size="1"]Please stop confusing "how to" with "how do"[/size]

Share this post


Link to post
Share on other sites
Dracil

Yes but the class changed, its not mozilla im checking, that was just an example.

I need a code to check the class, because it changes everytime i start it.

Im sorry if im bombing with questions, but i really appreciate the help!

Edited by Dracil

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.