New question #224814 on Sikuli:
https://answers.launchpad.net/sikuli/+question/224814

public class HelloWorldExample {
        public static void main(String[] args) throws MalformedURLException{
        browse(new URL("http://code.google.com";));
                ScreenRegion s = new DesktopScreenRegion(); 

            Target imageTarget = new ImageTarget(imageURL); 
            
            // Wait for the target to become visible on the screen for at most 
5 seconds                
            // Once the target is visible, it returns a screen region object 
corresponding            
            // to the region occupied by this target 
            ScreenRegion r = s.wait(imageTarget,5000); 
            
         // Display "Hello World" next to the found target for 3 seconds 
            Canvas canvas = new DesktopCanvas();
            canvas.addLabel(r, "Hello World").display(3); 
            
         // Click the center of the found target 
            Mouse mouse = new DesktopMouse(); 
            mouse.click(r.getCenter()); 
        }

}

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to