Skip to content
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

Add support for some newer DuckyScript features to BadKb #349

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

x10102
Copy link

@x10102 x10102 commented Jan 12, 2025

What's new

Adds support for a couple of new commands to the BadKB scripting language.

Command Description Notes
CAPS [ON|OFF] Ensures that CapsLock is on/off based on the keyboard's current LED state Similar function to DS $_CAPSLOCK_ON
RANDOM_LETTER
RANDOM_LOWERCASE_LETTER
RANDOM_UPPERCASE_LETTER
RANDOM_NUMBER
RANDOM_SPECIAL
RANDOM_CHAR
Generates a random character and sends it to the host Equivalent function to the DS random keystroke injection features
VOLUME [0-1]
BEEP [FREQ] [MS]
Plays a tone using the integrated buzzer This one is a bit silly and doesn't have a DS equivalent, but can be used as an audio prompt before WAIT_FOR_BUTTON_PRESS or to notify that a particularly long script has finished

For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant