Jump to content
Sign in to follow this  

Read text from a cell in a table of a Windows app

Recommended Posts


I have a Windows application I'm trying to automate some testing for, and I want to read data from a selected cell. I have not had anything but null or 0 returned, so how can I get the data out of the cell. The Control shows no text there, but the data is showing in the Visible Text. I've attached a screen shot showing the application and the selected cell which has a "1" in it (without the quotes). Note that is the 3rd item showing in the Visible text. I want that "1".

>>>> Window <<<<

Title: Logger Pro - Untitled.cmbl*

Class: Afx:00400000:b:00010011:00000006:00BF01C1

Position: -4, -4

Size: 1032, 746

Style: 0x15CFC000

ExStyle: 0x00000100

Handle: 0x005501CC

>>>> Control <<<<

Class: RichEdit20W

Instance: 1

ClassnameNN: RichEdit20W1

Advanced (Class): [CLASS:RichEdit20W; INSTANCE:1]

ID: 102


Position: 44, 115

Size: 81, 23

ControlClick Coords: 41, 11

Style: 0x50800044

ExStyle: 0x00000200

Handle: 0x008102AE

>>>> Mouse <<<<

Position: 85, 172

Cursor ID: 0

Color: 0xFFFFFF

>>>> StatusBar <<<<

>>>> Visible Text <<<<

Page 1



>>>> Hidden Text <<<<


Share this post

Link to post
Share on other sites

I think I may have figured it out. These two lines appear to have given me what I was looking for:

ControlFocus ( "Logger Pro", "", "[CLASS:RichEdit20W; INSTANCE:1]" )

$data1 = ControlCommand ("Logger Pro", "", "[CLASS:RichEdit20W; INSTANCE:1]", "GetSelected", "" )

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.