How to use JavaScript in imacros?

后端 未结 3 1594
遥遥无期
遥遥无期 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 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".

提交回复
热议问题