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

CH Layout not working as expected #470

Open
C0N5T-RUCT0R opened this issue Oct 7, 2021 · 7 comments
Open

CH Layout not working as expected #470

C0N5T-RUCT0R opened this issue Oct 7, 2021 · 7 comments

Comments

@C0N5T-RUCT0R
Copy link

I don't know what layout the ch layout is, but it doesn't work for me. I'am working with an QWERTZ CH-DE Layout. CAn you fix this or ad a new Layout please?

@C0N5T-RUCT0R
Copy link
Author

C0N5T-RUCT0R commented Oct 7, 2021

What i expect:

STRING normal
ENTER
STRING § 1 2 3 4 5 6 7 8 9 0 ' ^
ENTER
STRING q w e r t z u i o p ü ¨
ENTER
STRING a s d f g h j k l ö ä $
ENTER
STRING < y x c v b n m , . -
ENTER
STRING normal end
ENTER
STRING shift
ENTER
REM everything shift
STRING + " * ç % & / ( ) = ? `
ENTER
STRING Q W E R T Z U I O P è !
ENTER
STRING A S D F G H J K L é à £
ENTER
STRING > Y X C V B N M ; : _
ENTER
STRING shift end
ENTER
STRING alt-gr
ENTER
REM everything alt gr
STRING ¦ @ # ° § ¬ | ¢ ´ ~
ENTER
STRING € [ ]
ENTER
STRING { }
ENTER
STRING
ENTER
STRING alt gr end

What i get...

result.txt

@C0N5T-RUCT0R C0N5T-RUCT0R changed the title [request] working CH Layout CH Layout not working as expected Oct 7, 2021
@githubkuyaya
Copy link
Contributor

I can reproduce this. The characters 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, . are a numpad issue. It should work fine if you activate the numlock key. Obviously, this is not intended behaviour and it should prefer the normal keys over the numpad ones. Maybe it's better to remove them from the language file, I don't know. I'll research a bit about this.
The other two characters, which did not work as expected, were $ and {. These just had wrong keycodes, I don't know why. Maybe the layout changed or I just typed it in wrong. I'll provide a fix in a PR.
These were all the wrong characters, right?

@YvanLeRouge
Copy link

Hi C0N5T-RUCT0R,
I encounter the same problems as you, except that you managed to make the symbol \ (AltGr key + ><)
In the result.txt we see that the \ is present while in the script there is only one space... I couldn't reproduce that!
Can you tell me how you manage to do that?
Thanks !!!
Sorry for my bad english.

@C0N5T-RUCT0R
Copy link
Author

Hi,
Well, I didn't use the numpad. I went through every line of my Keyboard. First without shift or alt-ground, then with shift and than with alt-grnd.

You are right, I have forgotten to add \ at the last line.

@YvanLeRouge
Copy link

Thank you,
I didn't use the numpad either, but it's still crazy that I can't write the \ with my bash bunny and its "ch" language...
impossible to write a simple command like C:\ etc... I'm desperate..
Are you getting there?

@githubkuyaya
Copy link
Contributor

No, the BashBunny uses the Numpad. It preferres the keycodes of the numbers on the numpad over the keycodes of the numbers located on the second top row of the keyboard. If you instruct the BashBunny to print 1, it will simulate a 1 press on the numpad. Thus, for it to work, the Numlock key needs to be activated.
As I already stated above, I think the best way to work around that is to remove the Numpad keycodes from the language file.

@YvanLeRouge
Copy link

at githubkuyaya:
For me the numbers work well, only these two symbols \ { does not print...
An idea?

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