Re: [Sikuli-driver] [Question #677385]: sikuli silent install behind proxy

2019-01-07 Thread Kevin Wei
Question #677385 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677385

Kevin Wei posted a new comment:
Just download 1.1.4 and integrate into my project. It's perfect to
resolve all my concerns, thanks again.

-- 
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 #677392]: How To enable/Allow the Flash player in Chrome browser?

2019-01-07 Thread Nageswar pattipati
Question #677392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677392

Nageswar pattipati posted a new comment:
Is there any way to achieve this by using flash jar?

-- 
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 #677385]: sikuli silent install behind proxy

2019-01-07 Thread Kevin Wei
Question #677385 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677385

Status: Answered => Solved

Kevin Wei confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 #677385]: sikuli silent install behind proxy

2019-01-07 Thread RaiMan
Question #677385 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677385

Status: Open => Answered

RaiMan proposed the following answer:
Sorry, but there is no option to specify the proxy settings in silent setup.
1.1.2 is no longer supported.

Please check 1.1.4, which does not need a setup any more - only a
download.

-- 
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 #677392]: How To enable/Allow the Flash player in Chrome browser?

2019-01-07 Thread RaiMan
Question #677392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677392

Status: Open => Answered

RaiMan proposed the following answer:
You either use a Chrome setting (eventually together with a plugin) or
you add to your workflow, what you do manually (find,click,...).

If the need to switch is asynchronous (the point in time cannot be
foreseen), then you have to look at the observe feature.

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread RaiMan
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

Status: Open => Answered

RaiMan proposed the following answer:
--- having in the IDE:
import org.opencv.highgui.HighGui as HG
import org.opencv.imgcodecs.Imgcodecs as IC
print HG
print IC

--- works and prints:



-- 
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 #677392]: How To enable/Allow the Flash player in Chrome browser?

2019-01-07 Thread Nageswar pattipati
New question #677392 on Sikuli:
https://answers.launchpad.net/sikuli/+question/677392

How To enable/Allow the Flash player in Chrome browser?,

We a web application which needs Flash and while running my scripts I need to 
allow/enable flash player for the site so how to enable flash player in chrome 
browser?

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread ONG YI CHONG
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

Status: Solved => Open

ONG YI CHONG is still having a problem:
Hi RaiMan, I cant seem to import org.opencv.imgcodes.Imgcodecs and
org.opencv.highgui.HighGui though.

-- 
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 #677385]: sikuli silent install behind proxy

2019-01-07 Thread Kevin Wei
New question #677385 on Sikuli:
https://answers.launchpad.net/sikuli/+question/677385

Planning to install sikuli behind company proxy. With GUI, everything works 
fine, I could easily specify a proxy. But when I use following command "java 
-jar sikulixsetup-1.1.2.jar options 2 4" to do silent install, it gives me 
error as follows:

➜  Downloads java -jar sikulixsetup-1.1.2.jar options 2 4  
[debug] RunTimeINIT: global init: entering as: SETUP
[debug] RunTimeINIT: Accessing: 
GraphicsEnvironment.getLocalGraphicsEnvironment()
[debug] RunTimeINIT: Accessing: 
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1680 x 1050
[debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/weik/Downloads
* show environment for SETUP (build 201803080837)
user.home: /Users/weik
user.dir (work dir): /Users/weik/Downloads
user.name: weik
java.io.tmpdir: /var/folders/s1/z_q9pwb90vqcv9k5_w9ftv9mgn/T
running 64Bit on Mac OSX (10.14.2) from a jar
java 8-64 version 1.8.0_181-b13 vm 25.181-b13 class 52.0 arch x86_64
app data folder: /Users/weik/Library/Application Support/Sikulix
libs folder: null
executing jar: /Users/weik/Downloads/sikulixsetup-1.1.2.jar
*** classpath dump sikulix
  0: /Users/weik/Downloads/sikulixsetup-1.1.2.jar
*** classpath dump end
* show environment end
[debug] RunTimeSETUP: global init: leaving
[debug] RunTimeSETUP: initAPI: entering
[debug] RunTimeSETUP: resourceList: enter
[debug] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) 
/Lib/sikuli
[debug] RunTimeSETUP: resourceList: having jar: 
jar:file:/Users/weik/Downloads/sikulixsetup-1.1.2.jar!/Lib/sikuli
[debug] RunTimeSETUP: files exported: 7 from: Lib/sikuli to:
 /Users/weik/Library/Application Support/Sikulix/Lib/sikuli
[debug] RunTimeSETUP: initAPI: leaving
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.2-SNAPSHOT/maven-metadata.xml,
[error] FileManager: problems while downloading
Remote host closed connection during handshake
[error] RunSetup: Maven download: could not get timestamp nor buildnumber for 
sikulixsetupIDE#forsetup from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.2-SNAPSHOT/maven-metadata.xml
with content:

[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.2-SNAPSHOT/maven-metadata.xml,
[error] FileManager: problems while downloading
Remote host closed connection during handshake
[error] RunSetup: Maven download: could not get timestamp nor buildnumber for 
sikulixsetupAPI#forsetup from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.2-SNAPSHOT/maven-metadata.xml
with content:

[debug] RunSetup: command line options:
[debug] RunSetup: options 2 4 
[debug (8/01/19 10:35:19 AM)] RunTimeSETUP: exists libs folder at: 
/Users/weik/Library/Application Support/Sikulix/SikulixLibs_201803080837
[debug (8/01/19 10:35:19 AM)] FileManager: resetFolder:
/Users/weik/Downloads/SetupStuff
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: workDir:
/Users/weik/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: workDirDownloads:
/Users/weik/Downloads/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: downloadsGeneric:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: downloadsGenericApp:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads_201803080837
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: found: python:
/Users/weik/Library/Application 
Support/Sikulix/SikulixDownloads/jython-standalone-2.7.1.jar
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: tess
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: python25
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: api
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: ide
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: rubyaddons
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: win
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: found: mac:
/Users/weik/Library/Application 
Support/Sikulix/SikulixDownloads/sikulixlibsmac-1.1.1.jar
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: lux
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: ruby
[debug (8/01/19 10:35:19 AM)] RunSetup: ... starting with: options 2 4 
[debug (8/01/19 10:35:19 AM)] RunSetup: Setup: 1.1.2 2018-03-08_08:37 in folder:
/Users/weik/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: 
popAsk: 
null
--- Native support libraries for all systems (sikulixlibs...)
--- Package 2 ---
null (Java API)
Only click NO, if you want to terminate setup now!

Re: [Sikuli-driver] [Question #676954]: clear cursor

2019-01-07 Thread TestMechanic
Question #676954 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676954

TestMechanic posted a new comment:
Seems like I was able to automate this scenario and there is no side
effects like one you are reporting

Here is the video record of the run(not sure why mouse was not recorded
in the video)

https://www.screencast.com/t/qORcRw6sXK

At the beginning of the video you can see the test script as well

-- 
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 #677380]: scroll down a page with findAll list

2019-01-07 Thread Marc Summers
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

Status: Answered => Open

Marc Summers is still having a problem:
I tried a second findAll at the bottom of the loop after the 
print "Going to try the next more button" 

but I could not get it to work.

I was hoping that you had a suggestion as to 
how to insert the second findAll  ?

-- 
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 #677380]: scroll down a page with findAll list

2019-01-07 Thread TestMechanic
Question #677380 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677380

Status: Open => Answered

TestMechanic proposed the following answer:
I do not see where is your second findAll. Your first findAll is outside the 
loop.
So you are never updating find result after the first page

-- 
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 #677380]: scroll down a page with findAll list

2019-01-07 Thread Marc Summers
New question #677380 on Sikuli:
https://answers.launchpad.net/sikuli/+question/677380

This is my basic code so far:

What I am trying to do is scroll down a long page of
Buttons, click the button and look for an order code number
in the pop up window.  Then close the pop up window
and go to the next button and click it, and so on 

The code below works OK for only those buttons that
are on screen initially.   The problem is if I try scrolling
and then do another list(findAll   all of the positions
of the buttons are shifted, and Sikuli clicks but in the
wrong position.
Any help you can give me would be much appreciated.
Thanks.

tbutt = 0

tbuttons = list(findAll("morebutton.png"))
print "I Found ",len(tbuttons)," matches"
tbuttsorted = sorted(tbuttons,key=lambda m:m.y)

for tbutt in tbuttsorted:
print "Going to click this more button"
hover(tbutt)

mouseDown(Button.LEFT)
mouseUp(Button.LEFT)

sleep(1)

try:
find(Pattern("ordercodedmg290.png").similar(0.99))
print "Found Order Code DMG290"
print "I am going with this one ", tbutt
mouseDown(Button.RIGHT)
mouseUp(Button.RIGHT)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)

break
except FindFailed:
print "Did NOT Find Order Code DMG290"
print "Going to try the next more button"

mouseDown(Button.RIGHT)
mouseUp(Button.RIGHT)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)

hover(tbutt)

-- 
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 #675498]: Remote Testing With Sikuli VNC

2019-01-07 Thread joseph paul
Question #675498 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675498

Status: Expired => Open

joseph paul is still having a problem:
yes...i believe UltraVNC is the issue.we also have changed to TightVNC
with better results.  Thanks

On Mon, Jan 7, 2019 at 12:52 PM Miguel Garcia <
question675...@answers.launchpad.net> wrote:

> Your question #675498 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/675498
>
> Miguel Garcia posted a new comment:
> Seems a UltraVNC issue. Just replaced it with TightVNC and everything
> worked just fine.
>
> --
> You received this question notification because you asked the question.
>

-- 
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 #675498]: Remote Testing With Sikuli VNC

2019-01-07 Thread Miguel Garcia
Question #675498 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675498

Miguel Garcia posted a new comment:
Seems a UltraVNC issue. Just replaced it with TightVNC and everything
worked just fine.

-- 
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 #675498]: Remote Testing With Sikuli VNC

2019-01-07 Thread Miguel Garcia
Question #675498 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675498

Miguel Garcia posted a new comment:
Hello RaiMan,

I'm getting the same behavior that Joseph got. I'm trying to connect
from my computer to a Virtual Box instance on the same machine. My
environment is as follows:

- Running sikulixapi.jar 1.1.4 (downloaded today) on MacOS Mojave 10.14.2.
- java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

- Virtual Box Win 7 (downloaded here: https://developer.microsoft.com
/en-us/microsoft-edge/tools/vms/), running UltraVNC 1.2..23 server.

When I connect with a VNC client everything looks just fine. If i try
vncscreen.userCapture(), all icons and some other elements on the remote
desktop look distorted.

Thanks in advance.

-- 
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 #677179]: Sikuli python scripting in visual studio

2019-01-07 Thread RaiMan
Question #677179 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677179

Status: Open => Answered

RaiMan proposed the following answer:
Make sure, to use the latest build of sikulixapi.jar (>#178)

-- 
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 #677179]: Sikuli python scripting in visual studio

2019-01-07 Thread mohammad
Question #677179 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677179

Status: Answered => Open

mohammad is still having a problem:
when adding the libraries from sikulixapi.jar from visual basic like:
  sys.path.append("C:\jython2.7.0\Lib\site-packages\sikulixapi")
  sys.path.append("C:\jython2.7.0\Lib\site-packages\sikulixapi\Lib")

after running import sikuli I get the following error:

Traceback (most recent call last):
  File "c:\program files (x86)\microsoft visual 
studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd_repl_launcher.py",
 line 130, in 
_run_repl()
  File "c:\program files (x86)\microsoft visual 
studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd_repl_launcher.py",
 line 114, in _run_repl
backend.execution_loop()
  File "c:\program files (x86)\microsoft visual 
studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py",
 line 748, in execution_loop
exit, cur_modules, cur_ps1, cur_ps2 = self.run_one_command(cur_modules, 
cur_ps1, cur_ps2)
  File "c:\program files (x86)\microsoft visual 
studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py",
 line 672, in run_one_command
self.execute_item = None
  File "c:\program files (x86)\microsoft visual 
studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py",
 line 670, in run_one_command
self.execute_item()
  File "c:\program files (x86)\microsoft visual 
studio\2017\professional\common7\ide\extensions\microsoft\python\core\ptvsd\repl\__init__.py",
 line 645, in execute_code_work_item
exec(code, self.exec_mod.__dict__, self.exec_mod.__dict__)
  File "", line 1, in 
  File "C:\jython2.7.0\Lib\site-packages\sikulix\Lib\sikuli\__init__.py", line 
6, in 
from Sikuli import *
  File "C:\jython2.7.0\Lib\site-packages\sikulix\Lib\sikuli\Sikuli.py", line 
31, in 
RUNTIME = RunTime.get()
at org.sikuli.script.RunTime.init(RunTime.java:635)
at org.sikuli.script.RunTime.get(RunTime.java:385)
at org.sikuli.script.RunTime.get(RunTime.java:194)
at org.sikuli.script.RunTime.get(RunTime.java:407)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

java.lang.NullPointerException: java.lang.NullPointerException
An internal error has occurred in the Interactive window.  Please restart 
Visual Studio.


any idea what the issue might be ? my JAVA_HOME is set to "C:\Program 
Files\Java\jdk1.8.0_191"

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread ONG YI CHONG
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

Status: Answered => Solved

ONG YI CHONG confirmed that the question is solved:
What do you mean by "Classes bundled in the SikuliX jar can just be
imported."  ?

Is there a place where I can find the list of classes bundled in the
SikuliX jar ?

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread RaiMan
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

RaiMan proposed the following answer:
Classes bundled in the SikuliX jar can just be imported.

For Classes in other jar's, these jars can be put into the /extensions folder, from where they would automatically be put on
the classpath.

-- 
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 #677354]: Can't invoke methods(click, hover, .. etc) from another script using IDE

2019-01-07 Thread IvanKovtunov
Question #677354 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677354

Status: Answered => Solved

IvanKovtunov confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 1631720] Re: [1.1.1] macOS Sierra 10.12: type() gets very slow after about 40 sec runtime - fixed 2016-10-10

2019-01-07 Thread IvanKovtunov
I think I have the same behavior on my MacbookPro 13(Mid 2012) 10.14.2.
I'm using SikuliX.app IDE 1.1.3

This is a console output after several type()


[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[debug] KeyPress: extended delay: 8797

[debug] KeyRelease: extended delay: 4588

[log] ( ⌥ ) TYPE "i"

[debug] KeyPress: extended delay: 6330
[debug] KeyPress: extended delay: 5550

[debug] KeyRelease: extended delay: 1463

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[debug] KeyPress: extended delay: 5343

[debug] KeyRelease: extended delay: 1727

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[log] ( ⌥ ) TYPE "i"

[debug] KeyPress: extended delay: 10010

[debug] KeyRelease: extended delay: 10026

[debug] KeyRelease: extended delay: 10024

[log] ( ⌥ ) TYPE "i"

[debug] KeyPress: extended delay: 10019

[debug] KeyPress: extended delay: 10026

[debug] KeyRelease: extended delay: 10021

[debug] KeyRelease: extended delay: 10026

[log] ( ⌥ ) TYPE "i"

[debug] KeyPress: extended delay: 10024

[debug] KeyPress: extended delay: 10031

[debug] KeyRelease: extended delay: 10025

[debug] KeyRelease: extended delay: 3913

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

Title:
  [1.1.1] macOS Sierra 10.12: type() gets very slow after about 40 sec
  runtime - fixed 2016-10-10

Status in Sikuli:
  Fix Committed

Bug description:
  * RaiMan tested and confirmed

  after about 40 seconds runtime, the type command pauses about 10
  seconds at key release for each following single character/key.

  This is the same problem as we had with click actions with OSX 10.10. 
  It was caused by some strange behavior of the Java Robot deep inside.
  At this time, type() was not yet affected. But now it seems to be.

  this is my test script, that recovers from the situation with an
  intermediate highlight.

  # TextEdit must be running with an open text window
  switchApp("textedit")
  x = "asdfghjklyxcvbnmqwertzuiop"
  type("a", Key.CMD)
  type(Key.BACKSPACE)
  wait(1)
  start = time.time()
  for i in range(50):
type(str(int(time.time() - start)) + " ")
for c in x:
  lap = time.time()
  type(c)
  if time.time()-lap > 1:
getCenter().grow(50).highlight(2)
type("\n")

  After detecting the extended delay, the problem is fixed by the
  highlight.

  --
   
  After Upgrade to Sierra the Type Command seems very Slow
  Is anyone else finding this or is it just my old Mac struggling

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1631720/+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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread ONG YI CHONG
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

ONG YI CHONG posted a new comment:
So even if the sikuliX directory contains .py file, java classes can
still be imported and used ?

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread RaiMan
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

RaiMan proposed the following answer:
--- print "hello world" and system.out.println("hello world")
are principally the same (though there might be String encoding challenges ;-)

... but every used Java class must be imported before usage.

my preferred technique:
import java.lang.system.out as JSysOut #once per script
JSysOut.println(...)
JSysOut.println(...)
JSysOut.println(...)
JSysOut.println(...)
...

but this also
import java
java.lang.System.out.println("hello world") 

more can be found in the net.

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread ONG YI CHONG
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

ONG YI CHONG posted a new comment:
Hi RaiMan thanks so much for your reply ! Does that mean that sikuliX
can accept both python and java syntax ?

if i call print "hello world" and system.out.println("hello world") both
would be valid ?

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread RaiMan
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

RaiMan proposed the following answer:
The OpenCV API is available in SikuliX at the Java Level.

Since we run the Jython interpreter, Java classes can be accessed easily
from the Python script level after import:

the principle:

import org.opencv.core.Mat as CVMat
aMat = CVMat();

... would create a Jython object representing an empty Mat

the JavaDocs: https://docs.opencv.org/3.4/javadoc/index.html

If you have any Python or even C++ examples from the net, it is rather easy, to 
transcript them to the Java-eco-system.
Surely you will find some Java based examples too.

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread ONG YI CHONG
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

ONG YI CHONG posted a new comment:
I would like to use opencv's contour detection to identify UI elements
and write a sikuli script to click on those elements.

Is there any other way around it ? I thought it would be possible since
sikuliX uses opencv libraries as well.

-- 
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 #677354]: Can't invoke methods(click, hover, .. etc) from another script using IDE

2019-01-07 Thread RaiMan
Question #677354 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677354

Status: Open => Answered

RaiMan proposed the following answer:
see:
https://sikulix-2014.readthedocs.io/en/latest/scripting.html#importing-other-sikuli-scripts-reuse-code-and-images

-- 
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 #677359]: UnsatisfiedLinkError with OpenCV. Undefined Symbol libgdal.so.20

2019-01-07 Thread RaiMan
Question #677359 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677359

Status: Open => Answered

RaiMan proposed the following answer:
apparently your opencv setup has a problem.

search your appropriate Linux forums.

-- 
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 #677361]: How do i import python modules into sikuliX script ?

2019-01-07 Thread RaiMan
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361

Status: Open => Answered

RaiMan proposed the following answer:
Python libs can only be imported into SikuliX, if they are completely written 
in plain Python.
If they rely on any C-based components (native libraries), they cannot be 
imported.

The reason behind: the scripting language is Python, but we use the Java
based Jython interpreter (language level 2.7).

cv2 definitely  and matplotlib most probably are candidates for being
non-importable (C-based stuff contained).

What is your intention?

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