Skip to content

Commit

Permalink
Cubester/Key Simulation -- Make Block Texts Clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
DNin01 authored Feb 11, 2025
1 parent 0fd1616 commit 2b76e6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/CubesterYT/KeySimulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This extension allows you to simulate key presses and mouse clicks on the projec
## Press key

```scratch
press (space v) for (0.1) seconds (without waiting v) :: #BF0000
press (space v) for (0.1) seconds and (continue v) :: #BF0000
```

This will trigger "key down?" and "when key pressed" blocks. It won't type text into text fields in the editor, for example.
Expand All @@ -15,7 +15,7 @@ When `0` is used as a duration, the key will be pressed for exactly one frame.
## Click mouse

```scratch
click (left v) mouse button at x: (0) y: (0) for (0.1) seconds (without waiting v) :: #BF0000
click (left v) mouse button at x: (0) y: (0) for (0.1) seconds and (continue v) :: #BF0000
```

This will trigger "mouse down?" and "when this sprite clicked" blocks as well as update the "mouse x" and "mouse y" blocks. It can't be used to click on buttons in the editor, for example.
Expand Down
8 changes: 4 additions & 4 deletions extensions/CubesterYT/KeySimulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{
opcode: "pressKey",
text: Scratch.translate(
"press [KEY] for [SECONDS] seconds [AND_WAIT]"
"press [KEY] for [SECONDS] seconds and [AND_WAIT]"
),
blockType: Scratch.BlockType.COMMAND,
arguments: {
Expand All @@ -105,7 +105,7 @@
{
opcode: "clickMouse",
text: Scratch.translate(
"click [BUTTON] mouse button at x: [X] y: [Y] for [SECONDS] seconds [AND_WAIT]"
"click [BUTTON] mouse button at x: [X] y: [Y] for [SECONDS] seconds and [AND_WAIT]"
),
blockType: Scratch.BlockType.COMMAND,
arguments: {
Expand Down Expand Up @@ -249,11 +249,11 @@
acceptReporters: true,
items: [
{
text: Scratch.translate("without waiting"),
text: Scratch.translate("continue"),
value: "without waiting",
},
{
text: Scratch.translate("and wait"),
text: Scratch.translate("wait"),
value: "and wait",
},
],
Expand Down

0 comments on commit 2b76e6b

Please sign in to comment.