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!

#BlockWhat it doesDropdown optionsWhat the options mean
1setBluetoothKeyboard and mouse device name "ble_keyboard_mouse"Sets the name of your Bluetooth input deviceThis is the name that shows up when pairing with a computer or tablet
2getBluetoothKeyboard and mouse MAC AddressGets the device’s Bluetooth IDUseful for identifying or debugging your robot’s connection
3BluetoothKeyboard and mouse whitelist be connectedAllows trusted devices to connectEnsures only approved devices can pair — adds security
4BluetoothKeyboard and mouse setBattery level 10%Sets the battery level shown to the hostSimulates battery status — useful for testing or alerts
5send keyboard [special key] [general key] [automatic release yes]Sends a key pressspecial key, general key, automatic release– Special keys: Ctrl, Shift, Alt, etc.
– General keys: A, B, C, etc.
– Auto release: key is released after press
6send keyboardcharacter input "Hello, ClubBot" per character interval 10 msTypes a message one character at a timeGreat for simulating typing — like a robot writing a message
7sendmouse input [mouse button] [change in x: 0] [change in y: 0] [roller change amount: 0] [automatic release: YES]Moves the mouse or clicksmouse 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.
On this page