← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #233257]: [1.0] Windows: Java: Screen.selectRegion() hangs

 

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

RaiMan proposed the following answer:
Just tested on my Win7 64 Bit with Java 7.

--- Sikuli stuff in
c:\SikuliX

--- in system path
c:\SikuliX\libs

--- a NetBeans Java project with c:\SikuliX\sikuli-script.jar in projects libraries
--- Java app SikTest
  package siktest;
  import org.sikuli.script.*;
  public class SikTest {
    public static void main(String[] args) {
      Screen s = new Screen();
      Region reg = s.selectRegion();
      Debug.user(reg.toString());
    }
  }

--- output
[user (30.07.13 17:47:53)] R[147,148 330x221]@S(0)[0,0 1440x900] E:Y, T:3,0

It worked as expected.

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