← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #243918]: Unable to run Sikuli Java project from Maven test command

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
*** System.out.println("CtrlAltDel screen exists...");
… is not processed I guess (cannot see the message in the output in comment #4)

if it is a timing problem: increase waiting time

if (window.exists(imageOf("CtrlAltDelScreen"), 10) != null){
     System.out.println("CtrlAltDel screen exists...");
            window.click(imageOf("sendCtrlAltDelBtn"));
}

and add a message to be clear:

if (window.exists(imageOf("CtrlAltDelScreen")) != null){
     System.out.println("CtrlAltDel screen exists...");
            window.click(imageOf("sendCtrlAltDelBtn"));
} else {
         System.out.println("CtrlAltDel screen did not appear...");
}

BTW: you could use

Debug.user("some message %s", variable) (internally String.format() is
used)

to get log messages nice and easy even with time stamps.

these are the relevant settings: Settings. …

  public static boolean UserLogs = true;
  public static String UserLogPrefix = "user";
  public static boolean UserLogTime = true;

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