← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #164774]: How to use Sikuli Script in your JAVA programs

 

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

    Status: Needs information => Open

Sangeeta Pote gave more information on the question:
Hello Raiman,

I am not able to see any output i.e no ViewPlaylist.png button on screen
is clicked.

Also i have removed below code in the java program

s.wait("imgs/ViewPlaylist.png");
                s.type(null, "hello world\n", 0);

Now my java file in eclipse is displayed as

import org.sikuli.script.*;

public class TestSikuli {
	
    public static void main(String[] args) {
        Screen s = new Screen();
        try{
                s.click("imgs/ViewPlaylist.png", 0);
        }
        catch(FindFailed e){
                e.printStackTrace();
        }

}

	 }
I just want to click the viewplaylist image on screen.

Also i am not sure where i am wrong cloud u please provide example  how
sikuli script used in java program.

Thanks!

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