Forum Discussion
Haiyangwhu
11 years agoContributor
That's normal, which means only int is accepted for Item(...), you can see from the description of your capture. And that's why you get mismatch type from your code.
There are some samples in the URL you pasted, you can try to get item from wItems:
Sys.Process("MyRibbonApp").WinFormsObject("frmMain").WinFormsObject("ribbonControl").wItems.Item("QuickAccessToolbar").Items.Item("Paint style");
-Ocean
There are some samples in the URL you pasted, you can try to get item from wItems:
Sys.Process("MyRibbonApp").WinFormsObject("frmMain").WinFormsObject("ribbonControl").wItems.Item("QuickAccessToolbar").Items.Item("Paint style");
-Ocean