Re: [Sikuli-driver] [Question #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Removed link to bug: #1861962 https://bugs.launchpad.net/bugs/1861962 "click("1580817213280.png") click("1580817247445.png") click("1580817729602.png") click("1580817767852.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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Linked to bug: #1861962 https://bugs.launchpad.net/bugs/1861962 "click("1580817213280.png") click("1580817247445.png") click("1580817729602.png") click("1580817767852.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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Dominic Paré posted a new comment: Jon Winsley (glitchassassin) Nice work on that lackey! I have played around with Jython and there are a lot of problems when it comes to virtualenv and pip etc. which are quite important during development and usage of a test suite/framework. With your solution I can just use some of what I have done and still have an easier and more stable Python environment (at least from what I know about Jython and Python...). -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Jon Winsley proposed the following answer: I've been working on a pure Python library to run Sikuli scripts without the Java dependency. Some of my systems don't have Java due to enterprise restrictions, so I too needed to be able to run them from Python: https://github.com/glitchassassin/lackey It's still in alpha, but it has the basic features covered and the rest are being actively developed. Hope this helps someone. -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Status: Open => Answered RaiMan proposed the following answer: @ comment #6 start here: http://sikulix-2014.readthedocs.org/en/latest/scripting.html#load @ comment #7 here we are talking generally only about 1.1.0+ older versions are no longer supported for such special cases. -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Chathura gave more information on the question: Raiman, what version on has those runtime features implemented in 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Status: Answered => Open Chathura is still having a problem: Can you point to "exe-packing is the packaging into a jar, which is simply possible in various ways with SikuliX" docs? Thanks RaiMan :) -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Status: Open => Answered RaiMan proposed the following answer: - SikuliX scripts are written in Python language - to run them you need a Jython interpreter (with version 1.1.0+ it is Jython 2.7, that is bundled with sikulix.jar (IDE)) - Jython and SikuliX in general need Java to run hence a Python-exe-packer does not help, since the runtime environment is Python and not Java. A comparable packer in the Java world is Launch4J, that principally does what it should. My trials until now did not succeed with what you want to do: parts of the Jython interpreter package cannot be loaded from the jar, that is packed into the exe. It has to be exported at runtime by a Sikuli feature, that I did not implement until now. An alternative to exe-packing is the packaging into a jar, which is simply possible in various ways with SikuliX. Please scan the docs about that: -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Status: Needs information => Open Chathura gave more information on the question: Hi Raiman, I use bbfreeze to convert .py scripts to standalone .exe in windows 7 machine. It works great for pure python script. Since Sikuli .py are jython version of python, I am not sure even to get it working. I wrote following pure python script: import org.sikuli.script.SikulixForJython from sikuli.sikuli import * import sys importPath = r"C:\Users\uername\Desktop\Sikuli\app_test" if not importPath in sys.path: sys.path.append(importPath) def test(): popup("works!") wait(10) pass def launch(): App.open("C:\Program Files\Myprogram\app.exe") test() launch() I am getting following error message at line 1: ImportError: No module named org.sikuli.script.SikulixForJython my Jython works in command line. My Jython version is 2.2.1 on java1.7_55. I am using PyCharm IDE running Python 2.7 _32bit version. -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Status: Open => Needs information RaiMan requested more information: what about the information in comment #1? what did you try until know? -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Status: Answered => Open Chathura is still having a problem: Can you show me a working sikuli pure python example with correct imports for 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
Question #276722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/276722 Status: Open => Answered RaiMan proposed the following answer: see: https://github.com/RaiMan/SikuliX-2014/wiki/Usage-in-Java-programming ... the part about Jython ... and this might be helpful http://sikulix-2014.readthedocs.org/en/latest/scenarios.html#using-python -- 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 #276722]: How to Convert Sikuli Script to Standalone Python Script
New question #276722 on Sikuli: https://answers.launchpad.net/sikuli/+question/276722 I wanted to convert my python I wanted to convert following psduo python code into stand alone Python code with correct imports: print getNumberScreens() print getBounds() click("1449256116692.png") doubleClick("1449256144784.png") doubleClick("1449256178824.png") doubleClick("1449256193974.png") wait(1) click(Pattern("1449257220351.png").exact().targetOffset(0,1)) click(Pattern("1449257220351.png").exact().targetOffset(0,1)) wait(1) click(Pattern("1449256244357.png").exact().targetOffset(0,6)) type('textpatter*') click("1449256977173.png") myregion_primscreen = selectRegion() print myregion_primscreen.text() How would I do 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