[Sikuli-driver] [Question #665020]: Eclipse had an error when calling sikuli.

2018-02-26 Thread Ju1+i-我 .
New question #665020 on Sikuli:
https://answers.launchpad.net/sikuli/+question/665020

hi all,

here is my code :
public class Test {
public static void main(String args[]) {
Screen s = new  Screen();

}
}

Eclipse had an error when calling sikul:
[error] RunTimeAPI: Problematic lib: 
C:\Users\mengmeng.niu\AppData\Roaming\Sikulix\SikulixLibs_201510051707\VisionProxy.dll
 (...TEMP...)
[error] RunTimeAPI: VisionProxy.dll loaded, but it might be a problem with 
needed dependent libraries
ERROR: ...TEMP...: Can't load IA 32-bit .dll on a AMD 64-bit platform
[error] RunTimeAPI:  *** terminating: problem with native library: 
VisionProxy.dll


could you please help to solve it? many thanks

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1740421] Re: Region not captured correctly in VNC session

2018-02-26 Thread Julian
I have found a way to bypass this issue:

BufferedImage croppedImage = vnc.capture().getImage().getSubimage(xAxis, yAxis, 
width, height);
ImageIO.write(croppedImage, "png", new File("tempRead.png"));
String text = TextRecognizer.getInstance().recognize(ImageIO.read(new 
File("tempRead.png")));

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1740421

Title:
  Region not captured correctly in VNC session

Status in Sikuli:
  New

Bug description:
  Sikuli 1.1.2-20171218.172518-66
  OS: Windows Embeded

  Hi,

  I'm trying to read the text from a specified region, but what I've
  noticed is that, when I'm trying to see what's in that actual region,
  and capture that image, it becomes distorted.

  If the region is higher than 185px, the image is elongated (second image in 
the screenshot).
  If the region has the hight lower than around 185px, the whole text is messed 
up, and upside down too (the last image in the screenshot).

  This is the code I've used:

  Region tLocked = vnc.set(new Region(9, 170, 240, 185));
  ImageIO.write(vnc.capture(tLocked).getImage(), "png", new 
File("terminal.png"));
  System.out.println(tLocked.text());

  Therefore, when trying to read text from the first scenario, I get nothing, 
and from the second scenario I get:
  xfaaucxscs‘}5en:s_1_1:en: :

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1740421/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #664875]: creating standalone jar of sikuli jython scripts and related images

2018-02-26 Thread Akhil Ahuja
Question #664875 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664875

Akhil Ahuja gave more information on the question:
I am able to produce standalone jar now. Thank you raiman. This works
for scripts created using Sikuli IDE. There I can easily export the
script as runnable jar with sikuli 1.1.2 .

But I am not able to get it work for scripts written in jython. This
step java -jar sikulixsetup-1.1.2-jar scriptjar  tries to install again sikuli 1.1.2 rather than creating fat-
jar. What am i missing here?

what is sikulixsetup-1.1.2-jar file? I think I might be confused here a 
little bit.
scriptjar is jar to be created.
path to script is path to scripts first and then path to images.

Thank you raiman for your help.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1751840] [NEW] Error creating App object on linux using Java

2018-02-26 Thread Mike Bedwell
Public bug reported:

Using Java 9, and the latest 1.1.2 nightly build

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/exec/ExecuteStreamHandler
 at java.base/java.lang.Class.forName0(Native Method)
 at java.base/java.lang.Class.forName(Class.java:292)
 at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
 at org.sikuli.script.App.(App.java:40)
 at flax.Flax.main(Flax.java:81)
Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.exec.ExecuteStreamHandler
 at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
 at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
 ... 5 more

Line of code causing the error is
atitd = new App("A Tale in the Desert");

(atitd was declared elsewhere, this is just the assignment)

Code executes successfully on Mac OS X, error is only thrown in Linux.

** Affects: sikuli
 Importance: Undecided
 Status: New

** Description changed:

+ Using Java 9, and the latest 1.1.2 nightly build
+ 
  Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/exec/ExecuteStreamHandler
-   at java.base/java.lang.Class.forName0(Native Method)
-   at java.base/java.lang.Class.forName(Class.java:292)
-   at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
-   at org.sikuli.script.App.(App.java:40)
-   at flax.Flax.main(Flax.java:81)
+  at java.base/java.lang.Class.forName0(Native Method)
+  at java.base/java.lang.Class.forName(Class.java:292)
+  at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
+  at org.sikuli.script.App.(App.java:40)
+  at flax.Flax.main(Flax.java:81)
  Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.exec.ExecuteStreamHandler
-   at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
-   at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
-   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
-   ... 5 more
+  at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
+  at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
+  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
+  ... 5 more
  
  Line of code causing the error is
  atitd = new App("A Tale in the Desert");
  
  (atitd was declared elsewhere, this is just the assignment)
  
  Code executes successfully on Mac OS X, error is only thrown in Linux.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1751840

Title:
  Error creating App object on linux using Java

Status in Sikuli:
  New

Bug description:
  Using Java 9, and the latest 1.1.2 nightly build

  Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/exec/ExecuteStreamHandler
   at java.base/java.lang.Class.forName0(Native Method)
   at java.base/java.lang.Class.forName(Class.java:292)
   at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
   at org.sikuli.script.App.(App.java:40)
   at flax.Flax.main(Flax.java:81)
  Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.exec.ExecuteStreamHandler
   at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
   at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
   ... 5 more

  Line of code causing the error is
  atitd = new App("A Tale in the Desert");

  (atitd was declared elsewhere, this is just the assignment)

  Code executes successfully on Mac OS X, error is only thrown in Linux.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1751840/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #664859]: Jython cheat sheet

2018-02-26 Thread CCIOLA
Question #664859 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664859

Status: Answered => Open

CCIOLA is still having a problem:
Looking for Python does not help my need...

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #664839]: Issue with wait() and type()

2018-02-26 Thread sharon
Question #664839 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664839

Status: Answered => Open

sharon is still having a problem:
Our actual  application to be automated is NOT notepad.  
This is just for the sample as we can not share the actual application.

It is working for us too for almost half a day. After that the it is hanging 
and not coming back to notepad for further actions.
In the debug log Type is displayed but actually text is not typed in notepad.  

We tried after replacing Type with write method also.  That too hung.
Also we noticed that it is hanging with wait(.5) too when tried again.

Our actual intention is to select a menu option from a drop down.  Image
comparison is failing here so we went for Key down and Enter using Type
method.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #664875]: creating standalone jar of sikuli jython scripts and related images

2018-02-26 Thread Akhil Ahuja
Question #664875 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664875

Status: Answered => Open

Akhil Ahuja is still having a problem:
https://answers.launchpad.net/sikuli/+question/660613

https://answers.launchpad.net/sikuli/+faq/2947

Hi Raiman,
Are above mentioned links deals with similar problem I'm facing?
Because I setup sikuli 1.1.2. I created fat-jar as you would say. But when I 
run that jar using java -jar myapp.jar, it says click is not defined.

Can you help me with this one?

Thanks

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp