* This tutorial is for academic functions solely *
Full tutorial playlist: https://www.youtube.com/playlist?listing=PL1m2M8LQlzfJjTJrovnq2lBnov_g0ZpN3
View the Supply Code
GitHub repo: https://github.com/learncodebygaming/woodcutter
Visible Studio Code: https://code.visualstudio.com/obtain
0:35 Disclaimer: Do not Cheat!
3:18 Tips on how to set up Node.js
5:22 Utilizing Notepad and PowerShell to jot down code
8:24 Utilizing VSCode to jot down code
9:48 Tips on how to set up RobotJS
A be aware on the “routinely set up mandatory instruments” step of the Node.js set up:
If you have already got Node put in, you could find the Extra Instruments set up hyperlink within the Begin menu underneath “Node”. Alternatively, you may set up windows-build-tools from an elevated PowerShell or CMD.exe like this: npm set up –global –production windows-build-tools
Extra particulars right here: https://www.npmjs.com/package deal/robotjs#constructing
So let’s write your first line of code. If you happen to’re in Chrome, right-click wherever on an internet web page and click on Examine. Then within the window that pops up, click on on Console. You are able to do nearly the very same factor in Firefox and even the Edge browser.
Obtain and set up Node.js from their web site, nodejs.org. The house web page ought to offer you a hyperlink to the really helpful obtain in your platform. In my case that was the LTS 64-bit Home windows Installer. When putting in, it’s best to click on the checkbox to “Mechanically set up the required instruments”. If you happen to do not, you will get errors once we attempt to set up the RobotJS library.
In order that most likely took a short while, however when it is completed, let’s verify it was put in accurately through the use of the terminal. On Home windows, I desire to make use of Git Bash, however you can even use PowerShell. Enter the command node –version and it will output the put in model of node if it is put in accurately.
Proceed with the written tutorial right here: https://learncodebygaming.com/weblog/how-to-code-a-runescape-bot-with-robotjs
My gear: https://learncodebygaming.com/gear