French keyboard: Problem when typing "." in a string --- use paste()

Asked by Uwin Adri

Hey there again! I m having another problem when using the function "type". The problem looks as follow:
When I use for example type( psmrl, "google.fr") I get the following error: Invalid key code.
I m using a french keyboard and the log displays the following result.

Kindly,

##################################################
[log] TYPE "google.fr"

[error] Arrêté
[error] Une erreur est survenue à la ligne 4
[error] Message d'erreur : Traceback (most recent call last):
 File "C:\Users\AUWIND~1\AppData\Local\Temp\sikuli-tmp6210964422598921071.py", line 4, in
 type('c', "google.fr")
 at sun.awt.windows.WRobotPeer.keyPress(Native Method)
at java.awt.Robot.keyPress(Unknown Source)
at org.sikuli.script.DesktopRobot.doType(DesktopRobot.java:111)
at org.sikuli.script.DesktopRobot.typeChar(DesktopRobot.java:118)
at org.sikuli.script.Region.type(Region.java:810)
at org.sikuli.script.Region.type(Region.java:798)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid key code

Question information

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

Thank you again RaiMan! It works perfectly!