mraymond Posted July 11, 2008 Share Posted July 11, 2008 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 Text: 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 VST_XPlatfromWindow 1 >>>> Hidden Text <<<< Link to comment Share on other sites More sharing options...
mraymond Posted July 11, 2008 Author Share Posted July 11, 2008 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", "" ) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now