-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small suggestion: Key controls for sandspiel #248
Comments
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();
}
}); |
thx |
https://pastebin.com/xtL5TW55 heres an updated script that checks to see if a menu is open before doing the action |
Was thinking about key shortcuts for selecting elements and have two alt ideas:
|
B sounds a lot more controllable, although A would be quicker if gotten
used to, I might try to make a script to test these out when I get a chance
…On Thu, Jan 5, 2023 at 3:59 PM EdHerrera123 ***@***.***> wrote:
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...
—
Reply to this email directly, view it on GitHub
<#248 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO4YSA5I62XYRFF2AH7WOFDWQ475RANCNFSM6AAAAAATLXDDXI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update:
Selecting elements
(Wind to Rocket), Selects wind. When selected element back to wind or next to rocket will make a loop.
The text was updated successfully, but these errors were encountered: