Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pico W Ducky - Backslashes converted to # using Neradoc UK Keyboard Layout #263

Open
mick-dee-irl opened this issue Jun 3, 2024 · 2 comments

Comments

@mick-dee-irl
Copy link

Hi - I have setup a Pico Ducky using Pico W. I have been able to get some test scripts to work. I am working on a simple use case where a text file is saved to a location on the target machine. I am using the UK Keyboard layout as provided by Neradoc. Below is my duckyscript that i am transferring to the target machine. However, the backslashes are being converted to # when entered onto the target machine via the Pico Ducky.

I am wondering if anyone has found a fix for backslashes on UK Keyboard layouts?

DELAY 500
GUI r
DELAY 500
STRING powershell
ENTER
DELAY 500
STRING $filepath = "$env:userprofile\Documents"
ENTER
DELAY 500
STRING New-Item -Path "$filepath\secrets.txt" -ItemType File -Force
ENTER
DELAY 500
STRING $doc = "$filepath\secrets.txt"
ENTER
DELAY 500
STRING Set-Content -Path $doc -Value 'These are my secrets'
ENTER

@io1901
Copy link

io1901 commented Sep 8, 2024

"#" is the "\" key on the US layout. You've not done something silly like not replacing the lines in the duckinpython.py? I tested it and if you don't make the changes below the "\" comes out as a "#".

# comment out these lines for non_US keyboards
#from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS as KeyboardLayout
#from adafruit_hid.keycode import Keycode

# uncomment these lines for non_US keyboards
# replace LANG with appropriate language
from keyboard_layout_win_uk import KeyboardLayout
from keycode_win_uk import Keycode

@dbisu
Copy link
Owner

dbisu commented Sep 21, 2024

Have you tried getting the latest libraries from Neradoc?
https://github.com/Neradoc/Circuitpython_Keyboard_Layouts/releases/tag/20231122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants