← Back to team overview

sikuli-driver team mailing list archive

[Question #175301]: How to select the target region in the screen shot

 

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

Hi All,
 i got the below java code in google , in this code i have very basic question as how to select the target region in the screen shot.

import org.sikuli.script.*;

public class TestSikuli {

        public static void main(String[] args) {
                Screen s = new Screen();
                try{
                        s.click("imgs/spotlight.png", 0);
                        s.wait("imgs/spotlight-input.png");
                        s.type(null, "hello world\n", 0);
                }
                catch(FindFailed e){
                        e.printStackTrace();                    
                }

        }

}

please let me know as how to select the target region in the image, i  am running on windows and i take the screen shot using print screen button .

Awaiting for the immediate response.

i am new to sikuli please help me out.

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