[英]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.
我想使用javascript运行Imacro来打开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. 按照@Bestmacros,我将test.js的代码更改为上面显示的代码。 Putting this into chrome and firefox simply shows me the file, putting it into IE just reloads the page.
将其放入chrome和firefox只会向我显示文件,将其放入IE只会重新加载页面。 Double clicking the .js file comes up with a compiler error.
双击.js文件会出现编译器错误。
line: 6
char: 1
error: Object expected
code: 800A138F
source: Microsoft JScript runtime error
Any suggestions? 有什么建议么?
Thank you. 谢谢。
我遇到了同样的问题,但是在我将javascript文件名和扩展名重命名为lovercase后,它仍然有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.