#ok modify the three lines of code py
1 messages · Page 1 of 1 (latest)
ah so it types, but the layout is wrong
can you send the payload with the + button on the left so I can run some tests ?
and what keyboard is exactly selected in the OS ?
its italian layout, i think that if i change it in english it works as it should
okk
ok so this file does not contain the changes for the language though
so its not my mistake, am I right?
the top should read:
# 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_it import KeyboardLayout
from keycode_win_it import Keycode
try that one
(drop into CIRCUITPY)
ok so, the layout is correct (fantastic!) buut... it dont complete the payload..
payload.dd
it stops here
and (wait)
it should write this
well, you can change the payload to use like a \ instead, while I look into adding it
yes yes, this is only a test file
for other payloads i dont think that there is backtick
e
Christmas...
yes! it works, its definitely that charachter
how do you type it on an italian keyboard ?
(u can see it from here hahah)
I don't see it here http://kbdlayout.info/kbdit 😕
See scancodes, virtual keys, shift states and more for Italian as defined in KBDIT.DLL.
alt+96
ah ok
im even checking for this ~
I wonder if pico ducky supports a sequence like that
no, there isnt even this character
the pauload stops as it did for backtick
alt 96 `
alt 126 ~
I can't add it to the layout, it's not part of a layout, you'd have to separate it and type it on its own
yeah no problem, i can surely modify the payload.dd for not use them
can you test this in the payload ?
ALT 9 6
ALT 1 2 6
but i advice u to specify this
oke
nope
oh sorry
im tryng with caps
and no STRING
okk
this with string
without string it will ignore the text
Windows users with an Italian keyboard are forced to use the numeric keypad to enter `(ALT + 96) and ~ (ALT + 126) but what to do when programming from laptop? The solution is simple, let's remap the keyboard like Linux.
this is from the site where i saw how to do the backtick
wait, im trying in my laptop if it works alt 96
because if it dont it will be another big prblem i think
ok, from laptop it work (then why in the site wrote that? mmhhh)
ah it would be like that in pico-ducky, but that doesn't seem to work either
ALT NINE SIX
try
LEFT_ALT NINE SIX
and try
LEFT_ALT KEYPAD_NINE KEYPAD_SIX
yes, 5 min
ok so, i put all that 3 lines in a payload dd
ad appear only one backtick
wait, time to exclude the lines
this
all the other doesnt work
yes
not sure why NINE doesn't, on the italian keyboard the number keys are numbers, right ? (on a french keyboard it's &é"'(§, you use shift for numbers)
but if i type both strings in separate line the 2 thicktick will apperar in only one line
yes yes
obviously if u have the block num locked
so to type `hi` on a line you would have:
ALT KEYPAD_NINE KEYPAD_SIX
STRING hi
ALT KEYPAD_NINE KEYPAD_SIX
ENTER
yes
cd ~/.local
STRING cd
SPACE
ALT KEYPAD_ONE KEYPAD_TWO KEYPAD_SIX
STRING /.local
ENTER
etc.
not really, you should use that in the payload
adding those codes to the layouts would be impractical, but it would be interesting to find a solution
I added a helper class for alt-codes, though I haven't tested it much, maybe it could be modified to instead use that on top of the layout https://github.com/Neradoc/Circuitpython_Keyboard_Layouts/blob/main/libraries/helpers/alt_codes.py