Super basic macro without recording. You can edit this code and add whatever you want. If you want recording you can add it in your code.
This repo is created to help others with searching npm modules to do macro.
robotjs gives ability to execute keyboard and mouse moves and clicks. iohook gives ability to listen if any key was clicked and if any mouse movemnent or click.
- Press Shift+Z
- Press Shift+Esc
- You must have: NodeJS >= v14.15.3
- download it
- in console type npm i
- run command npm start
- and macro is working.
- Go to file config.json
- change value clickInterval to any other number. ( NUMBER MUST BE IN MILLISECODS, 1000ms = 1s, default: 200ms )
Tested in 5 seconds test
| ms | CPS |
|---|---|
| 250 | 4.0 |
| 200 | 5.0 |
| 150 | 6.6 |
| 100 | 9.2 |
| 90 | 10.8 |
| 80 | 10.8 |
| 70 | 13.0 |
| 60 | 16.0 |
| 50 | 16.2 |
| 40 | ~21.4 |
| 30 | ~30.8 |
| 20 | ~32.2 |
| 10 | ~58 |