← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #169454]: [Java] using type with key events in eclipse

 

Question #169454 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169454

Vince posted a new comment:
@RaiMan

Actually it looks like it does something different than what I thought.

I downloaded the update "Sikuli-r810-win32.zip" and am using that in
Eclipse. I have the following code:

Screen s = new Screen();
App.open("C:\\Program Files\\Internet Explorer\\iexplore.exe")
s.type(null, Key.F4 + KeyModifier.ALT);

For some reason this closes Eclipse almost immediately upon running even
though it launches the browser. I assumed (from my last post) that it
wasn't recognizing the browser was up when it was closing Eclipse.
However after adding a wait in there it still closes Eclipse when the
active window is definitely IE. I've tried it in other tests and it
doesn't seem to do anything to close the active window or Eclipse.

When I try the code you listed I get the following error from Eclipse
"The method type(PSRML, String, int) in the type Region is not
applicable for the arguments (null, char, int)" which is why I modified
it to what I was using.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.