Re: [Sikuli-driver] [Question #691000]: Sikuli prompt stuck on Caused by: java.lang.IllegalThreadStateException: Cannot call method from the event dispatcher thread at java.awt.Robot.checkNotDispatchT

2020-05-27 Thread Anthony Colbert
Question #691000 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/691000

Status: Open => Solved

Anthony Colbert confirmed that the question is solved:
Removed all instances, and went through the install process again. Seems
to be working now

-- 
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] [Question #691000]: Sikuli prompt stuck on Caused by: java.lang.IllegalThreadStateException: Cannot call method from the event dispatcher thread at java.awt.Robot.checkNotDispatchThrea

2020-05-27 Thread Anthony Colbert
New question #691000 on Sikuli:
https://answers.launchpad.net/sikuli/+question/691000

I installed Sikuli on 05/27/20 and got the message that it installed 
sucsesfully. I launched the SikulixIDE 1.1.3 today without any issue. I clicked 
on Take screenshot twice (first time computer froze, second time) the command 
prompt launched and stayed on one screen see end of information below for more 
details.

+++ running this Java
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode, sharing)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar 
C:\Users\colbea1\Desktop\Sikuli\sikulix.jar
[info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[info] IDE startup:  3.4 seconds
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at org.sikuli.ide.ButtonCapture.capture(ButtonCapture.java:97)
at 
org.sikuli.ide.ButtonCapture.captureWithAutoDelay(ButtonCapture.java:80)
at org.sikuli.ide.ButtonCapture.actionPerformed(ButtonCapture.java:74)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalThreadStateException: Cannot call method from the 
event dispatcher thread
at java.awt.Robot.checkNotDispatchThread(Unknown Source)
at java.awt.Robot.waitForIdle(Unknown Source)
at org.sikuli.script.Mouse.move(Mouse.java:360)
at org.sikuli.script.Mouse.move(Mouse.java:329)
at org.sikuli.script.Mouse.init(Mouse.java:58)
at org.sikuli.script.Screen.initScreens(Screen.java:108)
at org.sikuli.script.Screen.(Screen.java:72)
... 40 more


-- 
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 #162050]: about App.focus() question

2020-05-27 Thread shareram
Question #162050 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162050

shareram proposed the following answer:
you can use https://www.shareitforpcappdownload.com/ to download shareit
application. this is the fastest file sharing application

-- 
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 #690954]: [2.0.4] findText("string") not working --- try with findWord, findWords, findLine, findLines

2020-05-27 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Shane Paes posted a new comment:
ok Thanks RaiMan, will give this a try and let you know my observations.

-- 
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 #690954]: [2.0.4] findText("string") not working --- try with findWord, findWords, findLine, findLines

2020-05-27 Thread RaiMan
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Open => Answered

RaiMan proposed the following answer:
I am sorry for the delay - should have gone deeper into the SikuliX 
implementation from the beginning.
findText() or find("some text") are simply based on a "stupid" implementation 
(my bad ;-).
I will improve it with the 2.0.5.

Until then try to solve your problem with findWord, findWords, findLine
and findLines features.

Here a Java sample:

  Region region = new Region(0, 0, 300, 300);
  try {
String fImg = new File("testImage/image").getCanonicalPath();
Match match = region.find(fImg);
List lines = match.findLines();
for (Match m : lines) {
  System.out.println(m.getText());
}
match.findLine("API").highlight(2);
List words = match.findWords();
for (Match m : words) {
  System.out.println(m.getText());
}
match.findWord("API").highlight(2);
  } catch (Exception e) {
System.out.println("Error" + e.getMessage());
  }

a "line" in this sense is a row of text in the image, that is seen by Tesseract 
as a line (same background color, same base line, ...).
a "word" is some text of characters surrounded by non-text (like white space).

-- 
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 #690954]: [2.0.4] findText("string") not working --- try with findWord, findWords, findLine, findLines

2020-05-27 Thread RaiMan
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Description changed to:
 current state
findText() and find("some text") are supported by the same implementation, 
which currently does not work well.
This is a bug and will be fixed in 2.0.5

Until then try to solve your problem until with findWord, findWords,
findLine and findLines features

**

This is my code

Settings.OcrTextRead = true;
Settings.OcrTextSearch = true;

Region RegionShapeMarkup = new Region(4,4,269,165);
String TextBoxLabelName= "Shape";
Match TextBoxLabelNameFound = RegionShapeMarkup.find(TextBoxLabelName);
if (TextBoxLabelNameFound != null)
{
RegionShapeMarkup.click (TextBoxLabelNameFound.offset(0, -30));
}

the script fails with error
FindFailed: Shape.png: (0x0) in R[4,4 269x165]@S(0)

even though searching for text, script fails with error shape.png not
found.

Test environment:
Windows 10 64bit, JAVA11

Any help on this issue will be appreciated.

-- 
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 #690954]: [2.0.4] findText("string") not working --- try with findWord, findWords, findLine, findLines

2020-05-27 Thread RaiMan
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Summary changed to:
[2.0.4] findText("string") not working  --- try with findWord, findWords, 
findLine, findLines

Description changed to:
 current state
findText() and find("some text") are supported by the same implementation, 
which currently does not work well.
This is a bug and will be fixed in 2.0.5

Try to solve your problem until then try with findWord, findWords,
findLine and findLines features

**

This is my code

Settings.OcrTextRead = true;
Settings.OcrTextSearch = true;

Region RegionShapeMarkup = new Region(4,4,269,165);
String TextBoxLabelName= "Shape";
Match TextBoxLabelNameFound = RegionShapeMarkup.find(TextBoxLabelName);
if (TextBoxLabelNameFound != null)
{
RegionShapeMarkup.click (TextBoxLabelNameFound.offset(0, -30));
}

the script fails with error
FindFailed: Shape.png: (0x0) in R[4,4 269x165]@S(0)

even though searching for text, script fails with error shape.png not
found.

Test environment:
Windows 10 64bit, JAVA11

Any help on this issue will be appreciated.

-- 
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 #690949]: Unable to access Images inside executable jar

2020-05-27 Thread Prathima Lydia
Question #690949 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690949

Status: Answered => Solved

Prathima Lydia confirmed that the question is solved:
The problem was a difference in resolution of the image  in the other
machine . This is resolved now

-- 
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 #690626]: Trying to find a String in an Image(captured while testing) using a String variable

2020-05-27 Thread Launchpad Janitor
Question #690626 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690626

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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 #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Shane Paes posted a new comment:
sure lets wait for @RaiMan's reply.

-- 
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 #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread masuo
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

masuo posted a new comment:
Please wait @RaiMan' s answer.

-- 
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 #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread Shane Paes
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Answered => Open

Shane Paes is still having a problem:
@masuo i tried with Python and it worked. How can i confirm that it
works for Java?

-- 
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 #690954]: findText("string") not working with Sikulixapi 2.0.4

2020-05-27 Thread masuo
Question #690954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690954

Status: Open => Answered

masuo proposed the following answer:
ï¼ Shane
You are using JavaScript?
My example is coded by Python.
Try again by Python.

-- 
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