<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Classic/Legacy CodeWarrior中的主题 IDE Scripting with OLE/COM</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/IDE-Scripting-with-OLE-COM/m-p/149674#M1992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've leveraged the IDE Windows Automation Guide in the CW help folder and successfully created several OLE/COM scripts using Perl to automate CW v8.3. However we have unit tests that use the console output. My problem now is that I need to control the debugger, wait for the output to appear on the CW console, then capture that output to a file in order to pass it back to our build server.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone have the commandID list for the OLE method DoCommand? In a very old forum there is a reference to the file &lt;SPAN style="color: #500050; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;CodeWarriorCommandNumbers.h&lt;/SPAN&gt; in a &lt;SPAN style="background-color: #ffffff; color: #500050; font-family: Arial, Helvetica, sans-serif;"&gt;Plugin SDK Com folder, however this no longer seems available (I think). According to the OLE viewer, the DoCommand is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #500050; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;void DoCommand([in] long commandID);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is there a place I can look for any other OLE interface tips on how to capture the console output? I haven’t found an obvious interface via the OLE/COM viewer for that.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 06:14:03 GMT</pubDate>
    <dc:creator>frankc</dc:creator>
    <dc:date>2012-10-24T06:14:03Z</dc:date>
    <item>
      <title>IDE Scripting with OLE/COM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/IDE-Scripting-with-OLE-COM/m-p/149674#M1992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've leveraged the IDE Windows Automation Guide in the CW help folder and successfully created several OLE/COM scripts using Perl to automate CW v8.3. However we have unit tests that use the console output. My problem now is that I need to control the debugger, wait for the output to appear on the CW console, then capture that output to a file in order to pass it back to our build server.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone have the commandID list for the OLE method DoCommand? In a very old forum there is a reference to the file &lt;SPAN style="color: #500050; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;CodeWarriorCommandNumbers.h&lt;/SPAN&gt; in a &lt;SPAN style="background-color: #ffffff; color: #500050; font-family: Arial, Helvetica, sans-serif;"&gt;Plugin SDK Com folder, however this no longer seems available (I think). According to the OLE viewer, the DoCommand is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #500050; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;void DoCommand([in] long commandID);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is there a place I can look for any other OLE interface tips on how to capture the console output? I haven’t found an obvious interface via the OLE/COM viewer for that.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 06:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/IDE-Scripting-with-OLE-COM/m-p/149674#M1992</guid>
      <dc:creator>frankc</dc:creator>
      <dc:date>2012-10-24T06:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: IDE Scripting with OLE/COM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/IDE-Scripting-with-OLE-COM/m-p/149675#M1993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an update for everyone, I eventually solved the problem by avoiding use of the IDE's console. We created a routine to send unit test debug messages out a serial port which was much easier to capture. Our basic automation process has become: Set flags in the code to enter Unit Test mode -&amp;gt; Start the IDE using scripts to run the code -&amp;gt; Capture Serial output looking for a conclusion -&amp;gt; Kill the IDE using Microsoft's tool PSKILL.exe. It's a little clunky and more invasive than I'd prefer, but it works. I'd still be curious if anyone gets the OLE method to work, but for us the work-around is acceptable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 17:46:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/IDE-Scripting-with-OLE-COM/m-p/149675#M1993</guid>
      <dc:creator>frankc</dc:creator>
      <dc:date>2013-02-14T17:46:51Z</dc:date>
    </item>
  </channel>
</rss>

