[Sikuli-driver] [Question #676635]: sikuli doing right click instead of left using katalon studio sometimes !
New question #676635 on Sikuli: https://answers.launchpad.net/sikuli/+question/676635 using sikuli with katalon studio sometimes when i start sikuli its doing right click instead of left click .? can you tel me why im using screen.click() but it does rightclick at a particular section only ... -- 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 #676631]: cannot find image using find(image_path)
New question #676631 on Sikuli: https://answers.launchpad.net/sikuli/+question/676631 I am trying to understand Sikuli's Region.find(PS) method and I understand how to use it when i input a pattern object (image) . However, when i try to ask sikuliX to find the image given the path i i input, I always seem to get an error. match = "/Users/ongyichong/Desktop/Screenshot_1544070692.png" returnMatch = find(match) Error: [error] JythonScriptRunner: runPython: (match = "/Users/ongyichong/Desktop/Screenshot_1544070692.png" returnMatch = find(match) ) raised: Traceback (most recent call last): File "", line 2, in ] at org.opencv.imgproc.Imgproc.matchTemplate_1(Native Method) at org.opencv.imgproc.Imgproc.matchTemplate(Imgproc.java:2612) at org.sikuli.script.Finder2.doFindMatch(Finder2.java:357) at org.sikuli.script.Finder2.doFind(Finder2.java:327) at org.sikuli.script.Finder2.find(Finder2.java:79) at org.sikuli.script.Finder.find(Finder.java:267) at org.sikuli.script.Region.runFinder(Region.java:2889) at org.sikuli.script.Region.doFind(Region.java:2827) at org.sikuli.script.Region.find(Region.java:2327) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.b ase/java.lang.reflect.Method.invoke(Method.java:564) org.opencv.core.CvException: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2) /Users/raimundhocke/SikuliX/OpenCV/opencv-3.4.2/modules/imgproc/src/templmatch.cpp:1107: error: (-215:Assertion failed) _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'matchTemplate' ] The screenshot definitely exists in the path i specified. Please advice, or am i using the API wrongly ? -- 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 #676426]: Cannot start App when executing Sikuli script from cmd
Question #676426 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676426 sdraganov posted a new comment: Not sure what exactly do you mean by full-screen application, can you get me some examples? -- 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 #676426]: Cannot start App when executing Sikuli script from cmd
Question #676426 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676426 sdraganov posted a new comment: Yeap, it works fine with notepad, so there is something specific to 3dsMax application I'm using. Any idea what to have a look? -- 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 #676426]: Cannot start App when executing Sikuli script from cmd
Question #676426 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676426 sdraganov posted a new comment: I happens every time with Autodesk 3dsMax application with Java 11 as well. Strange thing is it's work fine with version 1.1.3 Let me try with notepad and will let you know it's reproducible with it 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 #676619]: Getting text(date) from image that changes everyday
Question #676619 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676619 monicar posted a new comment: Thanks Raiman. Working as expected with offset. On Wed, Dec 5, 2018, 10:56 AM RaiMan Your question #676619 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/676619 > > Status: Open => Answered > > RaiMan proposed the following answer: > --- general comment > screen.wait(txtImage, 10); >String extractText = screen.find(txtImage).text(); > > This does not really make sense: > Match theText = screen.wait(txtImage, 10); // gives the region > of the image > String extractText = theText.text(); > > or even shorter: > String extractText = screen.wait(txtImage, 10).text() > > --- your problem > As I understand, the region on the screen of the found txtImage contains > the text you want to read and this area changes. > > --- how to: > - find some image near the text region, that does not change. > - define the region with the text relative to this match > - read the text from this region > > meta code: > ref = find(someReferenceImage) > textRegion = ref.offset(x, y).grow() // x, y and ... have to be > evaluated manually > txt = textRegion.text() > > -- > If this answers your question, please go to the following page to let us > know that it is solved: > https://answers.launchpad.net/sikuli/+question/676619/+confirm?answer_id=0 > > If you still need help, you can reply to this email or go to the > following page to enter your feedback: > https://answers.launchpad.net/sikuli/+question/676619 > > 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 #676619]: Getting text(date) from image that changes everyday
Question #676619 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676619 Status: Answered => Solved monicar confirmed that the question is solved: Offset worked. -- 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 #676625]: Stop script, command line Windows
New question #676625 on Sikuli: https://answers.launchpad.net/sikuli/+question/676625 I know it's not possible to use the shortcut Alt + Shift + C on Windows when we launch a script from the command line. But even if I interrupt manually the command, or if I kill the Windows console, the script keeps running. The only way for me to kill it is to open another console and run wmic process where "name like '%java%'" delete Is this a bug or am I missing something? I'm running the latest Sikulix on Windows 10, and use the command C:\\SikuliX\\sikulix.jar -r script.sikuli -- 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 #676618]: Pycharm Sikulix Script warning Starting message
Question #676618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676618 Status: Open => Answered RaiMan proposed the following answer: ok, you have to experiment a bit with the 2 monitor setup, with what is running where and what is the primary monitor. I am sorry, but currently I do not have a Windows 10 box, that allows me to attach a second monitor. -- 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 #676619]: Getting text(date) from image that changes everyday
Question #676619 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676619 Status: Open => Answered RaiMan proposed the following answer: --- general comment screen.wait(txtImage, 10); String extractText = screen.find(txtImage).text(); This does not really make sense: Match theText = screen.wait(txtImage, 10); // gives the region of the image String extractText = theText.text(); or even shorter: String extractText = screen.wait(txtImage, 10).text() --- your problem As I understand, the region on the screen of the found txtImage contains the text you want to read and this area changes. --- how to: - find some image near the text region, that does not change. - define the region with the text relative to this match - read the text from this region meta code: ref = find(someReferenceImage) textRegion = ref.offset(x, y).grow() // x, y and ... have to be evaluated manually txt = textRegion.text() -- 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 #676618]: Pycharm Sikulix Script warning Starting message
Question #676618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676618 Status: Needs information => Open matteoa gave more information on the question: Hello RaiMan, this is my setup: 1.1.4-SNAPSHOT-2018-12-03_15:24/Windows10.0/Java8(64)1.8.0_191-b12 Yes, I have a laptop+an external monitor, I just made a test with only the embedded monitor and the messages are only the expected ones. Since using two monitor makes me work better, and that I do not have any real problem(i.e. the script works), if in your opinion is only a matter of additional warning message I'll continue with my setup. Else I'll see what to do...Running the same script from within Sikulix IDE these message are not there. Thanks a lot for your prompt support Matteo -- 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 #676618]: Pycharm Sikulix Script warning Starting message
Question #676618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676618 Status: Open => Needs information RaiMan requested more information: looks like a 2 monitor setup?? laptop + 2nd Screen?? Try on laptop only. what Java? what Windows? -- 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 #676619]: Getting text(date) from image that changes everyday
New question #676619 on Sikuli: https://answers.launchpad.net/sikuli/+question/676619 I am trying to get text from image. Text is the date that changes every hour. Sikuli is getting the text what is in image not on the application. I am comparing the Text(Date) string with the my calculated date. As the Date from the application changes often my scripts are failing. Here is the logic: try { //Extract Donor's Status text from the region Settings.OcrTextRead = true; Settings.OcrTextSearch = true; screen.wait(txtImage, 10); String extractText = screen.find(txtImage).text(); extractText = extractText.replaceAll("[a-zA-Z]","/"); // extractText = extractText.substring(3); Date date1 = new SimpleDateFormat(US_DATE_FORMAT_STRING).parse(extractText); TestEnvironment.get().getTestLogger().log("Eligibility Date: " + extractText); LocalDate today = LocalDate.now(); LocalDate drawdate = null; if (period.toLowerCase().contains("today")){ drawdate =LocalDate.now(); } else if (period.toLowerCase().contains("week")){ drawdate = today.minus(1, ChronoUnit.WEEKS); } else if (period.toLowerCase().contains("month")){ drawdate = today.minus(1, ChronoUnit.MONTHS); }else { throw new IllegalArgumentException(period); } LocalDate eligibilityDate = drawdate.plus(days, ChronoUnit.DAYS); TestEnvironment.get().getTestLogger().log("Calculated Eligibility Date: " + eligibilityDate); TestEnvironment.get().getErrorCollector().checkThat("Eligibility Date:", extractText, is(equalTo(eligibilityDate.format(US_DATE_FORMAT; } catch (FindFailed | ParseException error) { TestEnvironment.get().getErrorCollector().addError(error); } extractText changes often in my application, I have to take screenshot when ever it changes and run my scripts. Can you please suggest me any other alternatives to get dynamic text from application instead of the captured image. -- 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 #676618]: Pycharm Sikulix Script warning Starting message
New question #676618 on Sikuli: https://answers.launchpad.net/sikuli/+question/676618 Hello, after managing to configure Pycharm, with the instruction together with the clearing of the /Sikulix/Lib. to test it I wrote a very simple script: import org.sikuli.script.SikulixForJython from sikuli import * print("hello") popup("hello world") exit(0) That works. When I launch the script from within PyCharm I have the message below(including expected "hello" and exit), I tried to start Pycharm as an administrator without any change. Not a blocking problem, so far. Thanks for info Matteo \jython2.7.0\bin\jython.exe -Dpython.path=C:\TEst\Pycharm C:/TEst/Pycharm/helloworld.py [error] RobotDesktop: checkMousePosition: should be L(-1152,432)@S(1)[-1920,0 1536x864] but after move is L(-1306,346)@S(1)[-1920,0 1536x864] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. You might try to run the SikuliX stuff as admin. [error] RobotDesktop: checkMousePosition: should be L(1555,91)@S(0)[0,0 1920x1080] but after move is L(1919,113)@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. You might try to run the SikuliX stuff as admin. hello Process finished with exit code 0 -- 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 #676613]: Сan not paste Russian letters
Question #676613 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676613 RaiMan posted a new comment: yes, you got it ;-) a shortcut is available: paste(unicd('йцуке')) -- 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 #676613]: Сan not paste Russian letters
Question #676613 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676613 Status: Open => Solved vasiliy confirmed that the question is solved: Problem solved I used: paste(unicode('йцуке',"utf8")) -- 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 #676613]: Сan not paste Russian letters
New question #676613 on Sikuli: https://answers.launchpad.net/sikuli/+question/676613 In sikulix 1.1.3 I try to paste some russian letters in text field. But i see something like this: йÑ??Ñ??к in text field. I used Jython 2.7.0 and 2.5.4 both with the same result. I got this result in two different PC. P.S. earlier I used Sikuli-r930-win32 and it this worked good. P.P.S. I used command like this: paste('йцуу') -- 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 #676607]: package directory 'lib\yaml' does not exist
Question #676607 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676607 vasiliy posted a new comment: C:\Users\user\Desktop\sikuli\libs that is directory with sikuli -- 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 #676607]: package directory 'lib\yaml' does not exist
Question #676607 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676607 RaiMan posted a new comment: Ok, thanks for feedback. ... but where did the install finally put the yaml module? -- 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 #676607]: package directory 'lib\yaml' does not exist
Question #676607 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676607 Status: Open => Solved vasiliy confirmed that the question is solved: I'm sorry. I solved problem by: 1. cd C:\Sikuli\PyYAML-3.12 2. java -cp C:\Users\user\Desktop\sikuli/sikulix.jar org.python.util.jython setup.py install -- 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 #676564]: Handbrake Erorr Handling Help
Question #676564 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676564 Status: Open => Answered RaiMan proposed the following answer: --- .missing my sidebar switched off - see the news section --- cant find any info on the find changes feature yep, sorry. Added it to the docs now (class Finder) IMHO for your situation the observer/onChange might be the more efficient way. -- 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