I am trying to use the GetListItem command with a ListBox control on a webpage (IE browser window). There are two ListBox controls on the webpage with about 150 values in each. I am trying to use GetListItem to determine if a particular choice is there and if so, what the offset is so I can send the keystrokes to choose it... just like your example does in the help file documentation for GetListItem.
Code: Select all
The Macro Scheduler "View System Windows" tool produced these lines showing the main IE window and the two List Box controls (other lines not shown)
3408450 - IEFrame "Sys1 - Microsoft Internet Explorer."
984040 - Internet Explorer_TridentLstBox ""
1770250 - Internet Explorer_TridentLstBox ""
GetListItem>Sys1 - Microsoft Internet Explorer.,Internet Explorer_TridentLstBox,1,Item,0,0,0,nDx,lvHwnd
Running the above line causes Macro Scheduler to lockup so that it must be closed via the Task Manager.
I know this is the right object due to the following...
Code: Select all
Let>lbhandle=1770250
LibFunc>user32,GetListBoxInfo,resultvar,lbhandle
MDL>resultvar
//THIS WORKED, it returned 158 and there are 158 items in the List Box
Code: Select all
- Sys1 - Microsoft Internet Explorer. [IEFrame]
- [Shell DocObject View]
- [Internet Explorer_Server]
- [Internet Explorer_TridentLstB]
- [Internet Explorer_TridentLstB]
Can GetListItem be used with a List Box displayed inside an IE browser window?
How can I get at the items in this List box?

