Re: [Sikuli-driver] [Question #680313]: Problems with accented words

2019-04-17 Thread RaiMan
Question #680313 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680313

Status: Open => Answered

RaiMan proposed the following answer:
what exactly are you talking about?

Where do you insert what as what?
what does it mean: create PDF?

-- 
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 #680313]: Problems with accented words

2019-04-17 Thread Fernando Eduardo
New question #680313 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680313

Every time I insert text with accented words in sikuli and generate a pdf file 
with these descriptions the accented words come out with special characters. 
Did not the Sikuli interpret sharp words?

-- 
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 #680301]: collectWords() raises java NPE

2019-04-17 Thread Mindaugas
Question #680301 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680301

Mindaugas posted a new comment:
No worries and not too much rush! Thanks for looking into this!

-- 
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 #680301]: collectWords() raises java NPE

2019-04-17 Thread Mindaugas
Question #680301 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680301

Mindaugas gave more information on the question:
I have another script that fails, different error, but similar issue:


Settings.OcrTextRead=True
Settings.OcrTextSearch=True

match = find("112374529.png")
wait(1)
print(match.getTarget().getX())
print(match.getTarget().getY())
print(match.getW())
print(match.getH())
words = Region(match.getX(), match.getY(), match.getW(), 
match.getH()).findAllText("Process")
print(words)


#print(match.getText()) # does not even highlight the method as available
# print(">>" + r.collectWords())
# print(">>" + collectWordsText())
) raised: Traceback (most recent call last):
  File "", line 11, in 
at org.sikuli.script.Region.doFindAll(Region.java:3063)
at org.sikuli.script.Region.access$400(Region.java:23)
at org.sikuli.script.Region$RepeatableFindAll.run(Region.java:3218)
at org.sikuli.script.Region$Repeatable.repeat(Region.java:3126)
at org.sikuli.script.Region.findAll(Region.java:2565)
at org.sikuli.script.Region.findAllText(Region.java:2807)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NullPointerException: java.lang.NullPointerException


The fact that it fails on line: 
https://github.com/RaiMan/SikuliX1/blob/master/API/src/main/java/org/sikuli/script/Region.java#L3063

indicates that it did not find a match. Would lowering a matching
threshold help? How to deal with this situation in general? Should I
retry in a loop and with each iteration of the loop I should decrease
the match threshold?

-- 
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 #680301]: collectWords() raises java NPE

2019-04-17 Thread Mindaugas
Question #680301 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680301

Summary changed to:
collectWords() raises java NPE

-- 
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 #680301]: collectWords() raises java.lang.UnsatisfiedLinkError:

2019-04-17 Thread Mindaugas
New question #680301 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680301

Greetings,

I have a simple python methods call: print(">>" + collectWordsText()). It 
throws an exception (below).
I'm not sure if I'm using this correctly however - this method seems to be a 
static method of a Region class,
and I presume it uses implicit region this creating a new region via a 
constructor is not needed?

If so, could this error indicate some problem with reflection? I'm using java8, 
sikullx w/ jython 1.1.4-SNAPSHOT build 277

[log] CLICK on L[505,510]@S(0) (525 msec)
[error] script [ add_neoload_monitor_pid ] stopped with error at line 
--unknown--
[error] Error caused by: Traceback (most recent call last):
  File 
"C:\Users\Administrator\Desktop\add_neoload_monitor_pid.sikuli\add_neoload_monitor_pid.py",
 line 28, in 
print(">>" + collectWords())
at org.sikuli.script.Region.findWords(Region.java:2830)
at org.sikuli.script.Region.collectWords(Region.java:4980)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NullPointerException: java.lang.NullPointerException

[debug] RunTimeAPI: * running cleanUp *

-- 
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 #199493]: HTMLTestRunner Not producing a report

2019-04-17 Thread Bharatendu SOUMIL
Question #199493 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/199493

Bharatendu SOUMIL posted a new comment:
The main key here was the outfile.close(), because  if you remove that
line, and run the script repeatedly,  your html report wouldn't be
generated

-- 
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 #680288]: Count the number of instances some text appears on the screen

2019-04-17 Thread RaiMan
Question #680288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680288

Status: Open => Needs information

RaiMan requested more information:
Not really sure what you mean?

How often the text appears in some region on the screen ? or what?

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