Re: [Sikuli-driver] [Question #677361]: How do i import python modules into sikuliX script ?

2019-01-09 Thread ONG YI CHONG
Question #677361 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/677361 ONG YI CHONG gave more information on the question: import java.lang.System.out as jSysOut import org.opencv.core.Mat as CVMat import org.opencv.imgcodecs.Imgcodecs as IC import org.opencv.highgui.HighGui

Re: [Sikuli-driver] [Question #677361]: How do i import python modules into sikuliX script ?

2019-01-09 Thread ONG YI CHONG
Question #677361 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/677361 Status: Answered => Open ONG YI CHONG is still having a problem: I am getting another error when i try to use any of the org.opencv libraries in the sikuliX IDE. Do i need to append sys.path or

Re: [Sikuli-driver] [Question #677361]: How do i import python modules into sikuliX script ?

2019-01-08 Thread ONG YI CHONG
Question #677361 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/677361 Status: Needs information => Open ONG YI CHONG gave more information on the question: I have downloaded and added the sikulixapi.jar file into intellij's library module. I was wondering if there is

Re: [Sikuli-driver] [Question #677361]: How do i import python modules into sikuliX script ?

2019-01-08 Thread ONG YI CHONG
Question #677361 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/677361 ONG YI CHONG posted a new comment: nope i am using 2018-12-14 one. I shall go and download the new one ! -- You received this question notification because your team Sikuli Drivers is an answer contact

Re: [Sikuli-driver] [Question #677361]: How do i import python modules into sikuliX script ?

2019-01-08 Thread ONG YI CHONG
Question #677361 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/677361 Status: Answered => Open ONG YI CHONG is still having a problem: Oh i was trying to run sikuliX from the command line. And it gave me an import error. Do i have to append the jar file p

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 quest

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 whe

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

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

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

Re: [Sikuli-driver] [Question #677361]: How do i import python modules into sikuliX script ?

2019-01-06 Thread ONG YI CHONG
Question #677361 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/677361 Description changed to: I know this question has been asked many times, I have read the posts but i am still confused as to what i should do. How do i import other python libraries like cv2, matplotlib for

[Sikuli-driver] [Question #677361]: How do i import python modules into sikuliX script ?

2019-01-06 Thread ONG YI CHONG
New question #677361 on Sikuli: https://answers.launchpad.net/sikuli/+question/677361 I know this question has been asked many times, I have read the posts but i am still confused as to what i should do. How do i import other python libraries like cv2, matplotlib for use in my sikuliX script

Re: [Sikuli-driver] [Question #676958]: Is it possible to detect shapes in sikuliX ?

2018-12-21 Thread ONG YI CHONG
Question #676958 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676958 ONG YI CHONG posted a new comment: are we able to import opencv library for our own useage ? for example use openCV to run a shape detection algorithm in sikuliX -- You received this question notification

[Sikuli-driver] [Question #676958]: Is it possible to detect shapes in sikuliX ?

2018-12-20 Thread ONG YI CHONG
New question #676958 on Sikuli: https://answers.launchpad.net/sikuli/+question/676958 Is it possible to detect shapes on the screen and carry out some tasks based on what the shapes detected are ? For example if rectangle do this, if not rectangle do that etc. Since sikuliX uses openCV would it

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-18 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 ONG YI CHONG posted a new comment: Is there a way to change the Region.exists() timing to be shorter? -- You received this question notification because your team Sikuli Drivers is an answer contact

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-18 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 ONG YI CHONG posted a new comment: The handler is still not getting executed completely. I have changed my code to this def handler(self,event): print "Starting Handler",i

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-17 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 ONG YI CHONG posted a new comment: After adding a print before match = r.find() and a print after, it seems that the handler function exits at the match statement because the print before match

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-17 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 ONG YI CHONG posted a new comment: What i wanted to do was every time the region changes in pixel, indicating a change in screen page, the handler code would run and compare with the previous screenshots

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-17 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 ONG YI CHONG posted a new comment: It seems like the handler code was cut off because the observation timed out or something -- You received this question notification because your team Sikuli Drivers

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-17 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 ONG YI CHONG posted a new comment: Also another one of my unsuccessful attempts. [debug] Region: observe: starting in R[18,101 269x431]@S(0) for 0.2 seconds [debug] Observer: resetting observe states for R

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-17 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 ONG YI CHONG posted a new comment: 1) The observe and click is not called within a try catch 2) for print(found), True cases are missing. I have not seen a false case which causes a crash. However, some

[Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-16 Thread ONG YI CHONG
New question #676840 on Sikuli: https://answers.launchpad.net/sikuli/+question/676840 I am getting inconsistent results when i try running the following code. Basically what happens is observe_and_click(..) method is called, which will cause the region to observe for changes. Once region

Re: [Sikuli-driver] [Question #676840]: Inconsistent behaviour of SIkuli code run

2018-12-16 Thread ONG YI CHONG
Question #676840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676840 Description changed to: I am getting inconsistent results when i try running the following code. Basically what happens is observe_and_click(..) method is called, which will cause the region to observe

[Sikuli-driver] [Question #676839]: Inconsistent behaviour of SIkuli code run

2018-12-16 Thread ONG YI CHONG
New question #676839 on Sikuli: https://answers.launchpad.net/sikuli/+question/676839 I am getting inconsistent results when i try running the following code. Basically what happens is observe_and_click(..) method is called, which will cause the region to observe for changes. Once region

Re: [Sikuli-driver] [Question #676792]: [error] EditorPane: Problem while trying to clean bundle (not used images): null ?

2018-12-14 Thread ONG YI CHONG
Question #676792 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676792 Status: Answered => Solved ONG YI CHONG confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Driv

Re: [Sikuli-driver] [Question #676792]: [error] EditorPane: Problem while trying to clean bundle (not used images): null ?

2018-12-14 Thread ONG YI CHONG
Question #676792 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676792 Status: Answered => Open ONG YI CHONG is still having a problem: I still see this error even though Im using sikuliX 1.1.4. I have sikuliX 1.1.3 downloaded as well. Could that be the prob

[Sikuli-driver] [Question #676792]: [error] EditorPane: Problem while trying to clean bundle (not used images): null ?

2018-12-13 Thread ONG YI CHONG
New question #676792 on Sikuli: https://answers.launchpad.net/sikuli/+question/676792 Can anyone explain to me what this error is ? whenever i try to save my script it always shows this error. I feel like whenever i see this error, my script isnt saved. -- You received this question

Re: [Sikuli-driver] [Question #676756]: handler function

2018-12-12 Thread ONG YI CHONG
Question #676756 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676756 ONG YI CHONG posted a new comment: Hmm then what would happen if at t = 0.9 the onChange method is called and the observation time is 1 second and also suppose that handler code takes 0.2 seconds to run

Re: [Sikuli-driver] [Question #676753]: [1.1.4] region.find(image): template size error (size region == size image)

2018-12-12 Thread ONG YI CHONG
Question #676753 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676753 ONG YI CHONG posted a new comment: Hmm its sometimes shows error when i adjust the wait timing too short -- You received this question notification because your team Sikuli Drivers is an answer contact

Re: [Sikuli-driver] [Question #676756]: handler function

2018-12-12 Thread ONG YI CHONG
Question #676756 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676756 ONG YI CHONG posted a new comment: so if the handler takes 0.2s to run at t = 0.5, then once the handler function exits at t = 0.7, the remaining observation time is 0.3s ? During the time spent

Re: [Sikuli-driver] [Question #676756]: handler function

2018-12-12 Thread ONG YI CHONG
Question #676756 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676756 ONG YI CHONG posted a new comment: so if the handler takes 0.2s to run at t = 0.5, then once the handler function exits at t = 0.7, the remaining observation time is 0.3s ? During the time spent

[Sikuli-driver] [Question #676756]: handler function

2018-12-11 Thread ONG YI CHONG
New question #676756 on Sikuli: https://answers.launchpad.net/sikuli/+question/676756 The docs say that the observation is paused until the handler function is returned. Does that mean that the observation time is paused if the handler function is called ? say if you observe for 1 second, and

[Sikuli-driver] [Question #676753]: find(image_path) always gives template size error

2018-12-11 Thread ONG YI CHONG
New question #676753 on Sikuli: https://answers.launchpad.net/sikuli/+question/676753 I am trying to compare screenshots of the phone before and after a click. Ideally, after a click, I would wait for a moment to see if there is any change in UI, and if it detects a change then i would take a

Re: [Sikuli-driver] [Question #676720]: How exactly does onChange() work

2018-12-10 Thread ONG YI CHONG
Question #676720 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676720 ONG YI CHONG posted a new comment: Hey RaiMan, i was just thinking if i want to detect changes in UI elements completely (with transition effects), would it be better if i coded a function such that at t

Re: [Sikuli-driver] [Question #676720]: How exactly does onChange() work

2018-12-10 Thread ONG YI CHONG
Question #676720 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676720 ONG YI CHONG posted a new comment: Can i just check that the observe scan rate attribute influences the number of times the screenshots are being compared ? For example if you set observe time to 1 second

Re: [Sikuli-driver] [Question #676720]: How exactly does onChange() work

2018-12-10 Thread ONG YI CHONG
Question #676720 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676720 ONG YI CHONG posted a new comment: What do you mean by exclusive region object ? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli

Re: [Sikuli-driver] [Question #676720]: How exactly does onChange() work

2018-12-10 Thread ONG YI CHONG
Question #676720 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676720 ONG YI CHONG posted a new comment: May i check if the handler code is asynchronous ? For example part of sikuli code can be running while the handler function is being called ? -- You received

Re: [Sikuli-driver] [Question #676720]: How exactly does onChange() work

2018-12-09 Thread ONG YI CHONG
Question #676720 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676720 Description changed to: Just to confirm for Region.onChange(), is the handler function called as soon as the region detects the min changed pixel size or the observation ends ? What if there are transition

[Sikuli-driver] [Question #676720]: How exactly does onChange() work

2018-12-09 Thread ONG YI CHONG
New question #676720 on Sikuli: https://answers.launchpad.net/sikuli/+question/676720 Just to confirm for Region.onChange(), is the handler function called as soon as the region detects the min changed pixel size ? What if there are transition effects during the onChange method ? eg. a popup

Re: [Sikuli-driver] [Question #676658]: how does observeEvent work exactly ?

2018-12-07 Thread ONG YI CHONG
Question #676658 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676658 Status: Needs information => Solved ONG YI CHONG confirmed that the question is solved: Yes, phone region is always the same region object. Hey your suggestion worked and it solved my problem ! Th

Re: [Sikuli-driver] [Question #676658]: how does observeEvent work exactly ?

2018-12-07 Thread ONG YI CHONG
Question #676658 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676658 ONG YI CHONG posted a new comment: Btw i am running the function Observe_and_click inside a loop and there are certain transition effects when the onChange() is called, for example a menu bar popping up

[Sikuli-driver] [Question #676658]: how does observeEvent work exactly ?

2018-12-07 Thread ONG YI CHONG
New question #676658 on Sikuli: https://answers.launchpad.net/sikuli/+question/676658 So ive been reading the sikuliX api on observing events and Im not able to understand certain events that happen when i try coding it out myself. I wrote this function that clicks a region, and after the click

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 ONG YI CHONG posted a new comment: Thanks for helping ! -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 ONG YI CHONG posted a new comment: Thanks for helping ! -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 ONG YI CHONG posted a new comment: you are right about taking the screen shot using retina display. -- You received this question notification because your team Sikuli Drivers is an answer contact

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 ONG YI CHONG posted a new comment: Im using sikuli IDE in python -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 ONG YI CHONG posted a new comment: Im using sikuli IDE in python -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 Status: Answered => Open ONG YI CHONG is still having a problem: Hmm, i changed the resolution of the screenshot to make it smaller but it still throws me the same error. -- You received this quest

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 ONG YI CHONG posted a new comment: I made it pretty small and i think it should be samller than the size of the same image on screen. -- You received this question notification because your team Sikuli

Re: [Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-06 Thread ONG YI CHONG
Question #676631 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676631 ONG YI CHONG posted a new comment: Hmmm, is there a way around it ? So my Screenshot has to be the same size as the image that was from the screen shot ? -- You received this question notification because

[Sikuli-driver] [Question #676631]: cannot find image using find(image_path)

2018-12-05 Thread ONG YI CHONG
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