Commit Graph

25 Commits

Author SHA1 Message Date
Willy-JL
401ab0da1f JS: Fix badusb.quit() and serial.end() 2024-03-23 20:38:34 +00:00
Willy-JL
d610e20060 Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev 2024-03-21 02:07:27 +00:00
Gabe
702ab672bb Adding F13-F24 function key support to BadUSB (#3468)
* Adding F13-F24 function key support to BadUSB
* Adding F13-F24 function key support to JS version of BadUSB

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2024-03-21 06:45:16 +09:00
Willy-JL
1bf0d3ab9a JS: Improve badusb.altPrint() robustness 2024-03-19 04:41:12 +00:00
oldip
4d1678a99a Improve ALT+Numpad typing simulation with adjustable delay AND Testing Completed 2024-03-18 23:14:06 +08:00
oldip
88a080c168 Remove the delay 2024-03-18 22:33:19 +08:00
oldip
23033095b1 Correctly defined js_badusb_altPrint function 2024-03-18 22:22:45 +08:00
oldip
eff99a6015 orrectly defined js_badusb_altPrint function 2024-03-18 22:21:15 +08:00
oldip
879d654f70 Function to simulate typing text using ALT key + Numpad ASCII code without adding a newline at the end 2024-03-18 22:15:25 +08:00
oldip
4737c3af8c Function to simulate typing text using ALT key + Numpad ASCII code without adding a newline at the end 2024-03-18 22:14:51 +08:00
oldip
a5a9292aa1 less delay 2024-03-18 22:11:05 +08:00
oldip
dbb0408f99 Construct the numpad key name 2024-03-18 21:56:56 +08:00
oldip
97a5022129 simulating key presses by converting each character to its ASCII code and then inputting it using the ALT+numeric keypad sequence 2024-03-18 21:52:50 +08:00
oldip
1bee1c7749 modify delay to 200ms 2024-03-18 19:08:13 +08:00
oldip
e09b39fccd add delay 2024-03-18 18:59:48 +08:00
oldip
728ed4d11a rewrite the js_badusb_altPrintln function and fix the missing pointer 2024-03-18 18:45:59 +08:00
oldip
e4b72c003e rewrite js_badusb_altPrintln function 2024-03-18 18:35:12 +08:00
oldip
68746193a0 Fix dynamic construction of NUMPAD keycodes in altPrintln 2024-03-18 16:01:13 +08:00
oldip
fc3a1f28b2 Adjusting the altPrintln functionality to release the ALT key after each character 2024-03-18 15:52:51 +08:00
oldip
e790ffad3a Fix snprintf truncation issue in altPrintln 2024-03-18 15:19:35 +08:00
oldip
8e44322a15 Add altPrintln functionality for ALT+Numpad support 2024-03-14 10:53:22 +08:00
oldip
5095338341 Add numpad keybindings to improve non-US input methods 2024-03-14 09:34:22 +08:00
Willy-JL
7288499d13 Js BadUSB add quit() function to switch with UsbDisk 2024-02-16 05:34:32 +00:00
Willy-JL
9a7ee41ee1 JS unlock BadUSB automatically 2024-02-16 05:22:19 +00:00
Nikolay Minaylov
0154018363 [FL-3579, FL-3601, FL-3714] JavaScript runner (#3286)
* FBT: cdefines to env, libs order
* API: strtod, modf, itoa, calloc
* Apps: elk js
* Apps: mjs
* JS: scripts as assets
* mjs: composite resolver
* mjs: stack trace
* ELK JS example removed
* MJS thread, MJS lib modified to support script interruption
* JS console UI
* Module system, BadUSB bindings rework
* JS notifications, simple dialog, BadUSB demo
* Custom dialogs, dialog demo
* MJS as system library, some dirty hacks to make it compile
* Plugin-based js modules
* js_uart(BadUART) module
* js_uart: support for byte array arguments
* Script icon and various fixes
* File browser: multiple extensions filter, running js scripts from app loader
* Running js scripts from archive browser
* JS Runner as system app
* Example scripts moved to /ext/apps/Scripts
* JS bytecode listing generation
* MJS builtin printf cleanup
* JS examples cleanup
* mbedtls version fix
* Unused lib cleanup
* Making PVS happy & TODOs cleanup
* TODOs cleanup #2
* MJS: initial typed arrays support
* JS: fix mem leak in uart destructor

Co-authored-by: SG <who.just.the.doctor@gmail.com>
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2024-02-12 15:54:32 +07:00