azerty operating system

Asked by Berty

i live in belgium
and my pc and keyboard are azerty

is there a setting for this?

cause if i say:

s.type(null, "10.0.0.196",0);

it types: &à
and then stops with:

[sikuli] type "10.0.0.196", mod: (0)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Invalid key code
        at sun.awt.windows.WRobotPeer.keyPress(Native Method)
        at java.awt.Robot.keyPress(Robot.java:243)
        at edu.mit.csail.uid.Region.doType(Region.java:666)
        at edu.mit.csail.uid.Region.type_ch(Region.java:769)
        at edu.mit.csail.uid.Region.type(Region.java:375)
        at main.SikuliScript.collect(SikuliScript.java:21)
        at main.Main.updateAccessPoints(Main.java:269)
        at main.Main$1.mouseClicked(Main.java:152)
        at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
        at java.awt.Component.processMouseEvent(Component.java:6266)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6028)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

i was able to work around doing this:

type("10;0;0;196",KEY_SHIFT)

but this doesn't work when you try it in java code :(

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Berty (verhelst-bert) said :
#1

problem solved for the workaround in java

s.type(null, "10;0;0;196",1);

but a setting would be usefull

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

You would not have any problem when using paste() instead. This is the method to prefer with longer text especially when it contains characters that are in different places on your keyboard than in the US layout.

I use type() only for single keys together with key modifiers.

The challenge for the developers is not a setting, it is the implementation of additional layouts.

pls. close this question as solved.

Can you help with this problem?

Provide an answer of your own, or ask Berty for more information if necessary.

To post a message you must log in.