Javascript and Imacro to Open Google.com

2019-06-07 02:51发布

问题:

Ok I am pretty sure I am making some stupid mistake here. This is what I got. I want to use javascript to run an Imacro to open www.google.com.

  var test;
  test ="CODE:";
  test +="SET !ERRORIGNORE YES "+"\n";
  test +="URL GOTO=www.google.com "+"\n";

  iimPlay(test)

As per @Bestmacros I changed the code for test.js to the code shown above. Putting this into chrome and firefox simply shows me the file, putting it into IE just reloads the page. Double clicking the .js file comes up with a compiler error.

 line: 6
 char: 1
 error: Object expected
 code: 800A138F
 source: Microsoft JScript runtime error

Any suggestions?

Thank you.

回答1:

i had the same problem but it worked after i had renamed the javascript filename and extension to lovercase.