0
这是我的代码:Sikuli爪哇 - 我怎样才能SendKeys将重音符号(A,E,I,O,U)
public class Cls_ObjPrint {
public void escribirGUI(String valor){
Keyboard kb = new DesktopKeyboard();
String input = StringUtils.stripAccents(valor);
kb.type(input);
}
}
米跑类
public class Cls_CrearCliente {
public static void main(Cls_Enco_Elem_Siebel Obj_Enco_Elem_Siebel)
{
// TODO Auto-generated method stub
Cls_ObjPrint Obj_Auxiliar= new Cls_ObjPrint();
Obj_Auxiliar.escribirGUI("Andrés");
}
}
的该输出部分代码是:Andres without the tick 我需要发送带有重音标记的文字
我不知道是什么'StringUtils.stripAccents()'做,但它听起来像它删除您正在试图保持口音。 – JeffC
@JeffC,我删除了stripaccents()但不工作:( – Blackwidow