From f48848ca4db25b182074d936937d5c6add406ed4 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Tue, 19 Mar 2024 04:45:54 +0000 Subject: [PATCH] JS: Add BadUSB Alt+Numpad example --- .../system/js_app/examples/apps/Scripts/badusb_demo.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/applications/system/js_app/examples/apps/Scripts/badusb_demo.js b/applications/system/js_app/examples/apps/Scripts/badusb_demo.js index bbeedd4457..8605020233 100644 --- a/applications/system/js_app/examples/apps/Scripts/badusb_demo.js +++ b/applications/system/js_app/examples/apps/Scripts/badusb_demo.js @@ -26,6 +26,12 @@ if (badusb.isConnected()) { badusb.println("Flipper Name: " + flipper.getName()); badusb.println("Battery level: " + to_string(flipper.getBatteryCharge()) + "%"); + // Alt+Numpad method works only on Windows!!! + badusb.altPrintln("This was printed with Alt+Numpad method!"); + + // There's also badusb.print() and badusb.altPrint() + // which don't add the return at the end + notify.success(); } else { print("USB not connected");