Re: [Sikuli-driver] [Question #670704]: Jython non-interactive command line quick as in runsikuli -i ? (Ubuntu 16.4)
Question #670704 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670704 Description changed to: Hi, being very newbie to Jython and SikuliX, a) I installed Sikulix via java -jar ../sikulixsetup-1.1.2.jar options 2 4.3 on Ubuntu 16.4 java -jar jython-installer-2.7.0.jar -s -d /usr/local/lib/jython -with jip according to the manual, b) the sample script is to click the 9 button on the xcalc calculator cat neun2.py import org.sikuli.script.SikulixForJython from sikuli import * click("1530373722085.png") c)I achieved execution: 1) slow (around ten seconds and do not know if profiting from jython install, because before I counted 25 or even 56 seconds) ../runsikulix -r ../neun2.sikuli/ 2) quickly (less than a second) but unfortunately not non-interactively: ../runsikulix -i >>> execfile("neun2.py") 3) slow as 1) -after a jip install according to the manual- I came to: SIKULI=/home/user1/Downloads/hellosikuli.sikuli/sikulixapi.jar; JYTHONDIR=/usr/local/lib/jython/jython.jar; java -cp "$JYTHONDIR:$SIKULI" org.python.util.jython -Dpython.cachedir="/tmp/stest/"./neun2.py Now I would like to run the script quickly like 2) but non-interactively, via Jython command line such as ( 3) )for quickly testing meanwhile doing the coding. Question: Is that possible at all? How then? I assume "runsikulix --server" could be the way to go. Am I right? Thanks a lot for answers or suggestions. Ps: I worked through to the manual chapter until:"Access Python packages from SikuliX scripts run by SikuliX (GUI or command line)". Regarding the later chapters I am unsure if I needed them for my purpose. -- 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 #670704]: Jython non-interactive command line quick as in runsikuli -i ? (Ubuntu 16.4)
Question #670704 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670704 Description changed to: Hi, being very newbie to Jython and SikuliX, a) I installed Sikulix via java -jar ../sikulixsetup-1.1.2.jar options 2 4.3 on Ubuntu 16.4 java -jar jython-installer-2.7.0.jar -s -d /usr/local/lib/jython -with jip according to the manual, b) the sample script is to click the 9 button on the xcalc calculator cat neun2.py import org.sikuli.script.SikulixForJython from sikuli import * click("1530373722085.png") c)I achieved execution: 1) slow (around ten seconds and do not know if profiting from jython install, because before I counted 25 or even 56 seconds) ../runsikulix -r ../neun2.sikuli/ 2) quickly (less than a second) but unfortunately not non-interactively: ../runsikulix -i >>> execfile("neun2.py") 3) slow as 1) -after a jip install according to the manual- I came to: SIKULI=/home/user1/Downloads/hellosikuli.sikuli/sikulixapi.jar; JYTHONDIR=/usr/local/lib/jython/jython.jar; java -cp "$JYTHONDIR:$SIKULI" org.python.util.jython -Dpython.cachedir="/tmp/stest/"./neun2.py Now I would like to run the script quickly like 2) but non-interactively, via Jython command line for quickly testing meanwhile doing the coding. Question: Is that possible at all? How then? I assume "runsikulix --server" could be the way to go. Thanks a lot for answers or suggestions. Ps: I worked through to the manual chapter until:"Access Python packages from SikuliX scripts run by SikuliX (GUI or command line)". Regarding the later chapters I am unsure if I needed them for my purpose. -- 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 #670704]: Jython non-interactive command line quick as in runsikuli -i ? (Ubuntu 16.4)
Question #670704 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670704 Summary changed to: Jython non-interactive command line quick as in runsikuli -i ? (Ubuntu 16.4) Description changed to: Hi, being very newbie to Jython and SikuliX, a) I installed Sikulix via java -jar ../sikulixsetup-1.1.2.jar options 2 4.3 on Ubuntu 16.4 java -jar jython-installer-2.7.0.jar -s -d /usr/local/lib/jython -with jip according to the manual, b) the sample script is to click the 9 button on the xcalc calculator cat neun2.py import org.sikuli.script.SikulixForJython from sikuli import * click("1530373722085.png") c)I achieved execution: 1) slow (around ten seconds and do not know if profitting from jython install) ../runsikulix -r ../neun2.sikuli/ 2) quickly (less than a second) but unfortunately not non-interactively: ../runsikulix -i >>> execfile("neun2.py") 3) slow as 1) -after a jip install according to the manual- I came to: SIKULI=/home/user1/Downloads/hellosikuli.sikuli/sikulixapi.jar; JYTHONDIR=/usr/local/lib/jython/jython.jar; java -cp "$JYTHONDIR:$SIKULI" org.python.util.jython -Dpython.cachedir="/tmp/stest/"./neun2.py Now I would like to run the script quickly like 2) but non-interactively, via Jython command line for quickly testing meanwhile doing the coding. Question: Is that possible at all? How then? I assume "runsikulix --server" could be the way to go. Thanks a lot for answers or suggestions. Ps: worked to the manual chapter untill:"Access Python packages from SikuliX scripts run by SikuliX (GUI or command line)" -- 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 #670721]: I can't use more 3 pictures
Question #670721 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670721 Status: Answered => Solved mrderanakt 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] [Question #670724]: Trouble finding matches for images
New question #670724 on Sikuli: https://answers.launchpad.net/sikuli/+question/670724 For my Sikulix script I captured a few images from the screen and use them in SikuliX e.g. for clicking on them. This works most of the time, but sometimes there is a weird issue I could not understand or find information about. Here is the deal: SikuliX fails to find an image on the screen. I can see that it is clearly there. I am aware of the similarity value and how to use it. However what happens here: when I go to the match preview in SikuliX it also finds that the image is on screen as it should be with the set similarity. But instead of marking the region with a bright red color, it is now marked with a pinkish or magenta color. So basically every time I get a FindFailed, the match preview shows a pink region instead of a red one. The image in question is the only one of its kind on the screen and the match preview only finds one image on the screen that it marks with a pink region. If I slide the similarity value lower (starting e.g. from 80%), the found image remains pink. If I slide it even lower, other unrelated regions begin to pop up marked with the same pink color. Sliding similarity slightly above the initial value ther is no more found image at all. What exactly is happening here? What do the different colors in the match preview mean? And how can I tell SikuliX to accept an image on the screen as found even if this situation occurs? Using version 1.1.3 on windows 10, but had this issue since 1.1.1. -- 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 #670721]: I can't use more 3 pictures
Question #670721 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670721 Status: Open => Answered RaiMan proposed the following answer: 1. use latest SikuliX (1.1.3) 2. read the docs http://sikulix-2014.readthedocs.io/en/latest/region.html#find-more-than-one-image-in-a-region-at-the-same-time -- 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 #670719]: [1.1.x] macOS 10.13: MouseDown: extended delay:
Question #670719 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670719 Status: Open => Answered RaiMan proposed the following answer: Will be fixed as for osx versions 10.10, 10.11, 10.12 with the next nightly 1.1.3 (build #34) the current problem: macOS 10.13 is simply not detected. -- 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 #670719]: MouseDown: extended delay:
Question #670719 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670719 Linked to bug: #1739534 https://bugs.launchpad.net/bugs/1739534 "[1.1.1] [1.1.2] MacOS 10.13.2: Large MouseDown Extended Delays while playing Web App after about 1 minute --- workarounds" -- 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 #670719]: [1.1.x] macOS 10.13: MouseDown: extended delay:
Question #670719 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670719 Summary changed to: [1.1.x] macOS 10.13: MouseDown: extended delay: -- 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 #670722]: (Russian) Не могу использовать больше 3 фотографий в коде
A question was asked in a language (Russian) spoken by none of the registered Sikuli answer contacts. https://answers.launchpad.net/sikuli/+question/670722 n=0 while n<1: if not exists("1.png"or"2.png"or"3.png"or"4.png"or"5.png"or"6.png"or"7.png"or"8.png"or"9.png"or"10.png"): click("0.png") else: click("1.png"or"2.png"or"3.png"or"4.png"or"5.png"or"6.png"or"7.png"or"8.png"or"9.png"or"10.png") Я не могу использовать больше 3 фотографий в моей программе.Моя программа должна найти любую нужную картинку и нажать на нее.Но хотя нужная картинка есть на экране,программа думает, что это не так.Как я могу использовать так много фотографий без ошибок? -- 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 #670721]: I can't use more 3 pictures
New question #670721 on Sikuli: https://answers.launchpad.net/sikuli/+question/670721 n=0 while n<1: if not exists("1.png"or"2.png"or"3.png"or"4.png"or"5.png"or"6.png"or"7.png"or"8.png"or"9.png"or"10.png"): click("0.png") else: click("1.png"or"2.png"or"3.png"or"4.png"or"5.png"or"6.png"or"7.png"or"8.png"or"9.png"or"10.png") I can't use more 3 pictures in my program.My program should find any needed picture and click on it.But although needed picture is on screen,the program think that itsn't.How can i use so many pictures without bug? -- 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 #670719]: MouseDown: extended delay:
New question #670719 on Sikuli: https://answers.launchpad.net/sikuli/+question/670719 Read various Comments on Mouse Delay Mine seems to happen when it loses the position of the mouse :- 1.1.3(2018-07-05_16:27)/Mac10.13.5/Java8(64)1.8.0_25-b17 wheel(Location(865, 568), WHEEL_DOWN, 25) [error] RobotDesktop: checkMousePosition: should be L(55,110)@S(0)[0,0 1920x1080] but after move is L(1182,358)@S(0)[0,0 1920x1080] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. [debug] MouseDown: extended delay: 10012 [debug] MouseUp: extended delay: 10017 [log] CLICK on L(55,110)@S(0)[0,0 1920x1080] (21035 msec) [debug] MouseDown: extended delay: 20011 [debug] MouseUp: extended delay: 20011 -- 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 #670718]: Mac: runsikulix -- all you need is in the folder, where you run setup
Question #670718 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670718 Summary changed to: Mac: runsikulix -- all you need is in the folder, where you run setup Description changed to: ** global comment All you need to know is here: http://www.sikulix.com/quickstart/ and here: http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-system-specifics the runsikulix command script is in the folder where you have run setup. 1.1.3(2018-07-05_16:27)/Mac10.13.5/Java8(64)1.8.0_25-b17 Up Until today have been running 1.1.1 and executing scripts with /Applications/Sikuli/runsikulix -r path to file How do I do this now Searches led me to believe this would work:- SIKULI_HOME=/Applications/Sikuli-IDE.app/Contents/Resources/Java java -jar $SIKULI_HOME/sikuli-script.jar /Users/Jeff/Desktop/SikuliScripts/Guld_Warfare/Get_Sails_Mk2.sikuli Result :- Error: Unable to access jarfile /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.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 #670718]: runsikulix
Question #670718 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670718 Status: Open => Solved Jeff_Vallis confirmed that the question is solved: Installation in new folder Then Moved SikuliX.app to Applications WRONG Should have moved folder to applications and called it Sikuli [debug (07/07/18 08:25:01)] Debug: setLogFile: /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli/SikuliX-1.1.3-SetupLog.txt [debug (07/07/18 08:25:01)] RunSetup: ... starting with no args given [debug (07/07/18 08:25:01)] RunSetup: Setup: 1.1.3 2018-07-05_16:27 in folder: /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli [debug (07/07/18 08:25:01)] RunSetup: RunningSystem: Mac OSX 10.13.5 [debug (07/07/18 08:25:01)] RunSetup: parent of jar/classes: /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli [debug (07/07/18 08:25:01)] RunSetup: RunningJava: Java 8 (x86_64) 1.8.0_161-b12 [debug (07/07/18 08:25:01)] init user preferences [debug (07/07/18 08:25:08)] RunSetup: popAsk: The following file(s) will be downloaded to /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli --- Native support libraries for Mac OSX (sikulixlibs...) --- Package 1 --- sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar (IDE/Scripting) sikulixsetupAPI-1.1.3-20180705.162943-32-forsetup.jar (Java API) - with Jython - creating Mac application Only click NO, if you want to terminate setup now! Click YES even if you want to use local copies in Downloads! [debug (07/07/18 08:25:11)] RunSetup: popAsk: You have for Mac native libs /Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads/sikulixlibsmac-1.1.1.jar Click YES, if you want to use this for setup processing ... or click NO, to ignore it and download a fresh copy [debug (07/07/18 08:25:13)] RunSetup: Copied from Downloads: sikulixlibsmac [debug (07/07/18 08:25:13)] RunSetup: popAsk: You have for SikuliX IDE package /Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads_201807051627/sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar Click YES, if you want to use this for setup processing ... or click NO, to ignore it and download a fresh copy [debug (07/07/18 08:25:48)] FileManager: download to string from: https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.3-SNAPSHOT/maven-metadata.xml, [debug (07/07/18 08:25:48)] RunSetup: getMavenJar: sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar [debug (07/07/18 08:25:48)] FileManager: Downloading sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar having 23022 KB [debug (07/07/18 08:26:03)] FileManager: downloaded 23022 KB to: /Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads_201807051627/sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar [debug (07/07/18 08:26:03)] FileManager: download time: 14 [debug (07/07/18 08:26:06)] RunSetup: Copied from Downloads: sikulix [debug (07/07/18 08:26:06)] RunSetup: popAsk: If you click YES, you will get Jython version 2.7.0 (recommended) ... but in rare cases there might be issues with UTF-8/Unicode that usually appear on startup when UTF-8 characters are present somewhere in the system environment If you encounter such problems with Jython 2.7.0 run setup again and click NO to get Jython a 2.5.4 version [debug (07/07/18 08:26:11)] RunSetup: popAsk: You have for Jython 2.7 /Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads/jython-standalone-2.7.1.jar Click YES, if you want to use this for setup processing ... or click NO, to ignore it and download a fresh copy [debug (07/07/18 08:26:26)] FileManager: Downloading jython-standalone-2.7.1.jar having 40171 KB [debug (07/07/18 08:26:31)] FileManager: downloaded 40171 KB to: /Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads/jython-standalone-2.7.1.jar [debug (07/07/18 08:26:31)] FileManager: download time: 4 [debug (07/07/18 08:26:35)] RunSetup: Copied from Downloads: Jython [debug (07/07/18 08:26:35)] RunSetup: Download ended [debug (07/07/18 08:26:35)] RunSetup: Downloads for selected options: sikulixlibsmac-1.1.1.jar sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar sikulixsetupAPI-1.1.3-20180705.162943-32-forsetup.jar jython-standalone-2.7.1.jar [debug (07/07/18 08:26:35)] RunSetup: adding needed stuff to sikulix.jar [debug (07/07/18 08:26:35)] FileManager: buildJar: sikulixtemp.jar [debug (07/07/18 08:26:35)] FileManager: buildJar: adding: sikulix.jar [debug (07/07/18 08:26:50)] FileManager: buildJar: adding: sikulixjython.jar [debug (07/07/18 08:27:57)] FileManager: buildJar: adding: sikulixlibsmac.jar [debug (07/07/18 08:28:09)] FileManager: buildJar: completed [debug (07/07/18 08:28:09)] RunSetup: renaming sikulixtemp.jar to target jar: sikulix.jar [debug (07/07/18 08:28:10)] RunSetup: making the Mac application Siku
[Sikuli-driver] [Question #670718]: runsikulix
New question #670718 on Sikuli: https://answers.launchpad.net/sikuli/+question/670718 1.1.3(2018-07-05_16:27)/Mac10.13.5/Java8(64)1.8.0_25-b17 Up Until today have been running 1.1.1 and executing scripts with /Applications/Sikuli/runsikulix -r path to file How do I do this now Searches led me to believe this would work:- SIKULI_HOME=/Applications/Sikuli-IDE.app/Contents/Resources/Java java -jar $SIKULI_HOME/sikuli-script.jar /Users/Jeff/Desktop/SikuliScripts/Guld_Warfare/Get_Sails_Mk2.sikuli Result :- Error: Unable to access jarfile /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.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