Re: [Sikuli-driver] [Question #656425]: Checking for a picture faster
Question #656425 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656425 layanor gave more information on the question: Okay I got the numbers. Now I need to know how to put in the code the correct way. https://gyazo.com/9fa5117497acd769ccc54593a7ac2c27 This does not work. -- 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 #656425]: Checking for a picture faster
Question #656425 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656425 Status: Answered => Open layanor is still having a problem: Where do I get the location numbers? -- 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 #656425]: Checking for a picture faster
Question #656425 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656425 Status: Needs information => Answered Manfred Hampl proposed the following answer: A general hint: The smaller the region where you search for the image, the faster the search. E.g. If you know that the green or red bar for the winner is always shown on a specific position, then define a region around this position endregion=Region(x,y,w,h) and do a endregion.exists(...) instead of searching the whole screen with exists(...). -- 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 #656054]: 2 dimensional virtual slider
Question #656054 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656054 Status: Open => Answered Manfred Hampl proposed the following answer: Re: "However once the marker touches or overlaps the crosshair/s it will not match the image of the marker stored initially... " Searching for images in Sikuli has a similarity parameter. The image on screen need not be 100% identical to the stored one. It should be possible to set the similarity degree to a value that the marker is found even if it partly overlaps the crosshair. This of course will need testing on the real system. -- 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 #656054]: 2 dimensional virtual slider
Question #656054 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656054 tyag posted a new comment: I guess the first of the two proposals may work provided we don't look for the marker image except initially to determine its coordinates. Add a step to Store the current calculated position of marker after every press of arrow. So at any time system has the current position of the marker. End loop when current position of marker coincides (within limits) with crosshairs coordinates. -- 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 #656054]: 2 dimensional virtual slider
Question #656054 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656054 Status: Answered => Open tyag is still having a problem: Thanks for the detailed response. However once the marker touches or overlaps the crosshair/s it will not match the image of the marker stored initially... so how will the iterations continue at this point. -- 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 #656425]: Checking for a picture faster
Question #656425 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656425 Status: Open => Needs information masuo requested more information: Nobody know which line of code you want to make faster. You should confirm response time each line of codes, and decide which line of code you want to do faster. -- 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 #656428]: How to get the image file name when a FindFailed exception happen
Question #656428 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656428 Status: Open => Answered masuo proposed the following answer: Try this codes. import os.path Settings.UserLogs = True Debug.setUserLogFile(os.path.join(getBundlePath(),"log.txt")) try: find("1502972319179.png") except FindFailed, e: logtxt = "%s" % e Debug.user(logtxt) -- 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 #656428]: How to get the image file name when a FindFailed exception happen
New question #656428 on Sikuli: https://answers.launchpad.net/sikuli/+question/656428 I want to get the image file name not found by region.find() when a FindFailed exception happens in my Python construct try: ... except: ... . could you tell how to get the file name, I need to know it and print into my log Thanks -- 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 #655775]: Functionality gremlins (cannot select image, cannot switch tabs ect)
Question #655775 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/655775 Status: Needs information => Open billy gave more information on the question: Hello there, OS: Win 10 Pro x64 EN Java version: java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) SikuliX version: Latest (1.1.1) I do not know how to find the respective codes of the malfunctioning functions -- 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 #654902]: hasWindow and window functions do not work correctly
Question #654902 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654902 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 #654090]: How to sort without search option in python
Question #654090 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654090 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 #656425]: Checking for a picture faster
New question #656425 on Sikuli: https://answers.launchpad.net/sikuli/+question/656425 https://gyazo.com/3946c51e2e658c1fb5b38eeda6c4a100 I have two pictures that need to be watched for every second "Player1 Player2". The way I have them set up now almost works but sometimes is too late to recognize the pictures. How do I shave off more 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 #210629]: How to Debug your Sikuli script in an advanced debugging IDE such as pyCharm
Question #210629 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/210629 David Pérez proposed the following answer: I would use PyDev + Eclipse. As far as I know, debugging Jython is not supported by JetBrains products (PyCharM, IDEA, ...) -- 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 #656054]: 2 dimensional virtual slider
Question #656054 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/656054 Status: Open => Answered Manfred Hampl proposed the following answer: Developing such program without having access to the real system is almost impossible. I am trying to outline the skeleton, but cannot provide a final solution. You need: a screenshot of the target marker ("marker,png") the x-y-position of the center of the crosshair the x-y-positions of the (center of the) up / down / right / left arrow buttons, eventually also the position of the button to switch from large to small movement. the coordinates of the region with the crosshair. the (average) amount of changing the x- respectively y-coordinates with one click on the arrow buttons in large and small movement Now two proposals: (eventually: switch to large step movement) Search for the marker in the region of the crosshair (if not found - abort processing) calculate the difference in x coordinates between the center of the crosshair and the center of the marker position identified in the previous step divide by the average distance of a large step if positive: loop this many times to press the right button, (probably needing wait statements between) else if negative: loop this many times to press the left button, (probably needing wait statements between) (eventually: switch to small step and repeat from "search the marker" with small steps) Do more or less the same in the y-direction Or another possibility with permanent observation of the marker movement: Search for the marker in the region of the crosshair (if not found - abort processing) calculate the difference in x coordinates between the center of the crosshair and the center of the marker position identified in the previous step switch to large step loop until absolute value of difference between marker's x-position and center of crosshair is smaller than tolerance if difference >= average large step press left else if difference >= average small step switch to small step press left else if difference <= -(average small step) press right else if difference <= -(average small step) switch to small step press right search for marker again calculate the difference in x coordinates between the center of the crosshair and the center of the new marker position calculate the difference in y coordinates between the center of the crosshair and the center of the latest marker position switch to large step do the loop as above for the alignment action in the other direction Remark: the tolerance for the loop criterion should not be smaller than about two thirds of a small movement. Otherwise the result might be an oscillation between two positions slightly off the center. Also here you might need to add wait statements after the button presses to ensure that the alignment action has already been completed. -- 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