Re: [Sikuli-driver] [Question #280908]: exists returns true even if the image doesnt exist
Question #280908 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280908 Status: Needs information => Solved albertsag confirmed that the question is solved: I used highlight and found out what it was. Neways, 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 #280949]: Recognizing bad returns from Region.text()
Question #280949 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280949 Status: Open => Answered RaiMan proposed the following answer: the easiest: str = myRegion.text() try: myNum = float(str) except: myNum = 0 # or some other not possible value or if myNum == 0: # do some error handling myNum = myNum + 5.0 print myNum -- 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 #280249]: 2L - Log and loop
Question #280249 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280249 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #280961]: How to create a master script for different scenarios
New question #280961 on Sikuli: https://answers.launchpad.net/sikuli/+question/280961 Hi, I would like to run scripts through some master scripts which are created according to the test cases. How do I create a master script? For example: Let's say I have : create-user.sikuli, login-with-user.sikuli, delete-user.sikuli files. I need a master script to call sikuli scripts according to the cases. In one case I can create a master script calling only login and delete user. On another case, I can create the user first. Is there a way to plan cases using a master script? I hope I could explain what I need. Kind Regards Ceyhun -- 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 #280961]: How to create a master script for different scenarios
Question #280961 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280961 Status: Open => Answered RaiMan proposed the following answer: look here: http://sikulix-2014.readthedocs.org/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other needs version 1.1.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 #280903]: [1.1.0] java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
Question #280903 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280903 Status: Open => Answered RaiMan proposed the following answer: LOL, you must have eagle eyes, to see the problem: f.write(“Success") carefully look at the opening apostrophe: that is illegal! so this should work: f.write("Success") ... but I just realized, that in the IDE “Success" is not colored as a string - I have to admit: I did not see that either. -- 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 #280883]: How can I disable error logs in sikuli?
Question #280883 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280883 Status: Answered => Open Ignasi Bernadas is still having a problem: I know this is an error for this screen but my sikuli program still works and I don't want an error code in the logs that doesn't affect to the execution of the code. Here is the code (aprox) that produces this error. bottom = Region(0,940,1920,140) def adaptToScreenResolution(): width = float(getW()) height = float(getH()) if width != 1920 or height != 1080: global bottom bottom = resizeRegion(bottom, width, height) def resizeRegion(region, screenW, screenH): resizeFactorX = screenW/1920 resizeFactorY = screenH/1080 X = int(round(region.getX()*resizeFactorX)) Y = int(round(region.getY()*resizeFactorY)) W = int(round(region.getW()*resizeFactorX)) H = int(round(region.getH()*resizeFactorY)) return Region(X, Y, W, H) adaptToScreenResolution() -- 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 #280883]: How can I disable error logs in sikuli?
Question #280883 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280883 Status: Open => Answered RaiMan proposed the following answer: bottom = Region(0,940,1920,140) this produces the error and should be avoided, if you do not want the error on non-appropriate screen. So let us fix it and additionally get better Python: def adaptToScreenResolution(rx, ry, rw, rh): resizeFactorX = SCREEN.w/1920 resizeFactorY = SCREEN.h/1080 x = int(rx*resizeFactorX) y = int(ry*resizeFactorY) w = int(rw*resizeFactorX) h = int(rh*resizeFactorY) return Region(x, y, w, h) bottom = adaptToScreenResolution(0, 940, 1920, 140) -- 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 #280883]: How can I disable error logs in sikuli?
Question #280883 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280883 Status: Open => Answered RaiMan proposed the following answer: Region(0,940,1920,140) on a screen with 1600x900 apparently lies outside the screen (below bottom!) So this is an error, that should be corrected. check your region resize coding. -- 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 #280908]: exists returns true even if the image doesnt exist
Question #280908 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280908 Status: Open => Needs information RaiMan requested more information: did you already use highlight() to see, what SikuliX thinks to be a match? Are you sure that 0.9 is enough? -- 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 1533494] Re: [request] want system appropriate installer for setup
Sorry, but I will not do this for version 1.1.x ** Summary changed: - suggest + [request] want system appropriate installer for setup ** 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 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1533494 Title: [request] want system appropriate installer for setup Status in Sikuli: In Progress Bug description: Hello, Sikuli 1.1 can release a installer Windows? personal feel Sikuli two development and use more convenient To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1533494/+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 #280883]: How can I disable error logs in sikuli?
Question #280883 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280883 Status: Answered => Solved Ignasi Bernadas confirmed that the question is solved: Ohh! Thanks! I think it's a good idea, this will solve 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
Re: [Sikuli-driver] [Question #280883]: How can I disable error logs in sikuli?
Question #280883 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280883 Ignasi Bernadas 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 #280972]: Spacing issue when using .text() feature
New question #280972 on Sikuli: https://answers.launchpad.net/sikuli/+question/280972 Hello, I am using the .text() feature to extract text from an image. In the image, the wording is as follows: "I have a red apple and 2 oranges" When I extract the wording and paste it in notepad, the wording appears slightly off as shown below: "Ih ave ar ed apple and 2o ranges" How can I fix this so that the wording appears without the spacing issues shown? Below is my code: words = find(img.png).text() #code for opening notepad and clicking in it paste(words) -- 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 #280903]: [1.1.0] java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
Question #280903 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/280903 Status: Answered => Solved Karl confirmed that the question is solved: 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] [Bug 1534424] [NEW] IDE Deleting Used Pattern Image Files
Public bug reported: I have noticed my IDE ended up deleting used pattern image files, ie. it is deleting image files that are used by the script. If I do not backup existing project those image files are permanently gone which is very frustrating because I have re create those images. ** 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/1534424 Title: IDE Deleting Used Pattern Image Files Status in Sikuli: New Bug description: I have noticed my IDE ended up deleting used pattern image files, ie. it is deleting image files that are used by the script. If I do not backup existing project those image files are permanently gone which is very frustrating because I have re create those images. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1534424/+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] [Bug 1078812] Re: [request] IDE: want break points to support some debugging
Run to break point is probably easiest to code. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1078812 Title: [request] IDE: want break points to support some debugging Status in Sikuli: In Progress Bug description: This isn't really a bug, it's more of a request. I would love to see breakpoints in the Sikuli IDE (please). When I run into errors in loops and things it can get really tough to debug without breakpoints. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1078812/+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] [Bug 1460616] Re: Error saving files in IDE
I am still getting this SikuliX 1.1.0 (SikulixDownloads_201510061722). This is still alloying. I just have to close the IDE and open up again when I get this annoying error. ** Changed in: sikuli Status: New => Confirmed -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: Confirmed Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == "__main__": testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+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] [Bug 1460616] Re: Error saving files in IDE
This happened when I ran without saving a snipped of test code in New ->Untitled tab. Then copied those code to existing saved tab. When I tried to save the existing saved tabbed with snipped of Untitled tab this happened for me. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: Confirmed Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == "__main__": testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+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