Re: [Sikuli-driver] [Question #678542]: Set region inside region
Question #678542 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678542 Status: Open => Answered Asheru proposed the following answer: Maybe I don't understand exactly the need for this but why isn't one region enough? I mean you define the region needed from the screen and then do your actions in it. You can find in the doc - http://doc.sikuli.org/region.html, that class Region has some methods like nearby(),inside(),above(),below() etc. Maybe those can answer your 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 #678543]: Import Sikuli in a project with an existing Interpreter
Question #678543 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678543 Description changed to: Hi, I have an existing project using a custom interpreter, is there a way to import Sikuli without changing interpreter in my main project? Things I've done: -I am using PyCharm and have successfully run a Sikuli script inside. -I tried making a separate project with sikuli scripts (named sikuli_action) and importing that project as a module in my main, but the interpreter of my main is preventing the Sikuli module imported to run -To further clarify, I am tasked in writing an automation script for testing of an ongoing desktop app development. -also, I am new to Python Programing ImportError while importing test module '\main.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: main:33: in import sikulix_action ..\..\..\SikuliX\sikulix_action.py:1: in import org.sikuli.script.SikulixForJython E ModuleNotFoundError: No module named 'org' -- 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 #678543]: Import Sikuli in a project with an existing Interpreter
Question #678543 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678543 Description changed to: Hi, I have an existing project using a custom interpreter, is there a way to import Sikuli without changing interpreter in my main project? Things I've done: -I am using PyCharm and have successfully run a Sikuli script inside. -I tried making a separate project with sikuli scripts (named sikuli_action) and importing that project as a module in my main, but the interpreter of my main is preventing the Sikuli module imported to run -To further clarify, I am tasked in writing an automation script for testing of an ongoing desktop app development. ImportError while importing test module '\main.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: main:33: in import sikulix_action ..\..\..\SikuliX\sikulix_action.py:1: in import org.sikuli.script.SikulixForJython E ModuleNotFoundError: No module named 'org' -- 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 #678543]: Import Sikuli in a project with an existing Interpreter
Question #678543 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678543 Description changed to: Hi, I have an existing project using a custom interpreter, is there a way to import Sikuli without changing interpreter in my main project? Things I've done: -I am using PyCharm and have successfully run a Sikuli script inside. -I tried making a separate project with sikuli scripts (named sikuli_action) and importing that project as a module in my main, but the interpreter of my main is preventing the Sikuli module imported to run ImportError while importing test module '\main.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: main:33: in import sikulix_action ..\..\..\SikuliX\sikulix_action.py:1: in import org.sikuli.script.SikulixForJython E ModuleNotFoundError: No module named 'org' -- 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 #678543]: Import Sikuli in a project with an existing Interpreter
New question #678543 on Sikuli: https://answers.launchpad.net/sikuli/+question/678543 Hi, I have an existing project using a custom interpreter, is there a way to import Sikuli without changing interpreter in my main project? Things I've done: -I am using PyCharm and have successfully run a Sikuli script inside. -I tried making a separate project with sikuli scripts and importing that project as a module in my main, but the interpreter of my main is preventing the Sikuli module imported to run ImportError while importing test module '\main.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: main:33: in import sikulix_action ..\..\..\SikuliX\sikulix_action.py:1: in import org.sikuli.script.SikulixForJython E ModuleNotFoundError: No module named 'org' -- 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 #678542]: Set region inside region
Question #678542 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678542 Miyamoto gave more information on the question: I run into multimonitor and one of the solution I found is to set the region based on Monitor 0, where the game will be visible but it's not an elegant 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
[Sikuli-driver] [Question #678542]: Set region inside region
New question #678542 on Sikuli: https://answers.launchpad.net/sikuli/+question/678542 Is it possible to set Region inside a region? Like a subregion. Ex: I have a bot for a game and the images that I want to find is on specific region inside the game region, to optimize the match. -- 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 #678530]: Jython problem - error loading python.dll (error 14001)
New question #678530 on Sikuli: https://answers.launchpad.net/sikuli/+question/678530 Yes, I am aware that this is a Jython problem and not a SikuliX problem, but as Jython is required for SikuliX, maybe someone else in the SikuliX community has encountered the same problem. I use the IntelliJ IDEA environment for (part of) my SikuliX development work. For that, one has to run the Jython installer to create the Jython interpreter that can be used in IDEA. This works as expected on my Windows 10 machines. Now for a specific development task I tried to install my environment on a Windows 7 machine, but ran into this problem when trying to start the Jython interpreter: Error loading Python DLL: C:\jython2.7.1\bin\python27.dll (error code 14001) The problem seems to be addressed (and fixed) here: https://bugs.jython.org/issue2620 Does anyone know whether there is a modified Jython installer available where this issue is fixed? I am just trying to avoid having to compile everything from scratch … 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 #678529]: How to create a Region from a Location
New question #678529 on Sikuli: https://answers.launchpad.net/sikuli/+question/678529 Is there a simple way to create a region from a location - a region that has the given location at its center? Like the inverse of getCenter() where I can get the location of the center of a region? Something like location.grow(num) which should give a quadratic region with the location as its center and side lenghts of num? Of course one can do that with Region(Location.x - num//2, Location.y - num//2, num, num) or the like, I was just wondering whether there might be a "nicer", more direct way? 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 #678517]: unable to use/integrate vision wait in other application
Question #678517 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678517 Status: Open => Needs information RaiMan requested more information: what is vision wait("img.PNG" ,300) ?? -- 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 #678497]: Didn't run Import Xlrd
Question #678497 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678497 Status: Open => Needs information RaiMan requested more information: might be a problem especially on Windows. Can only test tomorrow. I will the come back asap. is it SikuliX 1.1.4? which 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 #678458]: I can't implement the rest of the function.
Question #678458 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678458 Status: Open => Answered RaiMan proposed the following answer: as Roman already pointed out: when your function starts and img1 does not exist in that moment, it will immediately return and do nothing else. So to get to the lines beginning with the doubleClick, img1 AND img11/img12 MUST exist, when the function starts. So the function will only get to your new 2 lines, if img1 AND img11/img12 are there, when the function starts and later img1 vanishes before < if exists(a, 0):> is executed. If img1 is still there in that moment, the function will return without getting to your 2 new lines. you say: the new 2 lines are completely independent, so IMHO it must look like this: def do(a, b, ab, abc, ef, efg): if not exists(a, 0): if exists(ef, 0): doubleClick(efg) return return if not exists(ab, 0)): return the rest of the function is only executed if a and ab exist on entry of the function -- 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 #678481]: App instance changed in 1.1.4 compared to 1.1.2?
Question #678481 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678481 RaiMan proposed the following answer: not in the docs yet ;-) just try it out. -- 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