Forum Discussion
finae
11 years agoContributor
hi,
most toolbar has an item list. this is Infragistic but i hope it helps:
//get toolbar:
// then
set objTools = objToolBar.wItems.Item(0).Item("File").Items // wItems.Item(0) is the first toolbar.. if you have a second toolbar wItems.Items(1) .. etc.
//collection of options should exist in the objTools.
for i=0 to objTools.Count-1
if ucase(objTools.Item(i).text) =ucase("YourToolName") then
set obj = objTools.Item(i)
obj.click
exit for
end if
next
//I think you can also do this:
objToolBars.wItems.Item(0).Items.item("File").Items.Item("WhateverIsUnderFile").Click
//or
objToolBars.wItems.Item(0).Items.Item("File").Click
//should click on teh 'file' menu tool button.
These works for infragistic so I am not 100% it will work for you.
- iamraj0911 years agoContributor
Thank you Finae, I will try this .... :smileyhappy: