Skip to content

Quick launch

Serhii Muslanov edited this page Apr 13, 2019 · 4 revisions

Quick launch

Create maven project and add the dependency

Create test class and build the project

import org.dikhim.clickauto.ClickAuto;
public class Main {
    public static void main(String[] args) {
        ClickAuto clickAuto = new ClickAuto();
        String script =
                "for(i =0;i<100;i++){" +
                "    mouse.move(1,1);" +
                "}";
        clickAuto.put(script);
        clickAuto.start();
    }
}

Id you do everything right you'll see your cursor moving to the right bottom corner

To run any code examples in wiki you need to copy it to the script variable and execute it

Clone this wiki locally