Vasud Posted April 11, 2018 Share Posted April 11, 2018 I can't able to get the list data from windows screen. I did mention the control info as follows, >>>> Window <<<< Title: xxxxxxxxxxxx Class: TFrm_xxxxxx Position: 0, 0 Size: 1366, 728 Style: 0x17C80000 ExStyle: 0x00010100 Handle: 0x0000000000710230 >>>> Control <<<< Class: TtsDBGrid Instance: 1 ClassnameNN: TtsDBGrid1 Name: Advanced (Class): [CLASS:TtsDBGrid; INSTANCE:1] ID: 20122294 Text: Position: 0, 52 Size: 1360, 647 ControlClick Coords: 559, 74 Style: 0x54310000 ExStyle: 0x00000200 Handle: 0x0000000001330AB6 >>>> Mouse <<<< Position: 562, 152 Cursor ID: 0 Color: 0xE1F0FF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< ROD >>>> Hidden Text <<<< My Code is- Local $hControl = ControlGetHandle("Patient List", "", "[CLASS:TtsDBGrid; INSTANCE:1]") MsgBox($MB_SYSTEMMODAL, "Information", "Item Count: " & _GUICtrlListBox_GetCount($hControl)) MsgBox($MB_SYSTEMMODAL, "Information", "Item Count: " & _GUICtrlListView_GetItemCount($hControl)) And ITEM count returned in msgbox is 0. But i have more than ten rows of list on my windows. Can anyone help to me sort this issue. Link to comment Share on other sites More sharing options...
Danp2 Posted April 11, 2018 Share Posted April 11, 2018 If the built-in functions don't work, then you could try IUIAutomation. Vasud 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Vasud Posted April 11, 2018 Author Share Posted April 11, 2018 Thanks for your response Danp2... Link which you sent is too long. Since i need quick solution, can you help me out with the script that will get items from list view. Earthshine 1 Link to comment Share on other sites More sharing options...
Danp2 Posted April 11, 2018 Share Posted April 11, 2018 @Vasud You are the best person to do this, since you have access to the software containing the data grid. Go back and read the first post in the thread. Follow the quick start guide. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Earthshine Posted April 11, 2018 Share Posted April 11, 2018 (edited) What is link too long mean? Edited April 11, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Danp2 Posted April 11, 2018 Share Posted April 11, 2018 I think he means the thread itself is too long to read. Earthshine 1 Latest Webdriver UDF Release Webdriver Wiki FAQs 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