<?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>topic Re: FreeMASTER and VBScript in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475756#M3741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Jeferson.&amp;nbsp; I am using windows10 and I tried with the given code by you then it executed it. It shows an error " teste.vbs(11, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'MCB.PCM'".&amp;nbsp; Please let me know what can be the probable solution for this now. I am using windows10&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Jan 2016 11:17:01 GMT</pubDate>
    <dc:creator>abhisheksaxena</dc:creator>
    <dc:date>2016-01-09T11:17:01Z</dc:date>
    <item>
      <title>FreeMASTER and VBScript</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475752#M3737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #373e4d; font-family: helvetica, arial, sans-serif; font-size: 12pt; background-color: #fefefe;"&gt;Hey guys, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373e4d; font-family: helvetica, arial, sans-serif; font-size: 12pt; background-color: #fefefe;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is it possible to execute a VBS script with reference to FreeMASTER's invisible ActiveX control OUTSIDE of FreeMaster? I want to to execute FreeMASTER commands from the command line just by executing VBS scripts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373e4d; font-family: helvetica, arial, sans-serif; font-size: 12pt; background-color: #fefefe;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If this message does not belong in the space that I've put it please feel free to move it to the appropriate one.Thanks for your valuable time and support.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 09:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475752#M3737</guid>
      <dc:creator>abhisheksaxena</dc:creator>
      <dc:date>2016-01-08T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER and VBScript</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475753#M3738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your question, I think WHAT you are trying to match the chapter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chapter 6 HTML and the FreeMASTER documentation SCRIPTING. ( file:pcm_um.pdf :&amp;nbsp; FreeMASTER for Embedded Applications User Guide) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 14:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475753#M3738</guid>
      <dc:creator>jefersonip</dc:creator>
      <dc:date>2016-01-08T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER and VBScript</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475754#M3739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;Hey Jeferson, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your reply it gave me some hints. I'm using this code and I execute it with &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;CSCRIPT. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;------------------------------------------------------------------------- &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;Option Explicit &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;'On Error Resume Next &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;Dim FMObj &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;Dim succ &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;Set FMObj = CreateObject("MCB.PCM") &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;succ = FMObj.ReadVariable("Speed", vValue, tValue, bsRetMsg) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;WScript.Echo tValue &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;WScript.Quit &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;-------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;However I am getting an error message. Microsoft VBScript runtime error: ActiveX component can't create object: 'MCB.PCM' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #fefefe; color: #373e4d; font-size: 12px; font-family: helvetica, arial, sans-serif;"&gt;I got the ActiveX object name from Chapter 6.1 after reading Chapter 6. Any ideas what is the right way to call the ActiveX from a VBS Script?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 07:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475754#M3739</guid>
      <dc:creator>abhisheksaxena</dc:creator>
      <dc:date>2016-01-09T07:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER and VBScript</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475755#M3740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 - Run the project in freeMaster&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="my freemaster project runing.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56582i68721B05C378EF5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="my freemaster project runing.PNG" alt="my freemaster project runing.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - Create .vbs file in the work area as follows:&lt;/P&gt;&lt;P&gt;'-------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Option Explicit&lt;/P&gt;&lt;P&gt;'On Error Resume Next&lt;/P&gt;&lt;P&gt;Dim FMObj&lt;/P&gt;&lt;P&gt;Dim succ&lt;/P&gt;&lt;P&gt;Dim tValue &lt;/P&gt;&lt;P&gt;Dim vValue&lt;/P&gt;&lt;P&gt;Dim bsRetMsg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tValue = 0&lt;/P&gt;&lt;P&gt;Set FMObj = CreateObject("MCB.PCM")&lt;/P&gt;&lt;P&gt;succ = FMObj.ReadVariable("var_test_count", vValue, tValue, bsRetMsg)&lt;/P&gt;&lt;P&gt;WScript.Echo tValue&lt;/P&gt;&lt;P&gt;WScript.Quit&lt;/P&gt;&lt;P&gt;'-------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case saved as teste.vbs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this very similar to yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - Run the .vbs file and in my case the result was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="my file.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56607i155FAE62E1679254/image-size/large?v=v2&amp;amp;px=999" role="button" title="my file.PNG" alt="my file.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="result.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56652i5E8835ACECF7D9C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="result.PNG" alt="result.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 11:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475755#M3740</guid>
      <dc:creator>jefersonip</dc:creator>
      <dc:date>2016-01-09T11:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER and VBScript</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475756#M3741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Jeferson.&amp;nbsp; I am using windows10 and I tried with the given code by you then it executed it. It shows an error " teste.vbs(11, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'MCB.PCM'".&amp;nbsp; Please let me know what can be the probable solution for this now. I am using windows10&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 11:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475756#M3741</guid>
      <dc:creator>abhisheksaxena</dc:creator>
      <dc:date>2016-01-09T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER and VBScript</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475757#M3742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not have windows 10 for testing, but a look at the link below can help you.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://stackoverflow.com/questions/656934/activex-component-cant-create-object" rel="nofollow"&gt;http://stackoverflow.com/questions/656934/activex-component-cant-create-object&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 12:53:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/FreeMASTER-and-VBScript/m-p/475757#M3742</guid>
      <dc:creator>jefersonip</dc:creator>
      <dc:date>2016-01-09T12:53:55Z</dc:date>
    </item>
  </channel>
</rss>

