dbisu / pico-ducky

Create a USB Rubber Ducky like device using a Raspberry PI Pico
GNU General Public License v2.0
2.43k stars 440 forks source link

add LOCALE command #32

Closed andreasbrett closed 3 years ago

andreasbrett commented 3 years ago

added new LOCALE command to dynamically switch keyboard layout. allows defining your keyboard layouts in the payload rather than having to modify duckyinpython.py or code.py. best used as first line in the payload to fix the locale.

could be useful to switch keyboard layouts at runtime in between other commands. think rare cases where applications use different keyboard layouts.

syntax: LOCALE DE will load keyboard_layout_win_de and keycode_win_de LOCALE SW will load keyboard_layout_win_sw and keycode_win_sw LOCALE FR will load keyboard_layout_win_fr and keycode_win_fr ...

stole the idea from @spacehuhn and his awesome WifiDuck

andreasbrett commented 3 years ago

Will go on with improvements for Ducky script in pico-ducky over on my fork. Ducky script hasn't seen improvements for 5 years now. I get that you want to stick to the original script language, it's just how I see it.