#ok modify the three lines of code py

1 messages · Page 1 of 1 (latest)

spark crow
#

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 ?

slim wind
spark crow
#

ah can you upload your code.py here then ?

slim wind
spark crow
#

ok so this file does not contain the changes for the language though

slim wind
#

so its not my mistake, am I right?

spark crow
#

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)

slim wind
#

ok so, the layout is correct (fantastic!) buut... it dont complete the payload..

#

payload.dd

#

it stops here

#

and (wait)

#

it should write this

spark crow
#

the layout might be missing the backtick

#

`

#

yeah it is missing

slim wind
#

yes, sure it do

#

but i think it will works with others payload so

spark crow
#

well, you can change the payload to use like a \ instead, while I look into adding it

slim wind
#

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

spark crow
#

how do you type it on an italian keyboard ?

slim wind
spark crow
slim wind
spark crow
#

ah ok

slim wind
#

im even checking for this ~

spark crow
#

I wonder if pico ducky supports a sequence like that

slim wind
#

the pauload stops as it did for backtick

#

alt 96 `

#

alt 126 ~

spark crow
#

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

slim wind
#

yeah no problem, i can surely modify the payload.dd for not use them

spark crow
#

can you test this in the payload ?

ALT 9 6
ALT 1 2 6
slim wind
slim wind
#

oh sorry

#

im tryng with caps

spark crow
#

and no STRING

slim wind
#

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)

spark crow
#

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
slim wind
#

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

slim wind
#

all the other doesnt work

spark crow
#

yeah that works for me too

#

this too

ALT KEYPAD_NINE KEYPAD_SIX
slim wind
#

yes

spark crow
#

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)

slim wind
#

but if i type both strings in separate line the 2 thicktick will apperar in only one line

slim wind
spark crow
#

so to type `hi` on a line you would have:

ALT KEYPAD_NINE KEYPAD_SIX
STRING hi
ALT KEYPAD_NINE KEYPAD_SIX
ENTER
slim wind
#

yes

spark crow
#

cd ~/.local

STRING cd
SPACE
ALT KEYPAD_ONE KEYPAD_TWO KEYPAD_SIX
STRING /.local
ENTER
#

etc.

slim wind
#

yes, exactly

#

do u have changes in progam for this little issue?

spark crow
#

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