Code Monkey home page Code Monkey logo

woodcutter's Introduction

Woodcutter Bot using RobotJS

Source code for the Learn JavaScript by playing RuneScape series on the Learn Code By Gaming YouTube channel.

This bot is for educational purposes only.

Watch the tutorial here: https://www.youtube.com/playlist?list=PL1m2M8LQlzfJjTJrovnq2lBnov_g0ZpN3

If your mouse is not moving to the correct coordinates

Check the output of robot.getScreenSize(). If the result you're given do not match what you expect, ie. { width: 1536, height: 864 } when you were expecting 1920x1080, you can do a few things to correct this. In the Windows display settings, if the application scaling is not 100%, try changing it to 100%. You can also sometimes change this on a per-application basis with the "Disable display scaling on high DPI settings" property. Alternatively, you can write a function to translate your coordinates:

function coordinate(x) {
    return x * (1536 / 1920);
}

woodcutter's People

Contributors

learncodebygaming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.