[Java] type() text from java with azerty-keyboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Low
|
RaiMan |
Bug Description
i try to run this program from java:
public static String collect(String ip) throws FindFailed {
Screen s = new Screen();
Win32Util os = new Win32Util();
System.
s.type(null, "10;0;0;196",1);
System.
the output of this is:
ready starting first
[sikuli] type "10;0;0;196", mod: Shift(1)
Exception in thread "AWT-EventQueue-0" java.lang.
at java.awt.
at java.awt.
at edu.mit.
at main.SikuliScri
at main.Main.
at main.Main$
at java.awt.
at java.awt.
at javax.swing.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
what am i doing wrong or is this a bug?
version of sikuli: 0.10.2
os: windows 7 32bit
attention: my os has azerty settings, that why i need to enter the ip to get it correctly
the ip gets typed correctly but crashes right after that
summary: |
- type text from java, IllegalThreadStateException + [Java] type() text from java with azerty-keyboard |
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → RaiMan (raimund-hocke) |
tags: |
added: fkt-type removed: illegalthreadstateexception java |
found a workaround
the action gets executed, the exception is trown afterwards
so this works:
try{
s.type(null, "c", 2);
}catch(Exception ex){}