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

Type() function does not work with a french AZERTY keyboard for number typing #186

Open
lnun13 opened this issue May 16, 2016 · 6 comments

Comments

@lnun13
Copy link

lnun13 commented May 16, 2016

Hi.

When running the sakuli example for windows 7, I saw following issue:
Type() function does not work with a french AZERTY keyboard for number typing:
When I use type("525"), string effectictively typed is "(é(" which correspond to the right physical keys but missing the simultaneous press on shift key.

If type("a"), it is ok. ("a" is one of the different keys between azerty and qwerty keyboards).

I look at already entered issues, the most similar one is the #154

Thanks in advance for the support you can provide to me.

Regards

@lnun13 lnun13 changed the title Type() function does not work with a french AZERTY for number typing Type() function does not work with a french AZERTY keyboard for number typing May 16, 2016
@toschneck toschneck self-assigned this May 17, 2016
@toschneck
Copy link
Contributor

Hi @lnun13,
in general Sakuli supports since Version 1.0 all UTF-8 characters. What OS do you use and what version of Sakuli did you have installed? Sometimes you have to reboot your system after the installation, to ensure that everything works fine. If not work afterwords, you can provide me a screenshot of your keyboard layout settings an I will try to test this on my system ;-)
Best regards Tobi

@lnun13
Copy link
Author

lnun13 commented May 17, 2016

Hi Tobi.

keyboard

I rebooted several time the system: after installation and also after changing default keyboard settings to check this was a "AZERTY" issue not reproduced with QWERTY" keyboard.
I Installed sakuli-v1.0.0-installer.jar.
screen shot is enclosed for keyboard settings:

I am using windows 7 professionnal SP1 (french version)

@toschneck
Copy link
Contributor

Ok thanks for the screenshot, I will try to reproduce it and find a solution. You will hear from me soon ;-)

@toschneck
Copy link
Contributor

I checked this issue and you're right, currently the typing works not correct on "AZERTY" keyboards, because the java.awt.event.KeyEvent mapping didn't match to that kind of keyboard. But if you wan't to type special french characters, you can change your keyboard layout on your testsystem to some QWERTY or QWERTZ layout und use the regular type function. This function will convert the special character into an UTF-8 key combination and type the correct character.

If you get the following error:

ERROR [2016-05-18 18:21:58.294] - ERROR:
CASE "demo_win7":
        STEP "Calculation":  Cannot convert character '?'. To enable UTF-8 typing support, please set under "HKEY_Current_User\Control Panel\Input Method" the key "EnableHexNumpad" to "1"

You have to go to your windows registry and enable the UTF-8 support under:

HKEY_Current_User\Control Panel\Input Method  -> EnableHexNumpad=1

Will this solution works for you?

@lnun13
Copy link
Author

lnun13 commented May 19, 2016

Hi.

I just started to use sakuli on my own laptop.
I do not plan to have a dedicated test station for the moment: I need to develop it first.
So you can imagine that moving to a qwerty configuration is quite annoying.
Still, I do not need special french characters like é,è;ç .. but simple standard numbers: 1,2,3, 4...
Will they work with a AZERTY configuration if I enabled UTF8 support on windows registry?
Thanks for your kind support.

@toschneck
Copy link
Contributor

Unfortunately the problem is currently that the basic letter matching won't fit. So the UTF-8 support won't change anything. To fix this I have to write a special mapping for the AZERTY keyboards. I will try to do this, in the next weeks. Maybe you can use instead the paste method. This method should probably work!

@toschneck toschneck added this to the rel-v1.1 milestone May 19, 2016
@toschneck toschneck removed this from the rel-v1.2 milestone Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants