title: How to make a .js file play from within my .iim file?
body: <p>I am using this command within my macros script </p>
  
  <pre><code>"URL GOTO=imacros://run/?m=your-javascript.js"
  </code></pre>
  
  <p>to call JavaScript file saved at same location as my macro file is stored
  Location where both files are saved: <code>\\C:\Users\PPawar1\Documents\iMacros\Macros\Demo-Firefox\DemoTest</code>.</p>
  
  <p>I tried this way :</p>
  
  <pre><code>URL GOTO=\\C:\Users\PPawar1\Documents\iMacros\Macros\Demo-Firefox\PriyaTest://run/?m=PageLode.js
  </code></pre>
  
  <p>However I am getting this error: </p>
  
  <blockquote>
    <p>Error loading page <a href="http://c/Users/PPawar1/Documents/iMacro">http://c/Users/PPawar1/Documents/iMacro</a> ...
    ageLode.js, line 29 (Error code: -933)</p>
  </blockquote>
  
  <p>Do I need to make any changes in this command "URL GOTO=imacros://run/?m=your-javascript.js" as per the path mentioned above to call .js file?</p>
  
  <p>JavaScript file name is : pageload.js</p>
  
  <pre><code>    var width = window.innerWidth;
      var height = window.innerHeight;
  
   if(width==360 &amp;&amp; height==640 || width==435 &amp;&amp; height==773 || width==375 &amp;&amp; height== 667 || width==411 &amp;&amp; height==731 || width==320 &amp;&amp; height==568 || width==414 &amp;&amp; height== 736)
   {
   iimDisplay("Skipping 1W, 3M, 3Y, 5Y execution for this screen having width of : "+width+" and height of : "+height);
   }
      else if(width==1024 &amp;&amp; height==1024 || width==768 &amp;&amp; height==1024)
      {
      iimDisplay("Skipping 1M execution for this screen having width of : "+width+" and height of : "+height);
      }
  </code></pre>
  
  <p>Also can we execute the same JavaScript mentioned above with EVAL command?</p>