← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258381]: JavaSwing - ActionPerformed button - Implements Runnable - Sikuli actions not being performed

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
when it looks like Sikuli features like click() do not work, this might have several reasons:
- the image is found, but the target application does not have focus (the mouse moves to the click point, but does not click)
- clicking is somehow blocked (mainly occurs on Windows, not probable in your situation)
- images are not found due to timing problems (not probable in your situation, since FindFailed is catched and should print a stack trace at least)

-- might be typo:

        //WAIT UNTIL THE "ABORT SCAN" BUTTON DISAPPEARS: SIKULI.
   while (screen.exists(img5.similar(similarity), timeout) == null) {
    screen.wait(2.0);
  }

If you want what the comment says, then it must be
   while (screen.exists(img5.similar(similarity), timeout) != null) {

To tackle your problem:
turn on the relevant log features and run with a debug level of 3

The most information you will get, when you use version 1.1.0

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