Jump to content
Sign in to follow this  
Diode

Can't Read Text Label third party software

Recommended Posts

Diode

I have been automating the use of a third party software. The main form in the software has some buttons. When you click on the button I need, a second form opens up. This second form has a start "checksum" button, and after pressing the button the form makes visible a text label on top of a "status bar". When done the result of the check sum is written to the text label above the status bar. I need to get this check sum but AutoIt V3 Window Info does not see the result or as a matter of fact any of the text in this label.

The Window Info does highlight the text label and outputs the following, keep in mind that the text label says: "Check Sum = FEE4E1B9"

>>>> Window <<<<

Title: Checksum Flash

Class: QWidget

Position: 1497, 300

Size: 392, 274

Style: 0x96C00000

ExStyle: 0x00000100

Handle: 0x001B067C

>>>> Control <<<<

Class: QWidget

Instance: 3

ClassnameNN: QWidget3

Advanced (Class): [CLASS:QWidget; INSTANCE:3]

ID:

Text: FlashProgrammer

Position: 80, 144

Size: 119, 13

ControlClick Coords: 60, 7

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x001E0B8A

>>>> Mouse <<<<

Position: 1640, 480

Cursor ID: 2

Color: 0xECE9D8

>>>> StatusBar <<<<

>>>> Visible Text <<<<

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

>>>> Hidden Text <<<<

FlashProgrammer

The whole form according to Window Info provides:

>>>> Window <<<<

Title: Checksum Flash

Class: QWidget

Position: 590, 251

Size: 392, 274

Style: 0x96C00000

ExStyle: 0x00000100

Handle: 0x001B067C

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle: 0x00170642

>>>> Mouse <<<<

Position: 822, 274

Cursor ID: 2

Color: 0x026AFE

>>>> StatusBar <<<<

>>>> Visible Text <<<<

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

FlashProgrammer

>>>> Hidden Text <<<<

FlashProgrammer

Any ideas on how to get the value of the text label. I have tried a couple of things but they normally return "". The computer will not have Microsoft Word.

Thank you for your help in advance

post-42411-1225464863_thumb.jpg

Share this post


Link to post
Share on other sites
Pain

It's a QWidget control (non standard API). Try with ControlGetText() but it will most likely give you wrong result. So unfortunately OCR is the only way.

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  

×