wait function with java

Asked by Joe Smith

The javadoc seems fairly vague on the implementations of the fuctions with java but I'm probably missing something.

Where will the images captured with sikuli need to be stored for the java application to run correctly?

Also I get the error "cannot find symbol" for both variables being used in the wait functions, what am I doing wrong?

        Pattern requestedplay = new Pattern("1267380719842.png").similar(64/100);
        Pattern stateplaying = new Pattern("1267381551592.png");
        wait(requestedplay);
        wait(stateplaying,40000);

Any help is very appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Joe Smith
Solved:
Last query:
Last reply:
Revision history for this message
Joe Smith (mj21181) said :
#1

nevermind on the first question, I see the Pattern(java.lang.String imgURL_) on the javadoc, the answer is wherever you want!

Revision history for this message
Joe Smith (mj21181) said :
#2

also the pattern class has been imported

Revision history for this message
Joe Smith (mj21181) said :
#3

fixed it, needed to call wait statically

screen.wait("URL");