简体   繁体   中英

Javascript and Imacro to Open Google.com

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.

我遇到了同样的问题,但是在我将javascript文件名和扩展名重命名为lovercase后,它仍然有效。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM