Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
113 views
in Technique[技术] by (71.8m points)

javascript - Is there a way to set variables in scratch with JS?

I have a scratch project, and I want to make it so that whenever you press a key, it sets a variable named "Key pressed" to the key that was pressed. This includes keys like Control, tab, delete/backspace, and the esc key. (Basically any key you can press on a standard qwerty keyboard)

Is there a way to achieve this with a script that you paste into the console?

Thanks in advance!

question from:https://stackoverflow.com/questions/65660962/is-there-a-way-to-set-variables-in-scratch-with-js

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...