Forum Discussion
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
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.
- iamraj099 years agoContributor
Hello Dewayne_Pinion,
Thank you so much for the reply.......I have tried the way you said ....it is returning a null object. I have tried to search for the StripMainMenu ..but in the menu bar it doesnt even exist. Any other approach that you want me to try?? There are only two things which are related to Strip Menu...you can refer them in the attachment. Thanks in advance.
Best Regards,
Guru.
Related Content
- 12 months agoSiKing
Recent Discussions
- 13 hours agotramuntana
- 3 days agoSlickRick