Re: [Sikuli-driver] [Question #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Status: Answered => Solved xyz_User confirmed that the question is solved: Thanks Manfred Hampl, 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Status: Solved => Open xyz_User is still having a problem: def find_img_custom_location(): image1 = r"C:\temp\test_image.png" if Pattern(image1).similar(0.85): click(image1) This works however there's no way it's 85% accurate D: i scribbled the image up pretty bad and it still finds it =/ -- 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 xyz_User 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Status: Answered => Solved xyz_User confirmed that the question is solved: Thank you, you are always kind to the nubs! -- 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 xyz_User gave more information on the question: Tried to add .similar(0.85) if exists(image1).similar(0.85): click() # clicks last match failed.. -- 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Status: Answered => Open xyz_User is still having a problem: One more thing if i can RaiMan: Is there any way to give that image a match higher then the standard 0.70% | As it's on a local directory I'm not sure how abuts doing it.. 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Status: Solved => Open xyz_User is still having a problem: Strange if i set any other directory i get: [error] Image: Image not valid, but TextSearch is switched off! -- 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 #692555]: Python module
Question #692555 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692555 Description changed to: Found solution :) -- 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 #692555]: Python module
Question #692555 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692555 Status: Open => Solved xyz_User confirmed that the question is solved: found the problem -- 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 #692555]: Python module
New question #692555 on Sikuli: https://answers.launchpad.net/sikuli/+question/692555 Is there any way to import this PIL module that's missing? Actually i can't even find this module anywhere to download :( What im trying achieve is to get the RGB value at x,y coordinates and if the value matches do something, or is there a better way this is what took from a stackoverflow user: https://i.ibb.co/w6vn2GY/module.png -- 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Status: Answered => Solved xyz_User 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Description changed to: Is it possible for me to set a custom image path for just one function in the script? Meaning when it's calling that function it searches for images in that function at a different location then the default sikuli folder? eg: def find_img_custom_location(): image1 = "C:\temp\test_image.png" if exists(image1): click(imag1) Please advise how if possible, 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 #692503]: Custom image path for 1 function
Question #692503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/692503 Description changed to: Is it possible for me to set a custom image path for just one function in the script? Meaning when it's calling that function it searches for images in that function at a different location then the default sikuli folder? eg: def find_img_custom_location(): image1 = "C:\temp\test_image.png" if exists(image1): click(image1) Please advise how if possible, 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
[Sikuli-driver] [Question #692503]: Custom image path for 1 function
New question #692503 on Sikuli: https://answers.launchpad.net/sikuli/+question/692503 Is it possible for me to set a custom image path for just one function in the script? Meaning when it's calling that function it searches for images in that function at a different location then the default sikuli folder? Please advise how if possible, 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
[Sikuli-driver] [Question #691832]: Multi Threading / Multi msg possible?
New question #691832 on Sikuli: https://answers.launchpad.net/sikuli/+question/691832 Hi RaiMan - Thanks again for answering all of the questions with such dedication! I was wondering if it was possible to have a static msg somewhere on the screen which the sikuli is running through rest of the script. for ex: displaying a popup('This is a static popup') or even a toolTip using java That window/msg should stay active and then have sikuli go through the rest. I'm asking because you have observer able to do background scans so thinking if this is somehow possible. 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 #691816]: Find image in region > Then set new region around image
Question #691816 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691816 Status: Answered => Solved xyz_User 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 #691816]: Find image in region > Then set new region around image
Question #691816 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691816 Description changed to: Trying to find an image which appears at different section of the screen, then search within that image region for other things so at first I'm setting a relatively large area to search largeArea = Region(149,108,1621,645) if largeArea.exists(image): Now i'd like to find the location of the image and set a new region around this image (lets say newRegion) so moving forward I'd like to search just within the (newRegion) area and look for other things I'm doing this so it cuts the search region into something much smaller to find it quickly for the next set of searches. I hope that makes sense, thank you -- 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 #691816]: Find image in region > Then set new region around image
New question #691816 on Sikuli: https://answers.launchpad.net/sikuli/+question/691816 Trying to find an image which appears at different section of the screen, then search within that image region for other things so at first I'm setting a relatively large area to search largeArea = Region(149,108,1621,645) if largeArea.exists(image): Now i'd like to find the location of the image and set a new region around this image (lets say newRegion) so moving forward I'd like to search just within the (newRegion) area and look for other things I'm doing this so it cuts the search region into something much smaller to find it quickly for the next set to searches. I hope that makes sense, thank you -- 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 #691694]: Is there a built in function to download file?
Question #691694 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691694 Status: Answered => Solved xyz_User 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 #691694]: Is there a built in function to download file?
New question #691694 on Sikuli: https://answers.launchpad.net/sikuli/+question/691694 looking to download a file from url looking at python examples they all require import requests Is there any way to manually install that for sikuli. 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
[Sikuli-driver] [Question #690608]: Solving Image Capcha
New question #690608 on Sikuli: https://answers.launchpad.net/sikuli/+question/690608 Is there any way to solve these types of captcha without Nural network / machine learning: https://i.ibb.co/1RCK7Gh/2020-05-10-11-18-27-Window.png -- 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 #690397]: Using 1.x not saving logs
Question #690397 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690397 Status: Needs information => Open xyz_User gave more information on the question: When I compile to runnable jar file. I want to save all logs verbose to the ext file as it does while i run it on the IDE, it's only when it's compiled to the runnable JAR file and if the script fails the logs no longer get produced / save. -- 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 #690397]: Using 1.x not saving logs
Question #690397 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690397 Status: Answered => Open xyz_User is still having a problem: Hi RaiMan i went through the doc here: https://sikulix-2014.readthedocs.io/en/latest/scripting.html#debuglog Tested all of the different log settings, they all work and print out the log when i'm running the script from IDE, I can see the log file and read it as well. But the logs are temp, when I close the IDE log file is also deleted As soon as I compile the script, the logs don't get written to a file. Perhaps I'm asking too many questions, I promise to not ask anymore after this.. -- 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 #690397]: Using 1.x not saving logs
Question #690397 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690397 xyz_User posted a new comment: Still looking for assistance with this :) -- 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 #690397]: Using 1.x not saving logs
Question #690397 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690397 xyz_User posted a new comment: Would really appreciate if someone can assist :) -- 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 #690371]: Drag and Drop random region
Question #690371 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690371 Status: Answered => Solved xyz_User confirmed that the question is solved: Thanks very much Manfred! -- 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 #690371]: Drag and Drop random region
Question #690371 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690371 xyz_User confirmed that the question is solved: Thanks Manfred Hampl, 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 #690397]: Using 1.x not saving logs
New question #690397 on Sikuli: https://answers.launchpad.net/sikuli/+question/690397 I've got Settings.InfoLogs=True Debug.setLogFile("C:\\temp\\log.txt") works great in the GUI and logs errors, but when compiled to a JAR the log file seems to be empty (or it's being deleted upon exit?) I know 1.x is probably not supported but would appreciate if someone can advise how to save it if it's running from a compiled jar file Thank you -- 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 #690371]: Drag and Drop random region
Question #690371 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690371 Status: Answered => Open xyz_User is still having a problem: Thank you Manfred, I'd like to specify about 80% of the screen (or a region) and not the entire full screen. If that makes sense -- 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 #690371]: Drag and Drop random region
New question #690371 on Sikuli: https://answers.launchpad.net/sikuli/+question/690371 Would appreciate if someone can show me how drag and drop would work via random screen regions. I have it specify manual coords to do it - And it works, but how can I make so it's completely random and not dependent on manual coords that I provide, this is what I have: def randomDrag1(): dragDrop(Location(214, 771),Location(1464, 151)) def randomDrag2(): dragDrop(Location(1457,148),Location(308,798)) def randomDrag3(): dragDrop(Location(217,236),Location(1543,823)) def randomChoice(): all3Locations = [randomDrag1, randomDrag2, randomDrag3] random.choice(all3Locations)() randomChoice() Thank you! -- 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 #690362]: logging: Display only the IO Error
Question #690362 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690362 xyz_User gave more information on the question: Another question instead of making another thread, is there any way to have sikuli convert images to a standard so that all displays 4K / HD / etc can all detect the 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 #690362]: logging: Display only the IO Error
Question #690362 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690362 Status: Solved => Open xyz_User is still having a problem: Hmm sikuli seems to be automatically deleting the log file, is there any way to save it? -- 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 #690362]: logging: Display only the IO Error
Question #690362 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690362 Status: Open => Solved xyz_User confirmed that the question is solved: Found the answer 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
[Sikuli-driver] [Question #690362]: logging: Display only the IO Error
New question #690362 on Sikuli: https://answers.launchpad.net/sikuli/+question/690362 Is it possible to log just the IO error and not the last call back? -- 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 #690287]: A complex (OCR issue)
New question #690287 on Sikuli: https://answers.launchpad.net/sikuli/+question/690287 Please advise if this is possible. With my current script I'm using the exec command to read external py file (with values or function) then executing that function from within sikuli. My quesion is: How can i go about reading the ORC text on an image (This part is working fine, reads correct text) THEN compare that to the external py file value. So for eg: my ext py file (limit.py) has the following declaration: limit = 1000 Sikuli now reads a number on an image via OCR (say 2000) now I need to execute the following: if read image (2000) is > 1000 (in the limit.py) file do x I hope that made sense. Please advise --- The part regarding reading external file is a must otherwise this would be easy to implement. Thank you! -- 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 #689545]: Script too large to compile
Question #689545 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689545 Status: Answered => Solved xyz_User 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 #689545]: Script too large to compile
Question #689545 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689545 xyz_User gave more information on the question: Looks like had python 3 installed, I've compiled it with python 2 but now I'm getting a different error: [error] JythonSupport: exec: returns: Traceback (most recent call last): File "", line 1, in File "C:\Users\user7643\AppData\Roaming\Sikulix\Lib\compileall.py", line 50, in compile_dir if not compile_file(fullname, ddir, force, rx, quiet): File "C:\Users\user7643\AppData\Roaming\Sikulix\Lib\compileall.py", line 99, in compile_file ok = py_compile.compile(fullname, None, dfile, True) File "C:\Users\Humayun\AppData\Roaming\Sikulix\Lib\compileall.py", line 99, in compile_file ok = py_compile.compile(fullname, None, dfile, True) File "C:\Users\user7643\AppData\Roaming\Sikulix\Lib\py_compile.py", line 96, in compile _py_compile.compile(file, cfile, dfile) File "C:\Users\user7643\AppData\Roaming\Sikulix\Lib\py_compile.py", line 96, in compile _py_compile.compile(file, cfile, dfile) at org.python.compiler.Module.serializePyBytecode(Module.java:867) at org.python.compiler.Module.compile(Module.java:989) at org.python.core.imp.compileSource(imp.java:370) at org.pytho n.core.imp.compileSource(imp.java:296) at org.python.modules._py_compile.compile(_py_compile.java:37) 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.base/java.lang.reflect.Method.invoke(Method.java:567) java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter -- 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 #689545]: Script too large to compile
New question #689545 on Sikuli: https://answers.launchpad.net/sikuli/+question/689545 Trying to compile my old code into a runnable JAR file Receving this error as the scrip is too large I believe: java.lang.RuntimeException: java.lang.RuntimeException: Encountered too large method code in C:\Users\user7643\AppData\Roaming\Sikulix\SetupStuff\scriptCompiled\automationV1.py Please provide a CPython 2.7 bytecode file (.pyc) to proceed What exactly does it mean by please provide a CPythin bytecode? I did compile the script via: python -m py_compile and have the .pyc file (get auto rename to: automationV1.cpython-38) What exactly is the next step to compile it now, where do I put this file? Thank you! -- 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 #689275]: Clicking an offset from getLastMatch
Question #689275 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689275 Description changed to: I've tried various method and tried to go throu the docs but wasn't able to be successful: if bColor.toString() == aColor.toString(): print "FOUND ITEM!!!" click(lastmatch).targetOffset(-50,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 #689275]: Clicking an offset from getLastMatch
Question #689275 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689275 Status: Open => Solved xyz_User confirmed that the question is solved: Apologies, I found the answer -- 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 #689275]: Clicking an offset from getLastMatch
New question #689275 on Sikuli: https://answers.launchpad.net/sikuli/+question/689275 Is there a way to actually click an offset from the getLastMatch? I've tried various method and tried to go throu the docs but wasn't able to be successful: aColor = Color(0xa46465) bColor = myRobot.getPixelColor(p.x, p.y) lastmatch = getLastMatch() if bColor.toString() == aColor.toString(): print "FOUND ITEM!!!" click(lastmatch).targetOffset(-50,0)) #< This is the issue otherwise click(lastmatch) with fine by itself -- 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 #689255]: Function worked, then stopped working..
Question #689255 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689255 Description changed to: SOlved after looking at Raimans comment on another topic :) -- 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 #689255]: Function worked, then stopped working..
Question #689255 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689255 Status: Open => Solved xyz_User confirmed that the question is solved: needed to import doh! working passed my bedtime :) -- 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 #689241]: Observer not stopping / causing script to a halt/slugghish execution
Question #689241 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689241 xyz_User 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 #689241]: Observer not stopping / causing script to a halt/slugghish execution
Question #689241 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689241 Status: Open => Solved xyz_User confirmed that the question is solved: This Solved My Problem -- 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 #689255]: Function worked, then stopped working..
New question #689255 on Sikuli: https://answers.launchpad.net/sikuli/+question/689255 I'd appreciate if someone can point out why I'm getting an error here: NameError: global name 'Color' is not defined def searchThis(): if myRegion.exists(Pattern("1581861617531.png").similar(0.90).targetOffset(-107,-3),0.10): hover(Pattern("1581861617531.png").similar(0.90).targetOffset(-107,-3)) p = getLastMatch().getCenter() aColor = Color(0xb46367) bColor = myRobot.getPixelColor(p.x, p.y) if bColor.toString() == aColor.toString(): print "FOUND IT" else: print "NOT FOUND" -- 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 #689241]: Observer not stopping / causing script to a halt/slugghish execution
Question #689241 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689241 xyz_User posted a new comment: Or perhaps scan around the changed pixel from observer then call a function to see if it matches an image, if it does call something otherwise back to scan. -- 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 #689241]: Observer not stopping / causing script to a halt/slugghish execution
Question #689241 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689241 Status: Solved => Open xyz_User is still having a problem: Thanks very much RaiMan! One more thing to add, is there any way to add a certain area - In the above example: Once it clicked something (since pixel changed), it will keep it in an "avoid list" so that on the next scan it doesn't click into this area 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 #689241]: Observer not stopping / causing script to a halt/slugghish execution
Question #689241 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689241 Status: Answered => Solved xyz_User 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 #689241]: Observer not stopping / causing script to a halt/slugghish execution
New question #689241 on Sikuli: https://answers.launchpad.net/sikuli/+question/689241 Please advise how I can properly write this better. It seems to be working but after a few min. The script seems to sit idle. I don't even think the observer is stopping correctly. I'm monitoring a specified region for changes (lots of movement in that region) and when it's found, clicks that region then continues with the script. Here's what I have: def boxObserve(): def changed(event): event.stopObserver() sleep(0.15) box.stopObserver() for chg in event.changes: box.stopObserver() sleep(0.25) event.changes[-1].click() #click on the last changed agrea doSomethingAfterClicking() #Do this after clicking box = Region(684,552,266,371) box.onChange(500, changed) box.observe(0.5,background=False) sleep(0.25) box.stopObserver() doSomethingIfNothingChanged() #Do this function if Observer didnt detect any changes. -- 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 #689156]: Region question
Question #689156 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689156 Status: Open => Solved xyz_User 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 #689156]: Region question
Question #689156 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689156 xyz_User gave more information on the question: Sorry just to clarify: I'm scanning for multiple different images (4 in this case), need it to count how many of the images it found in total. 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 #689156]: Region question
Question #689156 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689156 Status: Solved => Open xyz_User is still having a problem: I've decided to just do a count instead, it works perfectly however, I have one small problem. If any ONE of these images doesn't exist i get an error, that it wasn't able to find the image. What can I do to make it count the total images, regardless if they were found or not: here's what i have so far def countTargets(image): count = 0 for i in findAll(image): count += 1 return count targetCount = countTargets("image1" or "image2" or "image3" or "image4") if targetCount == 1: popup('found 1') elif targetCount == 2: popup('found 2') elif targetCount == 3: popup('found 3') elif targetCount == 4: popup('found 4') else: pass Thank you -- 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 #689156]: Region question
Question #689156 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689156 Status: Answered => Solved xyz_User confirmed that the question is solved: Thanks Eric, that just might 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
[Sikuli-driver] [Question #689156]: Region question
New question #689156 on Sikuli: https://answers.launchpad.net/sikuli/+question/689156 Is there any way to search the region AROUND an object such as a square or a circle that's sitting in the center. FOr eg if i were to use the observe fucntion and scanning for moving objects (pixel changes) BUT ignore anything moving within the center on the specified region? Ive posted a pic below to hopefully assist with my question. Please advise, any help is greatly appreciated it! https://i.ibb.co/MsLDqXj/region-Question.png -- 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 #689075]: Decoding hash for login script
New question #689075 on Sikuli: https://answers.launchpad.net/sikuli/+question/689075 So basically doing an authentication for the compiled script using JSON file that contains a username and password. Everything is working just fine until I get to this function: It seems to fail right on the thrid line: hsh = hashlib.pbkdf2_hmac('sha512'. import hashlib import binascii def _verify_pw(str_pw, prv_pw): salt = str_pw[:64] str_pw = str_pw[64:] hsh = hashlib.pbkdf2_hmac('sha512', prv_pw.encode('utf-8'), salt.encode('ascii'), 10) hsh = binascii.hexlify(hsh).decode('ascii') return hsh == str_pw any suggestions? -- 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 #688828]: Possible to highlight an image?
Question #688828 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688828 Status: Answered => Solved xyz_User 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 #688828]: Possible to highlight an image?
New question #688828 on Sikuli: https://answers.launchpad.net/sikuli/+question/688828 I'm curious to know if it's possible to search an image, once found, highlight that image for a few seconds and then click or call other functions. I know it's possible to highlight a specific region, via observer or if an image is detected, etc. But my goal is to actually highlight the image itself and not the region. Hope I didn't repeat myself there :) 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 #688202]: Running out of memory??
Question #688202 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688202 Status: Answered => Solved xyz_User confirmed that the question is solved: Thanks - SIkuli v. 1.x , java 8.x os is win10 since i'm using version lower then 2.x i wont take up your time :) decided to just kill the script once it finishes executing and then just restart it using a batch. 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 #688202]: Running out of memory??
Question #688202 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688202 Status: Needs information => Open xyz_User gave more information on the question: yeah everything works perfectly, other applications have no problems it's just sikuli (runnable jar file) that stalls -- 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 #688202]: Running out of memory??
New question #688202 on Sikuli: https://answers.launchpad.net/sikuli/+question/688202 Not sure why but my script simply halts (doesn't do anything) after a few hours of running it. It seems to be complaining about memory issues however it's the only thing I'm running on the laptop that has SSD and 16GB of ram.. here's a snippet of the error: # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 268435456 bytes for Failed to commit area from 0x000701e0 to 0x000711e0 of length 268435456. # Possible reasons: # The system is out of physical RAM or swap space # The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap # Possible solutions: # Reduce memory load on the system # Increase physical memory or swap space # Check if swap backing store is full # Decrease Java heap size (-Xmx/-Xms) # Decrease number of Java threads # Decrease Java thread stack sizes (-Xss) # Set larger code cache with -XX:ReservedCodeCacheSize= # This output file may be truncated or incomplete. -- 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 #687686]: Random click region (no images)
Question #687686 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687686 Status: Answered => Solved xyz_User confirmed that the question is solved: Thanks Manfred Hampl, 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 #687686]: Random click region (no images)
New question #687686 on Sikuli: https://answers.launchpad.net/sikuli/+question/687686 Trying to basically click randomly within the "r" region - there are no images to look for Tried this from another topic but it doesn't seem to click within the specified region: import random r = Region(246,444,153,113) locx = int(r.w * random.random()) locy = int(r.h * random.random()) click(Location(locx, locy)) -- 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 #685465]: [2.0.0] IDE: can't export to executable jar --- feature no longer available
Question #685465 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685465 xyz_User 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 #685815]: Drag drop to random (pre-defined) location
Question #685815 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685815 Status: Answered => Solved xyz_User confirmed that the question is solved: Thanks Manfred Hampl, 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 #685815]: Drag drop to random (pre-defined) location
Question #685815 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685815 xyz_User posted a new comment: Thanks guys - Got me to think and I solved it by storing the location objects in a list then using randint method from random to call the list. 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 #685815]: Drag drop to random (pre-defined) location
Question #685815 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685815 Status: Answered => Open xyz_User is still having a problem: Hi thanks for the response, but that doesn't do anything. As you can see I know to drag an image to a random location based on the 4 coordinates. Youre code just had hover(randomDrop()) with out any indication of images. I've also tried your code with dragDrop("1573618403777.png",(randomDrop)). Same result as my original post -- 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 #685815]: Drag drop to random (pre-defined) location
Question #685815 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685815 xyz_User posted a new comment: @RainMan would really appreciate if you can provide some guidance :) 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 #685815]: Drag drop to random (pre-defined) location
Question #685815 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685815 Summary changed to: Drag drop to random (pre-defined) location -- 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 #685815]: Drag drop to random location
New question #685815 on Sikuli: https://answers.launchpad.net/sikuli/+question/685815 Not getting any errors, but also not doing anything. Trying to move an image to a randomly defined coordinate: import random from random import choice def position1(): position1 = Location(548,292) def position2(): position2 = Location(633,293) def position3(): position3 = Location(738,288) def position4(): position4 = Location(817,284) def randomDrop(): positionOneToFour = [position1, position2, position3, position4] random.choice(positionOneToFour)() def main(): dragDrop("1573618403777.png",(randomDrop)) print('done') main() -- 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 #685498]: [2.0.0] Jython: export as jar: scripts are contained in pre-comiled bytecode - no absolute obfuscation
Question #685498 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685498 Status: Answered => Solved xyz_User 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 #685498]: Sikuli compiled jar obfuscator
Question #685498 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685498 Description changed to: Hi Raiman, would you mind suggesting how I can further secure or protect the source code? I realize this feature is not available in 2.0 but I've invested a ton of time perfecting my script and like it to remain a jar file with another layer of pretection. I already see that extracting the jar file has the script encrypted. Is there any further steps to make it more secure? I've tried many of the java obfuscator on the net, but they all seem to just brake it. 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
[Sikuli-driver] [Question #685498]: Sikuli compiled jar obfuscator
New question #685498 on Sikuli: https://answers.launchpad.net/sikuli/+question/685498 Hi Raiman, would you mind suggesting how I can further secure or protect the source code? I realize this feature is not available in 2.0 but I've invested a ton of time perfecting my script and like it to remain a jar file yet protect or original pu file as much as possible. I appreciate your response. Thank you -- 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 #685465]: Sikuli 2.0 can't export to JAR
New question #685465 on Sikuli: https://answers.launchpad.net/sikuli/+question/685465 I'm not sure if anyone else is experiencing this, but 2.0 version the export "Export as jar" seems to be broken. It packs the script almost instantly as opposed to the usual 10 secs (No popup either). WHen you try to run the jar it says: Invalid or corrupt jar file I can't reproduce the same error on 1.1.3 (Works fine there with the same script used above) Thank you -- 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 #685450]: [2.0.0] How to: IDE: set default image location --- experimental
Question #685450 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685450 Status: Answered => Open xyz_User is still having a problem: Sounds good, and makes sense, how do I go about compiling it into a tunable Jar. I dont see the option anymore. If I try the packed just it throws as error cant find __run.py___ or something along that line (dry not on the PC atm) -- 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 #685450]: [2.0.0] How to: IDE: set default image location --- experimental
Question #685450 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685450 Status: Answered => Open xyz_User is still having a problem: Thank you, the image naming worked as expected. However trying to set the image to the "images" folder worked but then the project is no longer called xyzproject.sikuli Ive tried to rename the project as a sikuli file, after that it just reverts to the original way of saving things on the same directory. Here's what I'm trying to accomplish: MyScript.sikuli - images where "MyScript.sikuli" is the actual script and contains the MyScript.py and the subfolder images = contains all the images of "MyScript.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 #685450]: [2.0.0] How to: IDE: set default image location --- experimental
Question #685450 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685450 xyz_User posted a new comment: Awesome, will report back -- 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 #685450]: How to change default image location
New question #685450 on Sikuli: https://answers.launchpad.net/sikuli/+question/685450 HI Raiman , can you please tell me how i can set sikulis default location of all the images i capture, currently it saves them in he root directory of the sikuli script, i would like to specify a folder just for images. 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 #685286]: Sikuli Doc - Example code returns error
Question #685286 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685286 Status: Solved => Open xyz_User is still having a problem: Hi RaiMan one more thing sorry: Os it possible to avoid observing an area: for example on the image below the screen is the green area which needs to be observed but at the same time ignore the center area: https://i.ibb.co/59fhcWj/observe.png -- 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 #685286]: Sikuli Doc - Example code returns error
Question #685286 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685286 xyz_User 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 #685286]: Sikuli Doc - Example code returns error
Question #685286 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685286 Status: Open => Solved xyz_User confirmed that the question is solved: NVM I see what you did there! THank you so much!!! Your are a genius :D -- 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 #685286]: Sikuli Doc - Example code returns error
Question #685286 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685286 xyz_User gave more information on the question: I made some more changes using your answer provided changed the IMG back to region. Seems to be working but after the first click it stops the entire script (becuase of break) is there anything else that can be used to continue after the click -- 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 #685286]: Sikuli Doc - Example code returns error
Question #685286 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685286 Status: Answered => Open xyz_User is still having a problem: Thanks for your response! Sory maybe I wasn't clear: I'm actually monitoring a "Region" of a screen for any pixel changes and not a given image. Then clicking on the first change noticed -- 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 #685286]: Sikuli Doc - Example code returns error
Question #685286 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685286 Status: Answered => Open xyz_User is still having a problem: I've tried both. Still seems to click all of the changed locations: here's the log for both suggestion above: scanning specified region [log] CLICK on L(648,365)@S(0)[0,0 1366x768] (25 msec) [log] CLICK on L(628,479)@S(0)[0,0 1366x768] (46 msec) [log] CLICK on L(628,479)@S(0)[0,0 1366x768] (51 msec) [log] CLICK on L(628,480)@S(0)[0,0 1366x768] (45 msec) -- 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 #685286]: Sikuli Doc - Example code returns error
Question #685286 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/685286 xyz_User gave more information on the question: Found anther topic and with a bit of modification this seems to work: region = Region(12,152,1014,477) print "scanning specified region" r = region r.onChange(1, changed) r.observe(background=True) Settings.isChanged = False r.observe(3) #observes for 5 seconds if Settings.isChanged: print "there were changes detected" else: print "No changes detected" def changed(event): for ch in event.changes: ch.highlight() # highlight all changes - So in 3 seconds, it finds and highlights the changes, the problem is I would like to simply click on the location of ONE of the random changes If i set it to: def changed(event): for ch in event.changes: ch.click() #Click on the changes it'll click on every single area that changed, I would like sikuli to only click the first change that it saw or just one of the random change. I hope that makes sense 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
[Sikuli-driver] [Question #685286]: Sikuli Doc - Example code returns error
New question #685286 on Sikuli: https://answers.launchpad.net/sikuli/+question/685286 Was just reading this: http://doc.sikuli.org/region.html#observing-visual-events-in-a-region copy pasted the code in sikuli: def changed(event): print "something changed in ", event.region for ch in event.changes: ch.highlight() # highlight all changes sleep(1) for ch in event.changes: ch.highlight() # turn off the highlights with selectRegion("select a region to observe") as r: # any change in r larger than 50 pixels would trigger the changed function onChange(50, changed) observe(background=True) wait(30) # another way to observe for 30 seconds r.stopObserver() and I'm getting the following error: [error] script [ Untitled ] stopped with error at line --unknown-- [error] Error caused by: Traceback (most recent call last): File "C:\Users\testUser\AppData\Local\Temp\Sikulix_367046279\sikuli-2894467953142955615.py", line 1, in def changed(event): AttributeError: 'org.sikuli.script.Region' object has no attribute '__exit__' -- 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 #227960]: How to make sikuli detect motions within a specific region?
Question #227960 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/227960 xyz_User posted a new comment: Hi RaiMan, I found this to be extremely helpful for my current project. Can I add a request to this: Once it detects changes, lets say it found 5 - 10 pixel changes: How can get sikuli to click only ONE of those changed pixels that the observer saw? -- 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 #684262]: Block out mouse/keyboard function while script runs
New question #684262 on Sikuli: https://answers.launchpad.net/sikuli/+question/684262 Curious if it's possible to do it while the script runs. Reason is because I'd like to have a startup script on our system that performs vendor updates everytime the machines are rebooted. Some of the staff are impatient and might stop the updates from happening so I'd like to block the actions for the first 30 sec after booting into 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
Re: [Sikuli-driver] [Question #684105]: Finding Two different images
Question #684105 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684105 Status: Answered => Solved xyz_User confirmed that the question is solved: looks like this did it: images = ["1569201199862.png","1569201205664.png"] count = 0 matches = findAnyList(images) if len(matches) == 2: popup('got 2') else: sleep(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 #684105]: Finding Two different images
Question #684105 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684105 Status: Solved => Open xyz_User is still having a problem: I seem to be getting an error as well: testingThisFunction() #Random Target TypeError: calliopeMassCureWounds() takes exactly 2 arguments (0 given) Here's the code: def testingThisFunction(first, second): imageCount = 0 if squareArea2.exists(first,0.5): imageCount += 1 if squareArea4.exists(second,0.5): imageCount += 1 return imageCount == 2 if testingThisFunction("1568620179920-6.png", "1568621143400.png"): doubleClick(Location(639,686)) click(Location(Location(664, 572))) callMyNextFunction() waitForUi() else: sleep(0.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 #684105]: Finding Two different images
Question #684105 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684105 Status: Answered => Solved xyz_User confirmed that the question is solved: I am full of gratitude once again, I promise to stop asking questions for the next little while :) -- 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 #684105]: Finding Two different images
Question #684105 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684105 Description changed to: looking to find 2 different images withing a given time for eg: 3 sec, only if it finds BOTH of the images it should do something (popup, got 2), Not sure what I'm doing wrong, please advise: def findTwoImages(self,"1569100025263.png,3","1569100032614.png,3"): twoImages = False imageCount = 0 if exists(refSet.getImage("1569100025263.png")): imageCount += 1 if exists(refSet.getImage("1569100032614.png")): imageCount += 1 if (imageCount == 2): twoImages = True popup('got 2') findTwoImages() -- 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 #684105]: Finding Two different images
New question #684105 on Sikuli: https://answers.launchpad.net/sikuli/+question/684105 looking to find 2 different images, only if it finds the given 2 it should do something (popup, got 2), Not sure what I'm doing wrong, please advise: def findTwoImages(self,"1569100025263.png","1569100032614.png"): twoImages = False imageCount = 0 if exists(refSet.getImage("1569100025263.png")): imageCount += 1 if exists(refSet.getImage("1569100032614.png")): imageCount += 1 if (imageCount == 2): twoImages = True popup('got 2') findTwoImages() -- 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 #684034]: Needs to pick someones brain
Question #684034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684034 Status: Answered => Solved xyz_User confirmed that the question is solved: THANK YOU!! This did it!! -- 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 #684034]: Needs to pick someones brain
Question #684034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684034 xyz_User posted a new comment: thanks very much! This will be amazing -- 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 #684034]: Needs to pick someones brain
Question #684034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684034 xyz_User gave more information on the question: The last sentence I should have said comparing who has the least of "GREEN" health bar -- 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 #684034]: Needs to pick someones brain
Question #684034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684034 Status: Answered => Open xyz_User is still having a problem: Just got a chance to try this, I think i'm missing the point and require some more explanation. If you have the time, can you show me the function for this scenerio: Let's say I'm the healer character in the game, and I need to scan who has the lowest amount of health comparing all of those 4 health bars and then click it. -- 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 #684034]: Needs to pick someones brain
Question #684034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/684034 xyz_User posted a new comment: Not on a PC atm going to check as soon as I get home, thanks RaiMan. As always, very prompt in your response! -- 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 #684034]: Needs to pick someones brain
New question #684034 on Sikuli: https://answers.launchpad.net/sikuli/+question/684034 Started a new gaming project and I'm faced with a small problem which I can't think of a clever function. The issue is the health bar of characters, they're always green in color (i know sikuli probably doesn't see colors). When the character looses health the green color depletes from the health bar Now these health bars can change positions as the character moves up or down, this is no problem because I can use region. How can I make sure sikuli clicks the bar with the lowest amount of Health or the colour green? The health bars can also change in shape for eg: The one at the very top can look the the 3rd one... Really stumped :S This is what the health bars look like: https://i.imgur.com/jhOB1IG.png Any suggestion is greatly appreciated! -- 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 #683933]: Sikuli 1.1.3 - hotkey not fuctioning on runnable JAR file
Question #683933 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/683933 Status: Answered => Solved xyz_User confirmed that the question is solved: Thanks for the response, much appreciate it! -- 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