sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00887
Re: [Question #142707]: [Java] Hang in sikuli app.focus() if the app is already running
Question #142707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/142707
RaiMan posted a new comment:
this works for me
import java.awt.event.InputEvent;
import org.sikuli.script.*;
Screen scr = new Screen();
App aS = new App("Safari");
aS.focus();
scr.highlight(3);
try{
scr.type(null, "t", java.awt.event.InputEvent.META_MASK);
}
catch(FindFailed e){
e.printStackTrace();
}
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.