In Sikuli how to enter Ctrl+A, Ctrl+T keys in Eclipse Java

Asked by jerome on 2018-02-15

Ctrl+T, Ctrl+T , Ctrl+E.....not working...Plz assist me in this.....

Code:

package sikulipak;

import org.sikuli.script.FindFailed;
import org.sikuli.script.Key;
import org.sikuli.script.KeyModifier;
import org.sikuli.script.Screen;

public class Project1 {

 public static void main(String[] args) {
  // TODO Auto-generated method stub
  Screen s = new Screen();
  try {
   s.click("img/1518691627055.png");
   s.type("E", KeyModifier.CTRL);
   s.type("A", KeyModifier.CTRL);
   s.type("Internet Explorer" + Key.ENTER);
   s.click("img/1518698297208.png");
   s.type(Key.ENTER);

  } catch (FindFailed e) {
   // TODO Auto-generated catch block
   e.printStackTrace();

  }

 }

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2018-02-19
Last query:
2018-02-19
Last reply:
2018-02-16
Best RaiMan (raimund-hocke) said : #1

Ctrl+T, Ctrl+T , Ctrl+E

is it?
Ctrl+t, Ctrl+t , Ctrl+e

if yes,
s.type("e", KeyModifier.CTRL);

because:
s.type("E", KeyModifier.CTRL);

is
CTRL+SHIFT+e

jerome (jeromeaerockiam) said : #2

Wow Thanks Raiman...Its working fine ...can i have any links or doc for working sikuli in eclipse

RaiMan (raimund-hocke) said : #3

Python scripts or Java Programming?

jerome (jeromeaerockiam) said : #4

Only Java Programming with Sikuli

RaiMan (raimund-hocke) said : #5

no specials for use of SikuliX:

- either setup a Maven or Gradle project

- or use a correctly setup sikulixapi.jar as lib in your project

The next days I will try and document a concept, how to manage the images inside your project using the SikuliX IDE in parallel.

jerome (jeromeaerockiam) said : #6

Sure...Thanks Raiman....

jerome (jeromeaerockiam) said : #7

Thanks RaiMan, that solved my question.