[Sikuli-driver] [Bug 1687013] Re: Cannot open xlrd module in Sikuli
use latest SikuliX version 1.1.1, which has xlrd bundled. so simply using import xlrd should work. be sure to setup with Jython 2.7. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1687013 Title: Cannot open xlrd module in Sikuli Status in Sikuli: New Bug description: Hi, I am using Sikuli tool in Window 7. I am start to use sikuli before two week, I have some work copy cell string or number from Excel 2013 to paste Other application. seen last 2 days i am trying to Import "xldr" in Sikuli. But I cant I read all previous comments and problem on same issue . i am trying all ways copy xldr(try version 1.0 .1 and 0.9.3) folder paste in install directory /sikuli x/ libs , also give path using in your script add: dir_xlrd = "absolute path to the xlrd directory" if not dir_xlrd in sys.path: sys.path.append(dir_xlrd) import xlrd I am install JRE7U84 but still not solve i wright code only import xldr it show same error >>> import xlrd Traceback (most recent call last): File "", line 1, in File "C:\SikuliX\Lib\xlrd\__init__.py", line 397 if peek == b"PK\x03\x04": # a ZIP file ^ SyntaxError: no viable alternative at input '"PK\x03\x04"' please help It too important for me I am stuck on that be appreciated... To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1687013/+subscriptions ___ 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 #630264]: Sikuli won't find previously captured image
Question #630264 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/630264 Status: Open => Answered RaiMan proposed the following answer: folder = "C:\SikuliX\RESUMEN" must be either folder = "C:\\SikuliX\\RESUMEN" # escaped backslash or folder = r"C:\SikuliX\RESUMEN" # raw string BTW: with version 1.1.1 in the IDE, you can name captured pictures at capture time: Instead of something like this: folder = "C:\SikuliX\RESUMEN" img = capture(Region(183,75,35,36)) shutil.move(img, os.path.join(folder, "FORMA.png")) you can simply do that: in a line having forma = leave the cursor after the = and click the capture button. after the capture, the image will be named forma.png and could be used either as reg2.click("forma.png") or even reg2.click("forma") or using the variable reg2.click(forma) this feature from the beginning encourages a naming convention -- 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 #630264]: Sikuli won't find previously captured image
New question #630264 on Sikuli: https://answers.launchpad.net/sikuli/+question/630264 Hi, totally new to Sikuli and programming, great program! I am having trouble making sikuli recognize an image in one region of the screen and then find it in another region of the screen. Everything works great with the regions but it just doesn't like captured images. if exists("1493406248051.png"): waitVanish("1493406248051.png",180) if exists("1493405892790.png"): waitVanish("1493405892790.png",180) wait(Pattern("1493406514054.png").similar(0.80),200) import shutil import os folder = "C:\SikuliX\RESUMEN" img = capture(Region(183,75,35,36)) shutil.move(img, os.path.join(folder, "FORMA.png")) wait(2) reg2 = Region(Region(257,37,331,118)) reg2.click("C:\SikuliX\RESUMEN\FORMA.png") exit() I am absolutely sure the regions are right, and I checked the image captured by opening it on my hard drive and it's great. But it won't find FORMA.png So to rule out a region problem I widened the search: click("C:\SikuliX\RESUMEN\FORMA.png") Which I suppose searches for it on the whole screen, but still doesn't even find the image on the same region it was captured. Help please, 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 #620966]: Script doesn't behave well when imported
Question #620966 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/620966 Status: Answered => Solved Miguel E Torrealba confirmed that the question is solved: Thanks masuo, 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 #626564]: sikuli slows down to a crawl after running for some time
Question #626564 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/626564 geo 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 #626564]: sikuli slows down to a crawl after running for some time
Question #626564 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/626564 Status: Answered => Solved geo confirmed that the question is solved: Yes, it was a typo. and yes, the problem is in the checkLastMouseLocation() code. What I did was to comment out the function call and put a return statement in the function definition in case some other part of the code calls it. I then let the program run for about an hour and a half and the problem never showed up. It would usually show up after about 7 to 10 minutes. What I find odd is that this code is at least 2 years old and this problem never showed up before. So, why is it a problem now?!? Anyways, I'll change the code taking your advice into account. 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 #629665]: Sikuli does no detect app icons
Question #629665 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/629665 Test App confirmed that the question is solved: Thanks masuo, 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 #629665]: Sikuli does no detect app icons
Question #629665 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/629665 Status: Answered => Solved Test App confirmed that the question is solved: Hi Masuo , Your idea worked out great . I accessed my application through a remote desktop and then executed all the Sikuli actions on the remote screen and it worked like magic Thank you so much -- 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 #630067]: Cannot scroll iOS simulator
Question #630067 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/630067 Status: Open => Answered RaiMan proposed the following answer: explode it to the basic mouse features mouse.Down() mouse.Up() mouse.Move() then you have more options to insert appropriate waits and then create your own swipe 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 #626564]: sikuli slows down to a crawl after running for some time
Question #626564 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/626564 Status: Needs information => Answered RaiMan proposed the following answer: not sure if this is really your code: def checkLastMouseLocation(currentMouseLocation): file.write("Mouse last location\n") #DEBUG global lastMouseLocation global sameLocationCounter #print("curr --> %s : last --> %s" % (currentMouseLocation, lastMouseLocation)) if currentMouseLocation == lastMouseLocation: sameLocationCounter += 1 else: lastMouseLocation = currentMouseLocation sameLocationCounter = 0 checkLastMouseLocation() ### this seems to be a copy error, because it cannot be in the code (crashes) so your checkLastMouseLocation() is essentially this: def checkLastMouseLocation(currentMouseLocation): global lastMouseLocation global sameLocationCounter if currentMouseLocation == lastMouseLocation: sameLocationCounter += 1 else: lastMouseLocation = currentMouseLocation sameLocationCounter = 0 a problem here is, that currentMouseLocation and lastMouseLocation are objects and currentMouseLocation == lastMouseLocation checks wether both reference the same object and does not check any object content for equal, like you might expect. Equality would be: loc1.x == loc2.x and loc1.y == loc2.y A general problem of your code is the extensive use of globals in functions, which makes it very hard to track down problems becaus of the possible side effects. Best practice is, that functions take a defined set of parameters and return a defined return value, without any side effects. Hence such a function will always return the same with the same parameters. This is not guaranteed with your functions. So until something else shows up, I say: the problem is your checkLastMouseLocation() -- 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 #630067]: Cannot scroll iOS simulator
New question #630067 on Sikuli: https://answers.launchpad.net/sikuli/+question/630067 I am trying to follow http://sikulix-2014.readthedocs.io/en/latest/region.html#Region.dragDrop to write a script that will scroll to the bottom of a list in the iOS simulator but I can't get it to scroll. I tried tweaking delay settings mentioned in the docs, but it didn't help. I can get dragging to work fine outside the simulator. Any ideas? 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] [Bug 1687013] [NEW] Cannot open xlrd module in Sikuli
Public bug reported: Hi, I am using Sikuli tool in Window 7. I am start to use sikuli before two week, I have some work copy cell string or number from Excel 2013 to paste Other application. seen last 2 days i am trying to Import "xldr" in Sikuli. But I cant I read all previous comments and problem on same issue . i am trying all ways copy xldr(try version 1.0 .1 and 0.9.3) folder paste in install directory /sikuli x/ libs , also give path using in your script add: dir_xlrd = "absolute path to the xlrd directory" if not dir_xlrd in sys.path: sys.path.append(dir_xlrd) import xlrd I am install JRE7U84 but still not solve i wright code only import xldr it show same error >>> import xlrd Traceback (most recent call last): File "", line 1, in File "C:\SikuliX\Lib\xlrd\__init__.py", line 397 if peek == b"PK\x03\x04": # a ZIP file ^ SyntaxError: no viable alternative at input '"PK\x03\x04"' please help It too important for me I am stuck on that be appreciated... ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1687013 Title: Cannot open xlrd module in Sikuli Status in Sikuli: New Bug description: Hi, I am using Sikuli tool in Window 7. I am start to use sikuli before two week, I have some work copy cell string or number from Excel 2013 to paste Other application. seen last 2 days i am trying to Import "xldr" in Sikuli. But I cant I read all previous comments and problem on same issue . i am trying all ways copy xldr(try version 1.0 .1 and 0.9.3) folder paste in install directory /sikuli x/ libs , also give path using in your script add: dir_xlrd = "absolute path to the xlrd directory" if not dir_xlrd in sys.path: sys.path.append(dir_xlrd) import xlrd I am install JRE7U84 but still not solve i wright code only import xldr it show same error >>> import xlrd Traceback (most recent call last): File "", line 1, in File "C:\SikuliX\Lib\xlrd\__init__.py", line 397 if peek == b"PK\x03\x04": # a ZIP file ^ SyntaxError: no viable alternative at input '"PK\x03\x04"' please help It too important for me I am stuck on that be appreciated... To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1687013/+subscriptions ___ 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 #177503]: Passing data through excel sheet to sikuli(in MAC OS)
Question #177503 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/177503 Linked to bug: #1687013 https://bugs.launchpad.net/bugs/1687013 "Cannot open xlrd module 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 #617040]: Set Execution Ordinal for Test Set via Command Line
Question #617040 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/617040 dinev posted a new comment: If you add code sample that demonstrates how you are running test maybe we can help. I am using unittest module and organizing tests as methods of a class. The keep test ordered methods looks like def test_001_ def test_002_ Then when tests are loaded for execution the are always sorted by name -- 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 #626564]: sikuli slows down to a crawl after running for some time
Question #626564 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/626564 geo posted a new comment: That function checks if the mouse has not moved. If it hasn't after so many times the program will refresh the browser. This is because sometimes the game doesn't show any eggs or other similar errors. here is the code. def checkLastMouseLocation(currentMouseLocation): file.write("Mouse last location\n") #DEBUG global lastMouseLocation global sameLocationCounter #print("curr --> %s : last --> %s" % (currentMouseLocation, lastMouseLocation)) if currentMouseLocation == lastMouseLocation: sameLocationCounter += 1 else: lastMouseLocation = currentMouseLocation sameLocationCounter = 0 checkLastMouseLocation() and here is the refrseh code. Nothing fancy #too many fails. Refresh the browser def checkRefreh(): file.write("checkRefresh\n") #DEBUG global notFoundCounter global sameLocationCounter global inActiveMode if ((notFoundCounter >= 30) or (sameLocationCounter >=20)): #popup("REFRESH") #DEBUG if region5.exists("1458036200954.png"): click(region5.getLastMatch()) wait(4) hover(Location(0,0)) wait(4) print("PAGED REFRESHED") #reset flags and counter notFoundCounter = 0 sameLocationCounter = 0 inActiveMode = False -- 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] [Bug 1686907] [NEW] [request] script run server: feature to suspend/resume scriptrun
Public bug reported: ** implementation idea a watchdog, that is triggered somehow, blocks the device usage (class LocalDevice::lock/unlock) So the script will be suspended at the next Device action (mouse/keyboard/capture) -- 1.1.1(2017-03-29_10:41)/Windows6.1/Java7(32)1.7.0_79-b15 Sikuli can be executed as server. A path of a sikuli script is set by SCRIPTS command and the script is executed by RUN command. So, can I suspend a running sikuli script? If I cannot, do you have the plan that such a command will be developed in the future? ** Affects: sikuli Importance: Medium Assignee: RaiMan (raimund-hocke) Status: In Progress ** Changed in: sikuli Status: New => In Progress ** Changed in: sikuli Importance: Undecided => Medium ** Changed in: sikuli Assignee: (unassigned) => RaiMan (raimund-hocke) ** Changed in: sikuli Milestone: None => 2.0.0 ** Description changed: + ** implementation idea + + a watchdog, that is triggered somehow, blocks the device usage (class + LocalDevice::lock/unlock) + + -- + 1.1.1(2017-03-29_10:41)/Windows6.1/Java7(32)1.7.0_79-b15 Sikuli can be executed as server. A path of a sikuli script is set by SCRIPTS command and the script is executed by RUN command. So, can I suspend a running sikuli script? If I cannot, do you have the plan that such a command will be developed in the future? ** Description changed: ** implementation idea a watchdog, that is triggered somehow, blocks the device usage (class LocalDevice::lock/unlock) + + So the script will be suspended at the next Device action + (mouse/keyboard/capture) -- 1.1.1(2017-03-29_10:41)/Windows6.1/Java7(32)1.7.0_79-b15 Sikuli can be executed as server. A path of a sikuli script is set by SCRIPTS command and the script is executed by RUN command. So, can I suspend a running sikuli script? If I cannot, do you have the plan that such a command will be developed in the future? -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1686907 Title: [request] script run server: feature to suspend/resume scriptrun Status in Sikuli: In Progress Bug description: ** implementation idea a watchdog, that is triggered somehow, blocks the device usage (class LocalDevice::lock/unlock) So the script will be suspended at the next Device action (mouse/keyboard/capture) -- 1.1.1(2017-03-29_10:41)/Windows6.1/Java7(32)1.7.0_79-b15 Sikuli can be executed as server. A path of a sikuli script is set by SCRIPTS command and the script is executed by RUN command. So, can I suspend a running sikuli script? If I cannot, do you have the plan that such a command will be developed in the future? To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1686907/+subscriptions ___ 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 #629891]: Status of bug #1686907 changed to 'In Progress' in Sikuli
Bug #1686907 status changed in Sikuli: New => In Progress https://bugs.launchpad.net/sikuli/+bug/1686907 "[request] script run server: feature to suspend/resume scriptrun" This bug is linked to #629891. sikuli server suspends script https://answers.launchpad.net/sikuli/+question/629891 -- 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 #629891]: sikuli server suspends script
Question #629891 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/629891 Linked to bug: #1686907 https://bugs.launchpad.net/bugs/1686907 "[request] script run server: feature to suspend/resume scriptrun" -- 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 #629891]: sikuli server suspends script
Question #629891 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/629891 Status: Open => Answered RaiMan proposed the following answer: Good idea, but not available currently as a feature (... and will surely not being implemented in version 1.1.x) I take it as a request for version 2. -- 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 #629891]: sikuli server suspends script
New question #629891 on Sikuli: https://answers.launchpad.net/sikuli/+question/629891 1.1.1(2017-03-29_10:41)/Windows6.1/Java7(32)1.7.0_79-b15 Sikuli can be executed as server. A path of a sikuli script is set by SCRIPTS command and the script is executed by RUN command. So, can I suspend a running sikuli script? If I cannot, do you have the plan that such a command will be developed in the future? -- 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 #626564]: sikuli slows down to a crawl after running for some time
Question #626564 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/626564 Status: Open => Needs information RaiMan requested more information: endWhileTime = time.time() #DEBUG checkLastMouseLocation(Env.getMouseLocation()) endWhileTimeCheck = time.time() #DEBUG ... so the "mystery" happens in checkLastMouseLocation() What are you doing there? To get nearer to the problem, take care that you are using version 1.1.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