Forum Discussion
Use the point and fix from the object spy to highlight the container for the "File" menu. Then post the ClrClassName and ClrFullClassName properties here.
Hello Dewayne_Pinion,
Thank you for the reply....that is where the problem is it will not focus on that particular Item. For that reason, I am trying to click on that option using character recognition method.
Best Regards
Guru
- Dewayne_Pinion9 years agoContributor
That is fine actually. Post the ClrClassName and ClrFullClassName properties for the menu bar highlighted in your screenshot
- iamraj099 years agoContributor
Hello Dewayne_Pinion,
Here are the class names
ClrClassName MenuBar
ClrFullClassName TD.SandBar.MenuBar
Best Regards,
Guru
- Dewayne_Pinion9 years agoContributor
Before I go into the extended solution ;) Have you tried using the MainMenu or StripMainMenu property? For example to click on my menu (which looks a lot like how yours is set up):
Sys["Process"]("M3.AKShell")["WinFormsObject"]("frmMainVsd")["StripMainMenu"]["Click"]("File|Exit");
I am not using object mapping and scripting in C#, so in mapping and VB it might look something like:
Aliases.M3AKShell.frmMainVsd.StripMainMenu.Click("File|Exit")
I think in your case it should be something like:
Aliases.Central.MainForm.StripMainMenu.Click("File|Exit")
You can use the object spy or browser to see exactly which control StripMainMenu is attached to (it is in the Extended section). It should show as (Object) and if you click on its ellipsis then it should show a count of items and you can access the item properties from there as well.
Related Content
- 12 months agoSiKing
Recent Discussions
- 13 hours agotramuntana
- 3 days agoSlickRick