<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Automating CommandBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Automating CommandBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 08:47:58 +0000</pubDate>
  <lastBuildDate>Mon, 30 Aug 2010 09:13:36 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17137</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Automating CommandBar :      &amp;lt;&amp;gt;  /* Style...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17137&amp;PID=59954&amp;title=automating-commandbar#59954</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6324">shuypens</a><br /><strong>Subject:</strong> 17137<br /><strong>Posted:</strong> 30 August 2010 at 9:13am<br /><br /><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><!-- /* Style Definiti&#111;ns */ p.Ms&#111;normal, li.Ms&#111;normal, div.Ms&#111;normal	{mso-style-parent:"";	margin:0cm;	margin-bottom:.0001pt;	mso-paginati&#111;n:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Secti&#111;n1	{size:612.0pt 792.0pt;	margin:72.0pt 90.0pt 72.0pt 90.0pt;	mso-er-margin:36.0pt;	mso-footer-margin:36.0pt;	mso-paper-source:0;}div.Secti&#111;n1	{page:Secti&#111;n1;}--><!--&#091;if gte mso 10&#093;><> /* Style Definitions */ table.MsoNormalTable	{mso-style-name:"Table Normal";	mso-tstyle-rowband-size:0;	mso-tstyle-colband-size:0;	mso-style-noshow:yes;	mso-style-parent:"";	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;	mso-para-margin:0cm;	mso-para-margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:10.0pt;	font-family:"Times New Roman";	mso-ansi-language:#0400;	mso-fareast-language:#0400;	mso-bidi-language:#0400;}<!&#091;endif&#093;--><span style="font-size: 10pt; font-family: Arial;">I<u>‘ve managed to access the command bar withMSAA. I’ve made a dll written in C# which can be called from QuickTest Pro. Hopefully this will help.<br><br></u></span></a><u><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><!-- /* Style Definiti&#111;ns */ p.Ms&#111;normal, li.Ms&#111;normal, div.Ms&#111;normal	{mso-style-parent:"";	margin:0cm;	margin-bottom:.0001pt;	mso-paginati&#111;n:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Secti&#111;n1	{size:612.0pt 792.0pt;	margin:72.0pt 90.0pt 72.0pt 90.0pt;	mso-er-margin:36.0pt;	mso-footer-margin:36.0pt;	mso-paper-source:0;}div.Secti&#111;n1	{page:Secti&#111;n1;}--><!--&#091;if gte mso 10&#093;><> /* Style Definitions */ table.MsoNormalTable	{mso-style-name:"Table Normal";	mso-tstyle-rowband-size:0;	mso-tstyle-colband-size:0;	mso-style-noshow:yes;	mso-style-parent:"";	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;	mso-para-margin:0cm;	mso-para-margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:10.0pt;	font-family:"Times New Roman";	mso-ansi-language:#0400;	mso-fareast-language:#0400;	mso-bidi-language:#0400;}<!&#091;endif&#093;--></a></u><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&#091;<span style="color: rgb(43, 145, 175);">DllImport</span>(<span style="color: rgb(163, 21, 21);">"oleacc.dll"</span>)&#093;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">internal</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> <span style="color: blue;">static</span> <span style="color: blue;">extern</span> <span style="color: blue;">int</span> AccessibleObjectFromWindow(<span style="color: rgb(43, 145, 175);">Int32</span> hwnd, <span style="color: blue;">uint</span>id, <span style="color: blue;">ref</span> <span style="color: rgb(43, 145, 175);">Guid</span>iid, &#091;<span style="color: rgb(43, 145, 175);">In</span>, <span style="color: rgb(43, 145, 175);">Out</span>, <span style="color: rgb(43, 145, 175);">MarshalAs</span>(<span style="color: rgb(43, 145, 175);">UnmanagedType</span>.IUnknown)&#093;<span style="color: blue;">ref</span> <span style="color: blue;">object</span>ppvObject);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&#091;<span style="color: rgb(43, 145, 175);">DllImport</span>(<span style="color: rgb(163, 21, 21);">"oleacc.dll"</span>)&#093;<o:p></o:p></a></span></u></p><p><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">public</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> <span style="color: blue;">static</span><span style="color: blue;">extern</span> <span style="color: blue;">uint</span>AccessibleChildren(<span style="color: rgb(43, 145, 175);">IAccessible</span>paccContainer, <span style="color: blue;">int</span> iChildStart, <span style="color: blue;">int</span> cChildren, &#091;<span style="color: rgb(43, 145, 175);">Out</span>&#093;<span style="color: blue;">object</span>&#091;&#093; rgvarChildren, <span style="color: blue;">out</span> <span style="color: blue;">int</span> pcObtained);</a></span><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></u></p><p><u><span style="font-size: 10pt; font-family: Arial;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p><u><span style="font-size: 10pt; font-family: Arial; color: rgb(51, 153, 102);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">//hWndis handle of the MenuBar in QTP you can retrieve this with the GetROProperty<o:p></o:p></a></span></u></p><p><u><span style="font-size: 10pt; font-family: Arial; color: rgb(51, 153, 102);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">//MenuPathis the path in the menu with “;” as delimiter. Example: View;Toolbars;Standard</a></span></u></p><p><u><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><br><span style="font-size: 10pt; font-family: Arial; color: rgb(51, 153, 102);"><o:p></o:p></span></a></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">public</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> <span style="color: blue;">void</span> ClickMenuPath(<span style="color: rgb(43, 145, 175);">Int32</span>hWnd, <span style="color: blue;">string</span> MenuPath)<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">{<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">IAccessible</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> accObj;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">IAccessible</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> accChild;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">accObj =GetAccessibleMenu(hWnd);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">object</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&#091;&#093;objChildren = <span style="color: blue;">new</span> <span style="color: blue;">object</span>&#091;accObj.accChildCount&#093;;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">GetAccessibleChildren(0,accObj.accChildCount, objChildren, accObj);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">accChild =(<span style="color: rgb(43, 145, 175);">IAccessible</span>)objChildren&#091;2&#093;;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">ClickPath(accChild,MenuPath, 0);<o:p></o:p></a></span></u></p><p><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">}</a></span></u></p><p><br><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></u></p><p><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><br></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">public</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> <span style="color: blue;">void</span> ClickMenuPath(<span style="color: rgb(43, 145, 175);">Int32</span>hWnd, <span style="color: blue;">string</span> MenuPath)<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">{<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: rgb(43, 145, 175);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">IAccessible</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> accObj;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: rgb(43, 145, 175);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">IAccessible</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> accChild;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">accObj =GetAccessibleMenu(hWnd);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">object</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&#091;&#093; objChildren = <span style="color: blue;">new</span> <span style="color: blue;">object</span>&#091;accObj.accChildCount&#093;;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">GetAccessibleChildren(0,accObj.accChildCount, objChildren, accObj);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">accChild = (<span style="color: rgb(43, 145, 175);">IAccessible</span>)objChildren&#091;2&#093;;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">ClickPath(accChild,MenuPath, 0);<o:p></o:p></a></span></u></p><p><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">}<o:p></o:p></a></span></u></p><p><u><span style="font-size: 10pt; font-family: Arial;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p><u><span style="font-size: 10pt; font-family: Arial;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><br></a></o:p></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">private</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> <span style="color: blue;">void</span> ClickPath(<span style="color: rgb(43, 145, 175);">IAccessible</span>accChild, <span style="color: blue;">string</span> strPath, <span style="color: blue;">int</span> intArr)<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">{<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: rgb(43, 145, 175);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">IAccessible</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> accChild2;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">string</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&#091;&#093; words =strPath.Split(<span style="color: rgb(163, 21, 21);">';'</span>);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">int</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> b = intArr;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">object</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&#091;&#093; objChildren = <span style="color: blue;">new</span> <span style="color: blue;">object</span>&#091;accChild.accChildCount&#093;;<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">GetAccessibleChildren(0,accChild.accChildCount, objChildren, accChild);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: rgb(51, 153, 102);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">//ifaccessible object is a MenuPopup<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">if</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">(accChild.get_accRole(0).ToString() == <span style="color: rgb(163, 21, 21);">"12"</span>)<o:p></o:p></a></span></u></p><p style="text-indent: 36pt;"><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">{<o:p></o:p></a></span></u></p><p style="text-indent: 36pt;"><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">accChild = (<span style="color: rgb(43, 145, 175);">IAccessible</span>)objChildren&#091;0&#093;;<o:p></o:p></a></span></u></p><p style="text-indent: 36pt;"><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">objChildren = <span style="color: blue;">new</span> <span style="color: blue;">object</span>&#091;accChild.accChildCount&#093;;<o:p></o:p></a></span></u></p><p style="text-indent: 36pt;"><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">GetAccessibleChildren(0, accChild.accChildCount, objChildren,accChild);<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><span style=""><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </a></span><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">}<o:p></o:p></a></span></u></p><u><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><!-- /* Style Definiti&#111;ns */ p.Ms&#111;normal, li.Ms&#111;normal, div.Ms&#111;normal	{mso-style-parent:"";	margin:0cm;	margin-bottom:.0001pt;	mso-paginati&#111;n:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Secti&#111;n1	{size:612.0pt 792.0pt;	margin:72.0pt 90.0pt 72.0pt 90.0pt;	mso-er-margin:36.0pt;	mso-footer-margin:36.0pt;	mso-paper-source:0;}div.Secti&#111;n1	{page:Secti&#111;n1;}--><!--&#091;if gte mso 10&#093;><> /* Style Definitions */ table.MsoNormalTable	{mso-style-name:"Table Normal";	mso-tstyle-rowband-size:0;	mso-tstyle-colband-size:0;	mso-style-noshow:yes;	mso-style-parent:"";	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;	mso-para-margin:0cm;	mso-para-margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:10.0pt;	font-family:"Times New Roman";	mso-ansi-language:#0400;	mso-fareast-language:#0400;	mso-bidi-language:#0400;}<!&#091;endif&#093;--></a></u><p style=""><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">for</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> (<span style="color: blue;">int</span> a = 0; a &lt; accChild.accChildCount; a++)<o:p></o:p></a></span></u></p><p style=""><u><span style="font-size: 10pt; font-family: Arial;"><span style=""><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </a></span><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">{<o:p></o:p></a></span></u></p><p style="text-indent: 36pt;"><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">accChild2 = (<span style="color: rgb(43, 145, 175);">IAccessible</span>)objChildren&#091;a&#093;;<o:p></o:p></a></span></u></p><p style="text-indent: 36pt;"><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">if</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> (accChild2.get_accName(0).ToString() == words<strong>)<o:p></o:p></strong></a></span><strong></strong></u></p><p style="margin-left: 36pt; text-indent: 36pt;"><strong><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">{<o:p></o:p><br></a></span></u></strong></p><p style="margin-left: 36pt; text-indent: 36pt;"><strong><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">accChild2.accDoDefaultAction(0); <span style="color: green;">//simulateclick<o:p></o:p></span></a></span></u></strong></p><p style="margin-left: 36pt; text-indent: 36pt;"><strong><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">b = b + 1;<o:p></o:p></a></span></u></strong></p><p style="margin-left: 36pt; text-indent: 36pt;"><strong><u><span style="font-size: 10pt; font-family: Arial; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">if</a></span><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> (b &gt; words.GetUpperBound(0)) <span style="color: blue;">break</span>;<o:p></o:p></a></span></u></strong></p><p style="margin-left: 36pt; text-indent: 36pt;"><strong><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">ClickPath(accChild2, strPath, b);<o:p></o:p></a></span></u></strong></p><p style="text-indent: 36pt;"><strong><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></a></span></u></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: Arial;"><span style=""><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </a></span><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">}<o:p></o:p></a></span></u></strong></p><p><strong><u><span style="font-size: 10pt; font-family: Arial;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">}</a></span></u></strong></p><p><strong><u><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><br></a></u></strong></p><p><strong><br></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">private</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> <span style="color: blue;">static</span> <span style="color: rgb(43, 145, 175);">IAccessible</span>GetAccessibleMenu(<span style="color: rgb(43, 145, 175);">Int32</span> hWnd)<o:p></o:p></a></span></u></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">{<o:p></o:p></a></span></u></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">Guid</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> guid = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Guid</span>(<span style="color: rgb(163, 21, 21);">"{618736E0-3C3D-11CF-810C-00AA00389B71}"</span>);<o:p></o:p></a></span></u></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">object</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> accObj = <span style="color: blue;">null</span>;<o:p></o:p></a></span></u></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">&nbsp;</a></o:p></span></u></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">int</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> retVal =AccessibleObjectFromWindow(hWnd, 0, <span style="color: blue;">ref</span> guid, <span style="color: blue;">ref</span> accObj);<o:p></o:p></a></span></u></strong></p><p style=""><strong><u><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">return</a></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"> (<span style="color: rgb(43, 145, 175);">IAccessible</span>)accObj;<o:p></o:p></a></span></u></strong></p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><strong><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank">}</a></strong></span><strong><a href="file:///C:%5CDOCUME%7E1%5CDRIVER%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" target="_blank"><br><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></a></strong><p></p><p></p>]]>
   </description>
   <pubDate>Mon, 30 Aug 2010 09:13:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17137&amp;PID=59954&amp;title=automating-commandbar#59954</guid>
  </item> 
  <item>
   <title><![CDATA[Automating CommandBar : I&amp;#039;ve already read a few post...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17137&amp;PID=59841&amp;title=automating-commandbar#59841</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6324">shuypens</a><br /><strong>Subject:</strong> 17137<br /><strong>Posted:</strong> 20 August 2010 at 3:58am<br /><br />I've already read a few post about not been able to automate CodeJock&nbsp;Commandbar with Quicktest Pro.<DIV>Quicktest Pro recognizes the commandbar as a Winobject, but does not recognize the menu items on the bar.</DIV><DIV>&nbsp;</DIV><DIV>I need to be able to check if a menu item is enabled or disabled.</DIV><DIV>&nbsp;</DIV><DIV>Is it possible to acces the commandbar object via Extern.declare.</DIV><DIV>&nbsp;</DIV><DIV><U><strong>Example with user32.dll</strong></U></DIV><DIV>Extern.Declare micHwnd, "FindWindow", "user32.dll", "FindWindowA", micString, micString</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Fri, 20 Aug 2010 03:58:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17137&amp;PID=59841&amp;title=automating-commandbar#59841</guid>
  </item> 
 </channel>
</rss>