newly build java engineering , Import sikuli-script.jar package

public class TestSikuli {
public static void openPage() throws FindFailed, InterruptedException {
Screen s = new Screen();
// Define image storage path
// Method 1 Absolute path
String imgpath = "D:\\study\\eclipse\\workspace\\test-sikuli-java\\src\\image\\";
// Method 2 Relative paths
//String imgpath = ".\\src\\image\\";
// Double click on the desktop chrome Browser icon
s.doubleClick(imgpath+"chrome.png");
s.click(imgpath+"baidu.png");
Thread.sleep(2000); // Enter the search keywords in the input box :sikuli, And click the search button //s.type(imgpath+"search_input.png", "sikuli");
s.paste(imgpath+"search_input.png", "sikuli");
s.click(imgpath+"search_button.png");
System.out.println("end");
}
}

The operation results are as follows :

[info] Windows utilities loaded.
[info] Sikuli vision engine loaded.
[log] DOUBLE CLICK on (212,1006)
[log] CLICK on (281,80)
[log] CLICK on (364,744)
[log] CLICK on (898,299)
end

  

sikuli+java Examples of more related articles

  1. Thrift Introduction and Java Examples demonstrate < Reprint spare >

    Thrift Introduction and Java Examples demonstrate author : Michael date : year month Japan • summary • Download configuration • Basic concepts . data type . The basic steps of server coding . The basic steps of client coding . Data transfer protocol • Examples demonstrate (ja ...

  2. Protocol Buffer Technical details (Java example )

    Protocol Buffer Technical details (Java example ) This article Blog And the last one (C++ example ) Basically the same , It's just for our team Java The engineer , After all, the front end of our project is based on Android Developed , And we develop ...

  3. JAVA example

     JAVA example 1  1 package Demo3; import java.io.File; import java.io.FileReader; import java.io.IOExceptio ...

  4. Java example - How to execute the assignment class File directory (classpath) Java example J

    Java example - How to execute the assignment class File directory (classpath)  Java example If we Java The compiled class The file is not in the current directory , We can use -classpath To specify the class ...

  5. Java-Runoob- Advanced tutorials - example - Method :15. Java example – heavy load (overloading) Method used in Varargs

    ylbtech-Java-Runoob- Advanced tutorials - example - Method :15. Java example – heavy load (overloading) Method used in Varargs 1. Return to the top 1. Java example - heavy load (ove ...

  6. Java-Runoob- Advanced tutorials - example - Method :14. Java example – Varargs Variable parameter use

    ylbtech-Java-Runoob- Advanced tutorials - example - Method :14. Java example – Varargs Variable parameter use 1. Return to the top 1. Java example - Varargs Variable parameter use  Java ...

  7. Java-Runoob- Advanced tutorials - example - Method :13. Java example – for and foreach Recycling

    ylbtech-Java-Runoob- Advanced tutorials - example - Method :13. Java example – for and foreach Recycling 1. Return to the top 1. Java example - for and foreach Recycling ...

  8. Java-Runoob- Advanced tutorials - example - Method :12. Java example – Enum( enumeration ) The use of constructors and methods -um

    ylbtech-Java-Runoob- Advanced tutorials - example - Method :12. Java example – Enum( enumeration ) The use of constructors and methods 1. Return to the top 1. Java example - Enum( enumeration ) Constructors and methods ...

  9. Java-Runoob- Advanced tutorials - example - Method :11. Java example – enum and switch Statements use

    ylbtech-Java-Runoob- Advanced tutorials - example - Method :11. Java example – enum and switch Statements use 1. Return to the top 1. Java example - enum and switch sentence ...

Random recommendation

  1. understand PagerAdapter Of instantiateItem() Method

    For ViewPager Set up Adapter I'm sure it will be used in the future PagerAdapter,Google Android The document defines this class as follows : Base class providing the adapter to ...

  2. JavaWeb Developing learning ( Two )- To configure Tomcat The server

    1. download Tomcat The server Tomcat It's a free one . Open source JavaWeb The server . Tomcat Website is http://tomcat.apache.org/ I'm using the version, which is Tomcat7.0, download Zip ...

  3. spring Read prperties The configuration file (1)

    Blog address http://www.cnblogs.com/shizhongtao/p/3438431.html The property file name is *.properties, stay java in , Utility class java.util.Propert ...

  4. sql- Create a permanent table from the query results

    grammar : select x into new_tableName  from ori_tableName for example : SELECT [site] ,[day] ,[val]/31.4 [val] into ...

  5. C# Monads The implementation of the ( One )

    understand Haskell Language friends all know that it is a pure functional programming , The output is only related to the input parameters , This leads to Haskell There can't be input-output functions , Because in different environments , Enter the same , But the output can be different .Haskell In language , The value of the variable ...

  6. Thinking about e-notebook (1)(ver0.3)

    chapter : Thinking about e-notebook (1)   Tao zhe Xuan is in < Problem solving · grow up · happy —— Tao zhexin teaches you mathematics > It is emphasized that , Use paper and pen to “ cache ” The importance of thinking in solving mathematical problems : Use selected symbols to express what you know , And draw a diagram . hold ...

  7. ngRx Official example analysis - 5. components

    Components pass the standard Input and Output To operate , Not directly store. /app/components/book-authors.ts import { Component, Input ...

  8. NOT NULL constraint faile( Slow is fast , Less is more )

    Learning the database orm In the process of operation , I have a problem that I can't write in the data Error creating database for data writing , The error message is NOT NULL constraint faile( The error message was not found in the first place ) database , Including the watch ...

  9. win7 Next MKVToolNix Conduct mkv Captioning

    MKVToolNix Download address (https://www.fosshub.com/MKVToolNix.html) Download and install and open , There was no desktop icon created at the time ,GUI Address (C:\ProgramData\Micro ...

  10. SpringBoot Diary ——Docker Use

    It's sometimes hard to follow the Internet wave , There are new technologies before we finish learning …… Let's talk today , How to use docker Well ~ docker Installation configuration Docker It's a container , How do we understand this concept . We do windows When it comes to the system ...