Communicate
Bluetooth keyboard & mouse
🧩 Fun Guide to Bluetooth Keyboard and Mouse Blocks (Clu-blocks Pro)

⌨️🖱️ Important! These blocks let your robot act like a Bluetooth keyboard or mouse. It can type messages, press keys, move the cursor, or scroll — just like a human!
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 1 | setBluetoothKeyboard and mouse device name "ble_keyboard_mouse" | Sets the name of your Bluetooth input device | — | This is the name that shows up when pairing with a computer or tablet |
| 2 | getBluetoothKeyboard and mouse MAC Address | Gets the device’s Bluetooth ID | — | Useful for identifying or debugging your robot’s connection |
| 3 | BluetoothKeyboard and mouse whitelist be connected | Allows trusted devices to connect | — | Ensures only approved devices can pair — adds security |
| 4 | BluetoothKeyboard and mouse setBattery level 10% | Sets the battery level shown to the host | — | Simulates battery status — useful for testing or alerts |
| 5 | send keyboard [special key] [general key] [automatic release yes] | Sends a key press | special key, general key, automatic release | – Special keys: Ctrl, Shift, Alt, etc. – General keys: A, B, C, etc. – Auto release: key is released after press |
| 6 | send keyboardcharacter input "Hello, ClubBot" per character interval 10 ms | Types a message one character at a time | — | Great for simulating typing — like a robot writing a message |
| 7 | sendmouse input [mouse button] [change in x: 0] [change in y: 0] [roller change amount: 0] [automatic release: YES] | Moves the mouse or clicks | mouse button, x/y movement, scroll, release | – Mouse buttons: left, right, middle – Movement: how far to move cursor – Scroll: how much to scroll – Auto release: click ends automatically |
🧠 Quick Tips for Students
- Use keyboard blocks to type passwords, messages, or shortcuts.
- Use mouse blocks to move the cursor, click buttons, or scroll pages.
- Use character input for smooth typing — great for demos or automation.
- Always set the device name before pairing — it helps you find your robot.
- Use auto release to avoid stuck keys or clicks — it’s like lifting your finger after pressing.