Coder Social home page Coder Social logo

Comments (5)

labbo-lab avatar labbo-lab commented on June 27, 2024

heres a script for this that you can paste into chrome's console

document.addEventListener('keydown', function(event) {
  if(event.key === '1') {
    document.querySelector("#ui > .sizes > button:nth-child(1)").click();
  }
});

document.addEventListener('keydown', function(event) {
  if(event.key === '2') {
    document.querySelector("#ui > .sizes > button:nth-child(2)").click();
  }
});

document.addEventListener('keydown', function(event) {
  if(event.key === '3') {
    document.querySelector("#ui > .sizes > button:nth-child(3)").click();
  }
});

document.addEventListener('keydown', function(event) {
  if(event.key === '4') {
    document.querySelector("#ui > .sizes > button:nth-child(4)").click();
  }
});

document.addEventListener('keydown', function(event) {
  if(event.key === '5') {
    document.querySelector("#ui > .sizes > button:nth-child(5)").click();
  }
});

from sandspiel.

EdHerrera123 avatar EdHerrera123 commented on June 27, 2024

thx

from sandspiel.

labbo-lab avatar labbo-lab commented on June 27, 2024

thx

https://pastebin.com/xtL5TW55 heres an updated script that checks to see if a menu is open before doing the action

from sandspiel.

EdHerrera123 avatar EdHerrera123 commented on June 27, 2024

Was thinking about key shortcuts for selecting elements and have two alt ideas:

  • A: Mouse Scroll: Select elements that is at behind/front of the selected elements. If scrolling while not selecting elements
    (Wind to Rocket), Selects wind. When selected element back to wind or next to rocket will make a loop.
  • B: Wasd/Arrow keys: Select elements that is next to selected element by pressing right arrow or D, etc...

from sandspiel.

labbo-lab avatar labbo-lab commented on June 27, 2024

from sandspiel.

Related Issues (20)

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.