How to use JavaScript in imacros?

后端 未结 3 1611
遥遥无期
遥遥无期 2020-12-31 10:26

I can\'t figure out how to use imacros with JavaScript. I have looked at their Help, have seen countless examples here on Stack Overflow, but don\'t know what am missing. It

相关标签:
3条回答
  • 2020-12-31 10:56

    Good answer Creamstout83

    enter image description here

    I would also add this to answer above. Un checking this option will speed up the process. And checking it will enable better debugging.

    0 讨论(0)
  • 2020-12-31 11:06

    It looks like you are trying to run javascript inside an iim file. Open notepad or another text editor and paste the following code:

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

    Save the file with a .js extension. Next open up firefox and the iMacros addon. Go to Manage -> Settings -> Paths Tab -> Folder Datasource. Enter the path where you saved the file above. Refresh iMacros by clicking the iMacro button on and off. The javascript file should show up in the left pane. Run the file to test.

    You should notice the icon to the left of the file name is different for the javascript files and the extension is ".js" instead of ".iim".

    0 讨论(0)
  • 2020-12-31 11:11

    If you're experiencing this problem while using Chrome to run iMacros; the answer is really simple:

    Download Firefox and run the iMacros plugin on there.

    I experienced the same problem, receiving the error message: "Error -1100: Unknown command: VAR at line: 1", while using Chrome.

    But with Firefox I can now run javascript files, have more options to play around with, and less bugs to disrupt my scrapes.

    0 讨论(0)
提交回复
热议问题