Willy-JL
2e35332b23
JS: Fix Math.random()?
2024-04-02 16:22:17 +01:00
Willy-JL
9fd3f70636
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-03-29 03:55:30 +00:00
Willy-JL
37e958e3ce
Add missing record close
2024-03-28 22:31:53 +00:00
Willy-JL
58b8a13286
JS: Small improvements to widget example
2024-03-28 22:29:18 +00:00
Willy-JL
a1eeeb245f
JS: Widget icons without path, just name
2024-03-28 22:28:52 +00:00
Derek Jamison
a94a1a96ae
JS: Add widget module
2024-03-26 23:00:10 -05:00
Derek Jamison
ea9f151213
JS: Add __filepath and __dirpath globals.
2024-03-26 21:09:41 -05:00
Nikolay Minaylov
84beb9b23e
JS CLI command ( #3539 )
...
* js command
* made the js command exit when there's an error
* JS CLI: moved to js_app
* JS: abortable cli invocations
* JS: less debug logging in console logs, fix storage descriptor leak in cli
Co-authored-by: Milk-Cool <milan-pl@mail.ru >
Co-authored-by: hedger <hedger@users.noreply.github.com >
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-03-26 01:35:38 +09:00
Willy-JL
401ab0da1f
JS: Fix badusb.quit() and serial.end()
2024-03-23 20:38:34 +00:00
Willy-JL
c03d3a80bf
JS: Add serial.readAny(timeout)
...
helps with starving js script loop due to reading 1 byte each time
2024-03-23 20:20:12 +00:00
Willy-JL
380038c01d
JS: Fix serial expansion bugs, add serial.end()
2024-03-23 20:19:08 +00:00
Willy-JL
5f3cd77056
JS: Fix textbox bugs, addText() instead of setText(), add emptyText()
2024-03-23 20:14:51 +00:00
Willy-JL
5b63952b12
JS: Add textbox module
2024-03-23 05:15:56 +00:00
Willy-JL
6a5354caca
Naming fixes
2024-03-23 05:13:53 +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
WillyJL
1a2c029ab6
Merge pull request #33 from oldip/feature/numpad-keybindings
...
Add numpad keybindings to improve non-US input methods
2024-03-19 04:48:01 +00:00
Willy-JL
f48848ca4d
JS: Add BadUSB Alt+Numpad example
2024-03-19 04:45:54 +00:00
Willy-JL
1bf0d3ab9a
JS: Improve badusb.altPrint() robustness
2024-03-19 04:41:12 +00:00
Willy-JL
385fe4b4e6
JS: Add header text to REPL interactive console
2024-03-19 01:55:21 +00:00
Willy-JL
4bd511c214
JS: Fix view dispatcher and header text bugs
2024-03-19 01:54:59 +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
Willy-JL
03499243a3
JS: Allow pressing back in Submenu
2024-03-17 20:51:42 +00:00
Willy-JL
c2deba8e2c
JS: Fix weird string corruptions and usages
2024-03-17 20:48:00 +00:00
Willy-JL
6b21783d76
JS: Add REPL interactive console
2024-03-17 06:56:18 +00:00
Willy-JL
9d83750a83
JS: Keyboard allow pressing back, add symbols, cleanup
2024-03-17 06:55:44 +00:00
Willy-JL
ff2aa9b105
JS: Fix to_string() with negative numbers
2024-03-17 06:55:09 +00:00
Willy-JL
7f07417676
Move to js_thread + improve parse_int
2024-03-17 06:19:46 +00:00
Willy-JL
19b5f35afb
Remove string utilities already in MJS
2024-03-17 05:45:57 +00:00
Willy-JL
10a03e0cc1
Merge branch 'dev' of https://github.com/Next-Flip/Momentum-Firmware into dev
2024-03-17 04:35:59 +00:00
oldip
8e44322a15
Add altPrintln functionality for ALT+Numpad support
2024-03-14 10:53:22 +08:00
Willy-JL
5b1002e433
JS: Add dialog.pickFile()
2024-03-14 02:29:48 +00:00
oldip
5095338341
Add numpad keybindings to improve non-US input methods
2024-03-14 09:34:22 +08:00
Willy-JL
66dc7e9aa9
JS: Add storage.append()
2024-03-12 06:15:09 +00:00
Willy-JL
7246e7235b
JS: Fix some edge cases with GPIO module
...
- disable expansion to avoid conflicts
- fix pin counts when iterating
- check validity of pull and mode names
2024-03-12 06:03:48 +00:00