Forum Discussion
Not sure if there's a better way to do it, but here's some quick screen shots:
I don't see StripMainMenu (like you have in your code) in the ObjectSpy. I do see StripPopupMenu. Can you try that in your code and see what happens?
- Tambo8 years agoOccasional Contributor
No luck. StripPopupMenu doesn't have any attributes attached to it. When I try recording a script using the objects it is returning the same mainform.StripMainMenu.Click() as earlier.
- Marsha_R8 years ago
Champion Level 3
tristaanogre any ideas?
- tristaanogre8 years agoEsteemed Contributor
Question: What does the popup menu look like when you manually try to click it? The reason I ask is that it's possible that Windows 10 is putting some kind of extra layer over the top of the menu, possible with graphic images or such, so that the menu items cannot be selected via the name like File|Import.
The same code can be exercised using menu item id's... say for example File is the first item in the first menu and Import is the second item in the sub menu.... so, your code COULD look like (I think)
UserProperties = Aliases.UserProperties mainForm = UserProperties.MainForm mainForm.StripMainMenu.Click([0]|[1]);
This will work on both Windows 7 and Windows 10. See if this helps.