Unable to type email adresse with special caracter (@) - French Keyboard

Asked by Srinivasulu

Hello,

I'm not able to type the email adress @ symbol with my sikuli script. I should type an email adress into a field where I can't use paste command. I tried many ways but not succeded. It will be very greatfull if there is any key combination to type @ symbol in French keyboard.

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Srinivasulu
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

use paste() (see faq 933)

Revision history for this message
Srinivasulu (srinusaf1) said :
#2

Hello RaiMan,

I can't use pase() in that field. Otherwise, it will be very easy.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

if it is Windows, then you can use the alt + n1 + n2 + n3 to enter any character with n1 - n3 the correct digits on the numpad to form the decimal code for the character according o the ascii list.

Revision history for this message
Srinivasulu (srinusaf1) said :
#4

RaiMan, thanks for your quick answer. I tried the alt + n1 combination from the decimal code for @. Normally, I need to enter dec 64 to get @ symbol. When I do that I'm getting the characters for 6 and 4 indivually, but not getting the charecter for 64.

Here is the code:

Scenario 1:

type(Key.NUM6 + Key.NUM4, KeyModifier.ALT)

Output: ♠♦

Scenario 2:

type(KeyModifier.ALT, Key.NUM6 + Key.NUM4)

Output: 64

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Try

keyDown (KEY.ALT)
type (Key.NUM0)
type (Key.NUM6)
type (Key.NUM4)
keyUp (KEY.ALT)

Revision history for this message
Srinivasulu (srinusaf1) said :
#6

@ Manfred Hampl, Its working for me.

keyDown (Key.ALT)
type (Key.NUM0)
type (Key.NUM6)
type (Key.NUM4)
keyUp (Key.ALT)

Thank you so much for your kind support.

Revision history for this message
Bharatendu SOUMIL (soumil-bharatendu) said :
#7

@Manfred, thanks for the help mate, works fine. Could you explain why this is the case though? Meaning, why do we need to press a combination of keys to execute a simple "@". Thanks again!

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

read and follow RaiMan's first answer:

see faq 933