Re: [Sikuli-driver] [Question #679113]: showMonitors() – what does "None" mean?
Question #679113 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679113 Rainer 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 #679113]: showMonitors() – what does "None" mean?
Question #679113 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679113 Status: Answered => Solved Rainer confirmed that the question is solved: Thank you, RaiMan, that explains it. In my example from above result = showMonitors() the monitor configuration is printed by the showMonitor function, and the result ("None") is assigned to the result variable. Could have figured that out myself … -- 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 #679113]: showMonitors() – what does "None" mean?
Question #679113 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679113 Rainer posted a new comment: Just did some further testing. As RaiMan already noted, showMonitors() by itself does not produce the "None". The "None" in my case resulted from calling showMonitors() from within a print() function. The strange behavior here seems to be that the print() function in general does not print a "None" (or whatever) return value. This is independent of the "content" that shall be printed: The following code: print("WTF?") … just prints the text and no subsequent "None". The following code: def func(): return "WTF?" print(func()) … just prints the text and no "None". The following code (executing a print() in the called function: def func(): print("WTF?") func() … also just prints the text. But the following code: def func(): print("WTF?") print(func()) … prints the text plus a subsequent "None". Obviously the "inner" print() function causes the called func() function to return "None", which is then printed from the "outer" print(). To check that: The following code: def func(): print("WTF?") return 2 print(func()) … prints the text and then the "2". The following code results in an error: def func(): result = print("WTF?") return result printfunc()) … [error] script [ Untitled ] stopped with error in line 2 at column 13 … [error] SyntaxError ( "no viable alternative at input 'print'", ) print() seems to provide a return value, which cannot be assigned, but is returned anyway to a calling "outer" function … Astonishingly (or not?) the following code: result = showMonitors() print(result) … prints the Monitor configuration PLUS the "None"! Even if a put a str() in between to "isolate" the result varable from the fact that the assigned value comes from a function: result = str(showMonitors()) print(result) … I get the additional "None" … The following code: result = "WTF?" print(result) … just prints the text, as expected. Not sure whether this is really consistent … why does the print() function think that the result variable contains the output of showMonitors() if already the output of this function is explicitly converted to a string before being assigned to the result variable in the first place? And there is no called function involved and no previous print() in the code that could result in "None" being returned to wherever … BTW: I tried all printing with "print" as a "classic" Python 2 statement and as a Python 3 function, this had no influence. All this is of course not really important, just somewhat fascinating … -- 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 #679113]: showMonitors() – what does "None" mean?
New question #679113 on Sikuli: https://answers.launchpad.net/sikuli/+question/679113 Just used the showMonitors() command on one of my systems. It returned *** monitor configuration [ 2 Screen(s)] *** *** Primary is Screen 0 Screen 0: R[0,0 1680x1050]@S(0) Screen 1: R[-1680,0 1680x1050]@S(1) *** end monitor configuration *** None Everything is correct (very nice info BTW, thank you), I was just wondering what the "None" in the last line is referring to? -- 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 #678932]: Repeat
Question #678932 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678932 Rainer proposed the following answer: This structure is identical to your structure. Now you can start "populating" this barebone structure with your code, line by line, and run it after each addition. So you should be able to determine the line(s) that give you problems. -- 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 #678932]: Repeat
Question #678932 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678932 Rainer proposed the following answer: The following code: for i in range(4): print(i) if i % 2: print("is odd") else: print("is even") should result in the following output: 0 is even 1 is odd 2 is even 3 is odd Could you please copy & paste this code in the SikuliX IDE and run it? Does it work? -- 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 #678932]: Repeat
Question #678932 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678932 Rainer proposed the following answer: Your code should look like this: for i in range(200): click(1006,748) click("1551707620478.png") type(Key.ENTER) type('c', KeyModifier.CTRL) click("1551704040161.png") type('v', KeyModifier.CTRL) sleep (2) if(exists("1551704943136.png")): click(613,587) type('a', KeyModifier.CTRL) type(Key.DELETE) click("1551707221495.png") else: click("1551703683676.png") find("1551706524071.png") click("1551706538103.png") The whole code in the "for" block (everything that you want to be executed repeatedly) needs to be indented (moved to the right) by one level. -- 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 #678932]: Repeat
Question #678932 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678932 Rainer proposed the following answer: You have to indent the whole code within the "for" block, in the same way as you do with the "if" block. This is a quite basic Python question by the way, and has nothing to do with SikuliX -- 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 #678874]: Python: with someRegion: inside with block someRegion gets what SCREEN is outside
Question #678874 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678874 Rainer posted a new comment: Thanks, Raiman, for your explanation. Avoiding with: blocks altogether is easily doable. They are just a quite "pythonic" shortcut, and I like to use them when they come handy. So really not that big of a deal at all. Getting rid of Jython, on the other hand, is a move that I would really like to support as strongly as possible. Jython seems to remain stuck at Python 2.7 (not even the latest 2.7.x - there has been no new installer since nearly two years now), requires complicated setups and odd configurations in 3rd party IDEs etc. Directly usable "real" Python would be a huge improvement in every conceivable aspect. -- 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 #678874]: Python: with someRegion: inside with block someRegion gets what SCREEN is outside
Question #678874 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678874 Status: Answered => Solved Rainer 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 #678874]: Python: with someRegion: inside with block someRegion gets what SCREEN is outside
Question #678874 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678874 Status: Solved => Open Rainer is still having a problem: Not a problem. I just was not aware of this behavior, because the SCREEN object is described everywhere as "constant". I noticed an unexpected behavior of a function (that uses the SCREEN object) that is called from different modules, although I had not changed anything in that function. It took me some time to realize that the difference came from the fact that on this one occasion I call this function from within a with: block, which changed the SCREEN region. Now that we know this, we can even use it to our advantage – we don't need to transfer the with: region as a parameter to the called function. The SCREEN "constant" takes care of that. The whole screen can still be accessed by Screen(0), and it is of course always possible to assign SCREEN or Screen(0) to a separate variable and then use this variable as reference to the whole screen. So in my opinion there is no need to change that behavior. One more question: I did some additional testing. The following code: print("1", SCREEN) with Region(1,1,1,1): print("2", SCREEN) with Region(2,2,2,2): print("3", SCREEN) print("4", SCREEN) print("5", SCREEN) results in ('1', R[0,0 1680x1050]@S(0)) ('2', R[1,1 1x1]@S(0)) ('3', R[2,2 2x2]@S(0)) ('4', R[0,0 1680x1050]@S(0)) ('5', R[0,0 1680x1050]@S(0)) Obvioulsy the with: blocks cannot really be nested – otherwise "4" should be back to (1,1,1,1) again … Is this the intended behavior? -- 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 #678874]: Should "SCREEN" really be mapped to "with" Region?
New question #678874 on Sikuli: https://answers.launchpad.net/sikuli/+question/678874 The following code print(SCREEN) with Region(1, 2, 3, 4): print(SCREEN) print(Screen()) print(SCREEN) results in: R[0,0 1680x1050]@S(0) R[1,2 3x4]@S(0) R[0,0 1680x1050]@S(0) R[0,0 1680x1050]@S(0) Within a "with" Region, the SCREEN variable obviously points to the "with" Region, and is afterwards reassigned the Screen() Region. Is this the intended behavior? -- 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 1817939] [NEW] IDE: Unpaired quote characters in comments result in a warning
Public bug reported: An unpaired single or double quote character in a comment raises a "Possible incomplete string" warning. To reproduce, create a small script: # don't do this Creates the warning, but only if the whole script is run. If only a selection (that contains the comment line) is run, the warning is not shown, even if the selection encompasses the whole script … Shouldn't anything in comment lines be ignored entirely (just like parentheses etc.) and not be checked for a matching counterpart? Anyway, this is just a VERY minor nuisance. ** 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/1817939 Title: IDE: Unpaired quote characters in comments result in a warning Status in Sikuli: New Bug description: An unpaired single or double quote character in a comment raises a "Possible incomplete string" warning. To reproduce, create a small script: # don't do this Creates the warning, but only if the whole script is run. If only a selection (that contains the comment line) is run, the warning is not shown, even if the selection encompasses the whole script … Shouldn't anything in comment lines be ignored entirely (just like parentheses etc.) and not be checked for a matching counterpart? Anyway, this is just a VERY minor nuisance. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1817939/+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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Status: Answered => Solved Rainer 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Rainer posted a new comment: The added build info in Env.getSikuliVersionBuild() also works nicely. We can finally stop writing it down after every download :) -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Rainer posted a new comment: Tested all highlighting cases, everything now works as intended. The logging also works for all events. I just noted a little detail: For "timed" highlights, the color is indicated whenever a specific color was requested. This is not the case for all the new highlighting options. If it is not too much work, could you please make the logging behavior consistent and always provide the color info too, if the default color is not used? Thank you very much by the way, these new highlighting options are very much appreciated! -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Rainer posted a new comment: Case 1: Yue guessed right :) Yes, I was talking about the syntax coloring. I already suspected that this requires just a "manual" addition of the new keywords to some kind of list. Case 2: agreed, should work differently Case 3: perfectly valid, just so that we know it Case 4: the same. If we know the behavior, we can program everything accordingly. Just noticed the following: Highligting for a specific time results in a log entry (if activated): [log] highlight R[840,0 840x525]@S(0) for 1.0 secs color: BLUE highlightOn/Off/AllOff does not seem to create a log entry. Shouldn't those actions be logged too? -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Rainer posted a new comment: Did some testing, the functionality seems to basically work, although I am not sure whether it works as intended everywhere :) I noticed a couple of things: highlightOff() turns green in the IDE (so it is correctly recognized), whereas highlightOn() and highlightAllOff() stay black (although they work as expected). reg.highlight("GREEN") → reg is highlighted in green as expected reg.highlight("BLUE") → reg highlight color is not changed to blue, instead the green highlight is cancelled. Is this the intended behavior? reg.highlight("GREEN") → reg is highlighted in green as expected reg.highlight(1, "BLUE") → reg is highlighted in blue for one second, than is highlighted in green again and stays that way Is this the intended behavior? reg.highlight("GREEN") → reg is highlighted in green as expected reg.highlightOff() → highlight is cancelled as expected reg.highlightOn() → (no color parameter) highlight is turned on in red, not in the last used color Is this the intended behavior? Regards, Rainer -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Status: Solved => Open Rainer is still having a problem: Behaves unexpectedly on my system: highlight(True) highlights for 1 second, the scripts pauses, highlight is cancelled highlight(False) highlights for 2 seconds, the script pauses. Does not cancel a previously active highlight. (Build 196, Win 7 Pro, Java 8_201) Could you check that, please? highlightOff() works as expected. Another detail: Env.getSikuliVersion() results in "1.1.4-SNAPSHOT". Would it be possible to include the date and/or the build number? -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Rainer posted a new comment: That sounds great, thank you. Could you eventually consider a Region::highlightOn() as well (to make sure that a Region is highlighted)? -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Rainer 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Status: Answered => Solved Rainer confirmed that the question is solved: That worked! Thank you! Are there more of such beautiful undocumented features that we could use :-) ? -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Status: Answered => Open Rainer is still having a problem: 'import org.sikuli.script.ScreenHighlighter as SH' – 'Import Error: No module named ScreenHighlighter' I had already tried 'Import org.sikuli.script.SikulixForJython' (from my IntelliJ setup), which did not result in an error, but did not achieve anything wrt my problem. I am obviously still lacking some basic understanding of the various components required for SikuliX … -- 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 #678626]: Switching off all currently active highlighting
Question #678626 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678626 Status: Answered => Open Rainer is still having a problem: Thank you so far. So far I tried that in in the IDE, but could not make it work ("name 'ScreenHighlighter' is not defined", 'javapackage' object has no attribute 'ScreenHighlighter'") Do I need to import something before I can use 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
[Sikuli-driver] [Question #678626]: Switching off all currently active highlighting
New question #678626 on Sikuli: https://answers.launchpad.net/sikuli/+question/678626 I have a situation where I need to highlight various regions. Sometimes more than one should be highlighted at the same time, depending on the content of the screen, and I cannot know in advance which regions will be highlighted and for how long they should remain highlighted. As the script needs to continue, I must start the highlighting without a time parameter. The problem here is to stop the highlighting. I cannot just highlight the region again without a time parameter, because if it is not highlighted, I will get highlighted. I tried to highlight it for a specific time, but that does not cancel the highlighting that was started without a time parameter. I could of course track all started highlighting, and then cancel exactly the highlightings that are active. I wonder whether there might exist a (probably not documented) command that cancels the highlighting of a region, if it is on, but does not start it? Or a command to cancel all active highlightings? 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 #678530]: Windows 7: Jython problem - error loading python.dll (error 14001)
Question #678530 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678530 Status: Open => Solved Rainer confirmed that the question is solved: Sorry, reopened by mistake. -- 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 #678530]: Windows 7: Jython problem - error loading python.dll (error 14001)
Question #678530 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678530 Status: Answered => Open Rainer is still having a problem: Yes, thank you, RaiMan, I was just hoping that someone compiled a new jython-installer.jar where all of this has already been taken care of. -- 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 #678529]: How to create a Region from a Location
Question #678529 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678529 Rainer 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 #678529]: How to create a Region from a Location
Question #678529 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678529 Status: Answered => Solved Rainer confirmed that the question is solved: Thank you, RaiMan, I was quite close with my guesswork resp. suggestion … :) -- 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 #670877]: Color selection for region highlighting
Question #670877 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/670877 Status: Answered => Solved Rainer confirmed that the question is solved: Thank you, masuo, you are of course right. I was by mistake looking at the wrong docs — the old 1.0 docs at http://doc.sikuli.org/region.html -- 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 #670877]: Color selection for region highlighting
New question #670877 on Sikuli: https://answers.launchpad.net/sikuli/+question/670877 I am aware that the topic of color selection for region highlighting has been on the wish list since at least 2011 (bug 795211). I, too, could use this feature for improved user interaction, and therefore would like to join and support the ever growing group of Sikuli users desperately awaiting the addition of this very simple, but immensely important ;-) feature. Please, RaiMan, could you give it a look? 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 1755759] [NEW] Java 9 - 1.1.2 final - IDE - Undo/Redo not functional
Public bug reported: 1.1.2 final: The Undo/Redo functionality in the IDE does not seem to work in Java 9 (x64) - neither via Edit->Undo/Redo nor via CTRL-Z/CTRL- Shift-Z - just nothing happens. Works fine in Java 8 161 (x64). ** Affects: sikuli Importance: Undecided Status: New ** Tags: 1.1.2 ide java9 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1755759 Title: Java 9 - 1.1.2 final - IDE - Undo/Redo not functional Status in Sikuli: New Bug description: 1.1.2 final: The Undo/Redo functionality in the IDE does not seem to work in Java 9 (x64) - neither via Edit->Undo/Redo nor via CTRL-Z /CTRL-Shift-Z - just nothing happens. Works fine in Java 8 161 (x64). To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1755759/+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 1705515] Re: [1.1.1 final] Screen().capture() does not return path --- workaround
@RaiMan Just one question: If I apply the getFile() workaroud to all capture() methods, will this still work after the problem got fixed in 1.1.2, or will I have to remove the getFile() everywhere because it will then cause problems itself? Thank you! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1705515 Title: [1.1.1 final] Screen().capture() does not return path --- workaround Status in Sikuli: Fix Committed Bug description: workaround until fixed in 1.1.2, one can use: Screen().capture().getFile() --- In 1.1.1 Screen().capture() returns "org.sikuli.script.ScreenImage@4d1ab2e0 in 1.1.0 Screen().capture() returns "...\AppData\Local\Temp\Sikulix_1083747527\sikuliximage-1500565358268.png" Same script, just switching between 1.1.0 and 1.1.1 IDE Windows 10 Pro Version 1703 64-Bit Thanks To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1705515/+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 1705515] Re: 1.1.1 Screen().capture() does not return path
I can confirm the bug. Same environment as Samson Truong. Isn't this the same bug as 1589474 from 2016-06-06 that was supposed to have been fixed? ** Changed in: sikuli Status: Invalid => Confirmed -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1705515 Title: 1.1.1 Screen().capture() does not return path Status in Sikuli: Confirmed Bug description: In 1.1.1 Screen().capture() returns "org.sikuli.script.ScreenImage@4d1ab2e0 in 1.1.0 Screen().capture() returns "...\AppData\Local\Temp\Sikulix_1083747527\sikuliximage-1500565358268.png" Same script, just switching between 1.1.0 and 1.1.1 IDE Windows 10 Pro Version 1703 64-Bit Thanks To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1705515/+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 793723] Re: [1.1.0-Beta1] Linux System Always Uses Screen(0)
You have e-mail. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/793723 Title: [1.1.0-Beta1] Linux System Always Uses Screen(0) Status in Sikuli: In Progress Bug description: I am using Sikuli version 1.0rc3 compiled from source on a Redhat EL4 system. I have a 3 monitor setup running X11R7.1.1 and it appears that Sikuli maps all operations to screen 0 i.e. DISPLAY :0.0. The getNumberScreens() method returns 3 as expected, and instantiating screen objects for Screen(0), Screen(1), and Screen(2) appear to work. Trying to use the screen objects to invoke click(), find(), etc. always result in an operation on screen(0) only. If I print the screen objects all 3 return the following: Screen(0)[0,0 1920x1200] E:Y, T:3.0 So, does this version of Sikuli support a multi-monitor Linux setup and if yes, what could I be doing wrong? Thanks... To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/793723/+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 793723] Re: Linux System Always Uses Screen(0)
I am working with 1.1.0, so yes, I can confirm that. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/793723 Title: Linux System Always Uses Screen(0) Status in Sikuli: In Progress Bug description: I am using Sikuli version 1.0rc3 compiled from source on a Redhat EL4 system. I have a 3 monitor setup running X11R7.1.1 and it appears that Sikuli maps all operations to screen 0 i.e. DISPLAY :0.0. The getNumberScreens() method returns 3 as expected, and instantiating screen objects for Screen(0), Screen(1), and Screen(2) appear to work. Trying to use the screen objects to invoke click(), find(), etc. always result in an operation on screen(0) only. If I print the screen objects all 3 return the following: Screen(0)[0,0 1920x1200] E:Y, T:3.0 So, does this version of Sikuli support a multi-monitor Linux setup and if yes, what could I be doing wrong? Thanks... To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/793723/+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 793723] Re: Linux System Always Uses Screen(0)
I can confirm this bug under Opensuse Linux 13.1. I have a two-monitors setup. My application iterates all screens, looks for a certain image and then clicks on it. This works fine if that image is on screen 0. If it is on screen 1, Sikuli moves the pointer to the corresponding position on screen 0 (which in my case is "above" screen 1) and clicks there: [log] CLICK on L(90,1217)@S(1)[0,1050 1920x1080] -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/793723 Title: Linux System Always Uses Screen(0) Status in Sikuli: In Progress Bug description: I am using Sikuli version 1.0rc3 compiled from source on a Redhat EL4 system. I have a 3 monitor setup running X11R7.1.1 and it appears that Sikuli maps all operations to screen 0 i.e. DISPLAY :0.0. The getNumberScreens() method returns 3 as expected, and instantiating screen objects for Screen(0), Screen(1), and Screen(2) appear to work. Trying to use the screen objects to invoke click(), find(), etc. always result in an operation on screen(0) only. If I print the screen objects all 3 return the following: Screen(0)[0,0 1920x1200] E:Y, T:3.0 So, does this version of Sikuli support a multi-monitor Linux setup and if yes, what could I be doing wrong? Thanks... To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/793723/+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 #250119]: How can I turn on debugging in a JUnit test?
Question #250119 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250119 Status: Answered => Solved Rainer Klute 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 #250119]: How can I turn on debugging in a JUnit test?
Question #250119 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250119 Rainer Klute gave more information on the question: What I am trying to do is to integrate Sikuli JUnit tests into my project's Maven build. If I explictly add sikulix.jar to my classpath, the JUnit tests find libVisionProxy.so in the libs folder which is neighboring sikulix.jar. So I am able to run my JUnit tests in Eclipse, but this is of course no option for Maven. It should be possible to configure somehow where libVisionProxy.so resides. -- 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 #250119]: How can I turn on debugging in a JUnit test?
New question #250119 on Sikuli: https://answers.launchpad.net/sikuli/+question/250119 Running a JUnit test case I get the following error message: [error] ResourceLoader: loadLib: Fatal Error 110: loading: libVisionProxy.so [error] ResourceLoader: loadLib: Since native library was found, it might be a problem with needed dependent libraries Expecting an absolute path of the library: libVisionProxy.so [error] RunSetup: Problem with SikuliX libs folder - see error log [error] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no sense to continue! If you do not have any idea about the error cause or solution, run again with a Debug level of 3. You might paste the output to the Q&A board. How can I set the debug level to 3 in order to dive deeper into the problem? How is the libVisionProxy.so looked up anyway? I couldn't find that in the docs. What's that absolute path in "Expecting an absolute path of the library: libVisionProxy.so"? Regarding "see error log", I don't have any error log besides what I pasted above. -- 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 #249653]: Running a Sikuli script throws a java.lang.NoClassDefFoundError
Question #249653 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/249653 Rainer Klute 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 #249653]: Running a Sikuli script throws a java.lang.NoClassDefFoundError
Question #249653 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/249653 Status: Answered => Solved Rainer Klute confirmed that the question is solved: I just had the time to repeat the installation executing sikulixsetup-1.1.jar in an otherwise empty directory. Then I copied my self-compiled libVisionProxy.so to the libs folder, ran "java -jar sikulix.jar", created my first simple script, and – it worked! Thanks for your help! (Will now try to write some JUnit tests ...) -- 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 #249653]: Running a Sikuli script throws a java.lang.NoClassDefFoundError
Question #249653 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/249653 Rainer Klute posted a new comment: I did execute sikulixsetup-1.1.jar. However, I skipped the download step, because this was my second try to generate sikuli.jar and I had the downloaded files already. I could repeat everything WITH downloading them, if it helps. -- 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 #249653]: Running a Sikuli script throws a java.lang.NoClassDefFoundError
Question #249653 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/249653 Rainer Klute posted a new comment: How would this bring org.sikuli.natives.VisionProxyJNI into the classpath? (I have a self-compile libVisionProxy.so in my libs directory already.) -- 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 #249653]: Running a Sikuli script throws a java.lang.NoClassDefFoundError
New question #249653 on Sikuli: https://answers.launchpad.net/sikuli/+question/249653 I am trying my very first steps with Sikuli X 1.1 on Linux (Opensuse 13.1, 64 bit). In a first test I used the IDE to create a script "click()". I saved the script and then tried to execute it. However, the following error message appeared: [error] script [ test ] stopped with error in line 1 [error] java.lang.NoClassDefFoundError ( java.lang.NoClassDefFoundError: org/sikuli/natives/VisionProxyJNI ) The missing class IS in two of the downloaded jars, but it IS NOT in sikulix.jar. -- 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 #249530]: Cannot install Sikuli because libopencv is too recent
Question #249530 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/249530 Status: Answered => Solved Rainer Klute confirmed that the question is solved: Building libVisionProxy.so from source was the way to got – it works! Thanks! (I'll got an error when trying to run a very simple test script, though. But that will be another 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 #249530]: Cannot install Sikuli because libopencv is too recent
Question #249530 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/249530 Rainer Klute posted a new comment: Yes, thanks, it should do it – will try. However, I consider this an ugly workaround and not a solution. -- 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 #249530]: Cannot install Sikuli because libopencv is too recent
New question #249530 on Sikuli: https://answers.launchpad.net/sikuli/+question/249530 My Sikuli installation under Opensuse Linux 13.1 aborts with an error message telling that libopencv_core.so.2.3 cannot be found. Well, that's very plausible, because I don't have OpenCV 2.3 installed, but rather 2.4. However, shouldn't a more recent version work even better than not at all? For completeness, here's the error log: [debug (28.05.14 16:36:05)] ResourceLoader: export: Found 8 Files in Lib/sikuli [error (28.05.14 16:36:05)] ResourceLoader: loadLib: Fatal Error 110: loading: libVisionProxy.so [error (28.05.14 16:36:05)] ResourceLoader: loadLib: Since native library was found, it might be a problem with needed dependent libraries /data/data1/klute/Archiv/Sikuli/xxx/libs/libVisionProxy.so: libopencv_core.so.2.3: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden [error (28.05.14 16:36:05)] RunSetup: Problem with SikuliX libs folder - see error log [error (28.05.14 17:32:21)] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no sense to continue! -- 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