[Sikuli-driver] [Bug 1386862] Re: [1.1.0] OS X 10.10: Location: outside any screen in multi-monitor setup
This error occurs also in Windows , Windows 8.1) Everything is ok while the coordinate do not change: Region: exists: waiting 3.0 secs for P(images/Windows/TomSawyerPerspectives/CommonImageMapPreview/ToolBar/WebCommonToolBar.png) S: 0.8 to appear in S(1)[-1360,0 1360x768] Region: find: waiting 3.0 secs for images\Windows\TomSawyerPerspectives\CommonCanvasPreview\ToolBar\CircularLayoutCanvas.png to appear in S(1)[-1360,0 1360x768] Region: exists: waiting 3.0 secs for P(images/Windows/SocialNetworkAnalysis/HtmlCanvas/SecondaryScreen/CircularExpected.png) S: 0.8 to appear in S(1)[-1360,0 1360x768] Region: find: waiting 3.0 secs for images\Windows\TomSawyerPerspectives\CommonCanvasPreview\ToolBar\HierarchicalLayoutCanvas.png to appear in S(1)[0,0 1360x768]--- coordinate changed*** All my tests are only one screen. The question is why is different the coordinate after some tests? from -1360,0 to 0,0 Do I have to get the first coordinate and then set it for each test? (I'm using JUnit) Regards! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1386862 Title: [1.1.0] OS X 10.10: Location: outside any screen in multi-monitor setup Status in Sikuli: In Progress Bug description: Sikulix API Version: 1.1.0 Yosemite 64 bits I'm developing a solution on Java with Sikuli, with two monitors, on Mac OS after I updated to Yosemite I began to get the next errors message: error] Location: outside any screen (-2560, 0) - subsequent actions might not work as expected [error] Location: outside any screen (-2560, 0) - subsequent actions might not work as expected [error] Location: outside any screen (-1484, 153) - subsequent actions might not work as expected I've make changes to Display settings and update to Java 1.8 JDK and JRE I use this method to get the Screen ID: public static int getCurrentScreenId(Pattern pattern) throws Exception { int result = 0; for (int i = 0; i <= 1; i++) { System.out.println("Try number " + i); if (new Screen(i).exists(pattern) != null) { System.out.println("Searching on Screen: " + i); result = i; System.out.println("Screen founded =" + result); } else { continue; } } return result; } NOTE: on Yosemite the screen 0 (default) is the monitor connected to the machine, if you unplugged the monitor then the screen(0) is the screen machine. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1386862/+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 #256468]: How to use unattended install in ne sikuli 1.1
Question #256468 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256468 Status: Answered => Solved dinev confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256441]: [1.0.1] IDE: Python: indentation support has some flaws
Question #256441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256441 John008 posted a new comment: oops SHIFT End you know what I mean, just selecting the whole line of the text, or selecting by words with CTRL+SHIFT -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256441]: [1.0.1] IDE: Python: indentation support has some flaws
Question #256441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256441 John008 posted a new comment: sorry I mean not SHIFT ARROW but CTRL+SHIFT+Arrow and CTRL+End I use them so mechanically for so many years... -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256441]: [1.0.1] IDE: Python: indentation support has some flaws
Question #256441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256441 John008 posted a new comment: Hi, I understand I shall not expect something extra++. I realize very well how laborous each and every feature is to tune. I have a great respect to what currently the IDE does, i find the whole project amazing. But editing text is something very basic. Of course I can use e.g. PSPad to edit it and then test it under batch calling - I have Autoit interactive menu for this already Then calling screenshots with my own names would be also good practice, I know. BTW thanks for the tip with the two directories and same names. Anyway, the IDE is very comfortable providing the thumbnails and visually I found it extremely useful very quickly and addicted to it. It is another dimension in maintaing of code where you seek for some visual pattern. therefore I would very welcome, if those little annoying misbehaviours could be somehow fixed. Another example that I forgot to mention: you select the whole line HOME SHIFT End CTRL+C then jump to a new line, so far so good, then you want to paste CTRL+V and... :-( you indentation is corrupted and notice it is ALWAYS corrupted regardless you stand at the very beginning or at the previous level Then again space space space space like a robot You mentioned Tabs. Well, I have come across some discussions (on Python?) that told that we shall never intermix tabs and spaces it may be that tabs are conevrted to spaces in this specific IDE but I am not sure and want to avoid awkward errors so I adhere to said recomendations rather trying to use spaces only... and the problém with tha fact that the icon is overcomeoble only by ARROW not Shift+Arrow is something I get stuck on million of times every day. It is like chronic repeating issue that makes me desperate. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256421]: Find/Exists fails with precision, while succeeds without
Question #256421 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256421 RaiMan posted a new comment: Pattern(someFileName).similar(someValue) should definitely work, no matter where the string content of someFileName comes from. and find(Pattern(someFileName).similar(0.7)) should yield the same result as find(someFileName) if the standard settings are not overwritten. If this is not the case, then this is indeed a bug. Thanks for testing it. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256442]: How to press page down with Shift holded
Question #256442 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256442 RaiMan proposed the following answer: ok, made the comment invisible. Thanks for the contribution. I will revise the keyboard handling with version 1.2. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256442]: How to press page down with Shift holded
Question #256442 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256442 Status: Answered => Solved RaiMan changed the question status: this is for others to know. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256421]: Find/Exists fails with precision, while succeeds without
Question #256421 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256421 John008 posted a new comment: It started with the stable one (is it 1.0.x?), yesterday I upgraded to Nightly build hoping there may be lot of fixes SikuliX-1.1.0, still having the same issue. I thought maybe the expression s/100 would give something different than decimal number. But after I tested to do it manually, i.e. hard coded .similar(0.7) then I was not sure whether some Windows global option like decimal separator could influence it. But given the fact that without array passed when I use the very same Picture CTRL+C CTRL+V and set the similarity in IDE in the test it worked... it confused me totally and I came to this feeling it may be some bug. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256421]: Find/Exists fails with precision, while succeeds without
Question #256421 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256421 Status: Open => Answered RaiMan proposed the following answer: what version of Sikuli? the value given with .similar(n) must be between 0 and 0.99 (<1 !) and should not be negative. values below 0.7 usually only make sense in special situations, but have the risk of false positives. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256442]: How to press page down with Shift holded
Question #256442 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256442 John008 posted a new comment: About the redundancy: I am 100% sure that until I added the modification key, it did not work. The main point was to repeat the SHIFT modifier also with having it Keyed Down. Therefore I think the piece of code is not redundant as I found after several hours of tests. It may be my very specific App in combination with Windows, but I hope I help others avoid such long experimenting, in fact the "reundant part" was the reason I made this post :-] -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256439]: IDE: Python: How can I see the exact line of error in module classes/functions --- use 1.1.0+
Question #256439 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256439 John008 posted a new comment: You are right, I begun with the stable one and yesterdaqy started to experiment with nightly build. I have to check it. I think I had the same trouble though, but I will rather verify. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256421]: Find/Exists fails with precision, while succeeds without
Question #256421 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256421 Status: Answered => Open John008 is still having a problem: Hi, yes, the function expects array of images as a parameter th main point in this question is, it stops working as soon as I add .similar() it starts again to work as soon as I remove that simply the .similar causes find routine to fail at the very same screen the rest I showed just for context if I add print(fimgKalibracni[i]) or print(i) at the place, it shows there is correct index, correct .png name at the time of .find failure then the slight change, remove the .similar() and voilá it works it must be some bug -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256468]: How to use unattended install in ne sikuli 1.1
Question #256468 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256468 Status: Open => Answered RaiMan proposed the following answer: see faq 2609 (only exists since a few seconds ;-) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256468]: How to use unattended install in ne sikuli 1.1
New question #256468 on Sikuli: https://answers.launchpad.net/sikuli/+question/256468 I noticed that there is a new feature in sikuli 1.1 that allows unattended install Is there any manual how to use it? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256455]: Sikulix IDE terminating: no scripting support available
Question #256455 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256455 Status: Answered => Solved jerry confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #235809]: IDE startup throws: [error] Location: outside any screen
Question #235809 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/235809 aiguillon jerome posted a new comment: Hi all, Got the same problem on kubuntu, (kubuntu 14.10 on a laptop with dual screen, sikuli 1.0.1) thanks to RaiMan information I can find the workaround for linux user: look for this file ~/.java/.userPrefs/org/sikuli/basics/prefs.xml or grep for this string '' to find the correct path I tryed different modification in file without success so I just deleted the directory and everything worked again. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256421]: Find/Exists fails with precision, while succeeds without
Question #256421 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256421 Status: Open => Answered RaiMan proposed the following answer: --- images/pattern as text Since version 1.0.1 the IDE has a switch in the view menu, that allows, to switch from the thumbnail view (which is more a toy, than something that helps with complex scripting) to the script-as-text view, where you can do such "fine-tuning". --- using image array does not work might be a typo: in __init__() you say: self.__Kalibruj() but def __Kalibruj(self, fimgKalibracni): expects the image list as parameter??? ... and (not vital): if exists(Pattern(fimgKalibracni[i]).similar(s/100) ,0): # no extra brackets needed this should work, if the fimgKalibracni[i] contains a valid image filename ... different image sets needed this is one of the most mentioned problems, when running a script on different systems, where the "same" images look slightly different. The only solution is to have different image sets. The most elegant solution is to have 2 or more imagesNNN.sikuli, that contain all images needed for a specific environment, but with the same filenames. So after having checked, which environment we are running in, we just set the bundle path to the correct image set. So the workflow is setup once, but can be run with different image sets. Some naming convention for the images should help here. For version 1.2 is on the list to have some better support for this image-set-switching and some support to setup and manage these image sets. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256439]: IDE: Python: How can I see the exact line of error in module classes/functions --- use 1.1.0+
Question #256439 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256439 Summary changed to: IDE: Python: How can I see the exact line of error in module classes/functions --- use 1.1.0+ -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256439]: How can I see in IDE the exact line of error inside Class
Question #256439 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256439 Status: Open => Answered RaiMan proposed the following answer: You seem to run a previous version of Sikuli. With the latest 1.1.0 build (http://sikulix.com), I get this: # testErrorLineMain.sikuli import testErrorLineSub as sub reload(sub) objMyClass = sub.MyClass() #objMyClass.funktion() objMyClass.findError("1414743233981.png") # testErrorLineSub.sikuli from sikuli import * class MyClass: def funktion(self): print MyClass.val def findError(self, image): find(image) ... for the failing function() [error] script [ testErrorLineMain ] stopped with error in line 4 [error] AttributeError ( class MyClass has no attribute 'val' ) [error] --- Traceback --- error source first line: module ( function ) statement 4: testErrorLineSub ( funktion ) print MyClass.val [error] --- Traceback --- end -- ... and for the FindFailed [error] script [ testErrorLineMain ] stopped with error in line 5 [error] FindFailed ( can not find 1414743233981.png in R[0,0 1440x900]@S(0) ) [error] --- Traceback --- error source first line: module ( function ) statement 6: testErrorLineSub ( findError ) find(image) [error] --- Traceback --- end -- Should be sufficient ;-) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256441]: [1.0.1] IDE: Python: indentation support has some flaws
Question #256441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256441 Status: Open => Answered RaiMan proposed the following answer: the Sikuli IDE is not and will never be a tool for complex Python scripting. But some basic indentation support is implemented and works rather well (except with the mentioned blank line behavior) ... and you have to manually space space space space again we have the tab key, to indent one level and the shift-tab to dedent one level. if more than one line is selected, the whole block is indented/dedented. clicking on the line number moves the cursor to the start of the line. For more complex scripting one should use Eclipse with the PyDev plugin or PyCharms, which adds on debugging possibilities. Nevertheless: revision of the indent support and some other smaller enhancements to the IDE editor are on the list for version 1.2 -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256441]: [1.0.1] IDE: Python: indentation support has some flaws
Question #256441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256441 Summary changed to: [1.0.1] IDE: Python: indentation support has some flaws -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256455]: Sikulix IDE terminating: no scripting support available
Question #256455 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256455 jerry posted a new comment: Thanks RaiMan, very detailed - appreciated. --- different Java versions used My system is windows 7 bases on x86, with jdk 1.6 and jre 1.7 - not sure if jdk 1.7 not installed was the reason, anyway I'll update my jdk to 1.7 Regards, -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256442]: How to press page down with Shift holded
Question #256442 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256442 Status: Open => Answered RaiMan proposed the following answer: Thanks for feedback. There are some known problems on Windows together with the NUM_LOCK state. These appear to be some Java problems. It is on the list for version 1.2, to revise the key handling and implement the known workarounds where possible. BTW: lockState = Env.isLockOn(Key.NUM_LOCK) if lockState: type(Key.NUM_LOCK) keyDown(Key.SHIFT) type(Key.PAGE_DOWN) # Key.SHIFT is redundant, since it is already hold down type(Key.PAGE_DOWN) keyUp(Key.SHIFT) if lockState: type(Key.NUM_LOCK) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256455]: Sikulix IDE terminating: no scripting support available
Question #256455 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256455 Status: Open => Answered RaiMan proposed the following answer: I am really sorry, for the various problems you have. --- About offline setup: Only to be clear: In your setup folder you should have the latest version of sikulixsetup-1.1.0.jar The setup folder should have a folder Downloads with the latest versions of these files manually downloaded from the nightly build page: For setup option 1: 1.1.0-1.jar and at least the Jython jar For setup option 2: 1.1.0-2.jar the sikulixlibswin-1.1.0.jar To run a clean setup, all other stuff in the setup folder should be deleted. If you get any problems, first read through the setup log file, wether you can see any error messages. If you want me to check it, send it silently to my mail at https://launchpad.net/~raimund-hocke --- different Java versions used You seem to have run the setup on a system with Java 7, but SikuliX is run on a system with Java 6? please explain. --- JVM crash that looks strange: there is some problem with the load of the contained libtesseract-3.dll What system did you run that on? I suggest, to start all over new and run a clean setup. Take care, that the final success message comes up and look through the log. -- You received this question notification because you are a member of Sikuli Drivers, which 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