Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Using Managed SPY++ techniques for MenuClick
 

Using Managed SPY++ techniques for MenuClick

I have read the articles about Managed Spy++. I have used the methods for automating windows controls. Btu I dont knwo how to use the same technology for getting all the menu ojects. Can any one help me to sort out this issue?

Thanks,Mohan
Mohan das Gandhi
mohandasgandhi  Tuesday, August 25, 2009 6:43 AM
Hello Mohan,

Thanks for your feedback.

Yes, Mirosoft UI automation framework is available from .NET Framwork 3.0. For .NET 2.0 you can try to PInvoke the Accessibility APIs. See:

http://msdn.microsoft.com/en-us/library/dd317990%28VS.85%29.aspx

As the problem has more about Windows Accessibility and Automation, I recommend you post this question on Windows Accessibility and Automation forum where there are more exports about Accessibility.

http://social.msdn.microsoft.com/forums/en-US/windowsaccessibilityandautomation/threads/

Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Rong-Chun Zhang  Wednesday, August 26, 2009 8:54 AM
Hello,

Thanks for your post on MSDN forum.

Microsoft also provide a framework to help automating the User Interface in managed code. See:
http://msdn.microsoft.com/en-us/library/ms753388.aspx

"Microsoft UI Automation is the new accessibility framework for Microsoft Windows. It addresses the needs of assistive technology products and automated test frameworks by providing programmatic access to information about the user interface (UI). In addition, UI Automation enables control and application developers to make their products accessible."

For example:
http://msdn.microsoft.com/en-us/library/ms771428.aspx
http://uiautomationverify.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=11366

If you have any additional question about Windows Accessibility and Automation, you can post on our Windows Accessibility and Automation forum.
http://social.msdn.microsoft.com/forums/en-US/windowsaccessibilityandautomation/threads/

Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Rong-Chun Zhang  Wednesday, August 26, 2009 6:55 AM
Hello,

Thanks for your quick response.
Yes I understanfd that Mirosoft UI automation. But I believe that it will support from 3.3 and above and will not support 2.0. Also I am not sure it will have method for accesing andd automating Menu and Owner draw menu items.
Pleas clarify it.

Thanks,Mohan
Mohan das Gandhi
mohandasgandhi  Wednesday, August 26, 2009 7:05 AM
Hello Mohan,

Thanks for your feedback.

Yes, Mirosoft UI automation framework is available from .NET Framwork 3.0. For .NET 2.0 you can try to PInvoke the Accessibility APIs. See:

http://msdn.microsoft.com/en-us/library/dd317990%28VS.85%29.aspx

As the problem has more about Windows Accessibility and Automation, I recommend you post this question on Windows Accessibility and Automation forum where there are more exports about Accessibility.

http://social.msdn.microsoft.com/forums/en-US/windowsaccessibilityandautomation/threads/

Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Rong-Chun Zhang  Wednesday, August 26, 2009 8:54 AM

Hello Mohan,

I am writing to check the status of the issue on your side. Would you mind letting me know the result of the suggestions? If you have any additional question, welcome to post here.

Have a great day!

Thanks,
Rong-Chun Zhang


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Rong-Chun Zhang  Tuesday, September 01, 2009 5:36 AM

You can use google to search for other answers

Custom Search

More Threads

• Don't have VS .Net 2003, how do I....
• Terrarium Farm Available!
• drag and drop
• Urgent - where to download ApplicationBlocks assemblies from?
• Advanced Questions?
• why I can't use my former acount?
• who konws when dose sqlconn in ivdata.cs init?
• OLAF Clone Application Problem
• Mitch- next version?
• Server Not Responding Work Around