<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>NicolBlog : Context Menu</title><link>http://blogs.msdn.com/nicold/archive/tags/Context+Menu/default.aspx</link><description>Tags: Context Menu</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Win32 Application contextmenu piloting (UI Automation)</title><link>http://blogs.msdn.com/nicold/archive/2008/06/06/win32-application-contextmenu-piloting-ui-automation.aspx</link><pubDate>Fri, 06 Jun 2008 01:35:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8576420</guid><dc:creator>NicolD</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/nicold/comments/8576420.aspx</comments><wfw:commentRss>http://blogs.msdn.com/nicold/commentrss.aspx?PostID=8576420</wfw:commentRss><description>&lt;p&gt;I just developed a PoC where I demonstrated to my customer how is feasible to integrate and manipulate a Win32 application (&lt;a href="http://en.wikipedia.org/wiki/AR_System_User" target="_blank"&gt;Remedy Client&lt;/a&gt; in my case) into a CCF (Customer Care Framework) client application.&lt;/p&gt;  &lt;p&gt;In this context I had some problem in piloting context menu. the couple of link below give much information.&lt;/p&gt;  &lt;p&gt;My main takeways:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;standard context menu class name is &amp;quot;#32768&amp;quot; &lt;/li&gt;    &lt;li&gt;usually context menu send a WM_COMMAND message to the application window with an ID that trigger the operation &lt;/li&gt;    &lt;li&gt;when you successfully selected the context menu window (you have the HWND):      &lt;ul&gt;       &lt;li&gt;you can choose the menu item via WM_KEYDOWN/VK_DOWN messages &lt;/li&gt;        &lt;li&gt;you can activate the menu item via a WM_KEYDOWN/VK_ENTER message &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Links that saved my day:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://forums.devx.com/archive/index.php/t-42885.html"&gt;http://forums.devx.com/archive/index.php/t-42885.html&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.autoitscript.com/forum/index.php?showtopic=33677&amp;amp;st=15"&gt;http://www.autoitscript.com/forum/index.php?showtopic=33677&amp;amp;st=15&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8576420" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/nicold/archive/tags/Win32/default.aspx">Win32</category><category domain="http://blogs.msdn.com/nicold/archive/tags/UIAutomation/default.aspx">UIAutomation</category><category domain="http://blogs.msdn.com/nicold/archive/tags/Context+Menu/default.aspx">Context Menu</category></item></channel></rss>