Additional Keys: различия между версиями

Материал из Поле цифровой дидактики
м (Added MacOS keys to the comment)
 
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
{{Not Useful|Not that notable enough to be mentioned on its own article, can be merged with other sensing articles|date=November 2019}}
{{Scripting Tutorials
{{merge|Key () Pressed? (block)|date=November 2019}}
|Description=Как создавать и использовать комбинации дополнительных клавиш?
|Возрастная категория=6
|Environment=Scratch
}}
'''Additional keys''' are keys that are not normally accessible through key sensing block drop-down menus, but are detectable using workarounds. Some of the keys involve punctuation and the enter button.
'''Additional keys''' are keys that are not normally accessible through key sensing block drop-down menus, but are detectable using workarounds. Some of the keys involve punctuation and the enter button.


Строка 21: Строка 24:
Another method of obtaining additional keys is by editing the project JSON file to point the input to a new value with a text editor, specifying an arbitrary value instead of one of the drop-down options.
Another method of obtaining additional keys is by editing the project JSON file to point the input to a new value with a text editor, specifying an arbitrary value instead of one of the drop-down options.


==See Also==
* {{b|Key () Pressed}}
* {{b|Join ()()}}


[[Category:Sensing Blocks]]
[[Category:Scripting Tutorials]]
[[Category:Scripting Tutorials]]

Текущая версия на 10:09, 9 сентября 2022

Описание Как создавать и использовать комбинации дополнительных клавиш?
Область знаний
Область использования (ISTE)
Возрастная категория 6


Поясняющее видео
Близкие рецепту понятия
Среды и средства для приготовления рецепта: Scratch

Additional keys are keys that are not normally accessible through key sensing block drop-down menus, but are detectable using workarounds. Some of the keys involve punctuation and the enter button.

Methods

Here are the following methods to have additional keys:

Method 1

One common way of accessing the keys is by custom inputs, such as utilizing the join block:

<key (join [enter] []) pressed? >

Method 2

Another method is setting a variable to a key, and for the code to check if that key was clicked.

set [key v] to [] // can be any key except Ctrl, Command, Alt, Option, Shift, and Tab
forever
if <key (key) pressed?> then
. . .
end

Method 3

Another method of obtaining additional keys is by editing the project JSON file to point the input to a new value with a text editor, specifying an arbitrary value instead of one of the drop-down options.