[Sikuli-driver] [Bug 1818043] Re: [1.1.4] possible NPE: multi-monitor: initScreens: mouse check
Hi, Log: [debug] Screen: initScreens: starting [debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment() [debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices() [debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0) [debug] Screen: Monitor 0: (0, 0) 1920 x 1200 [debug] Screen: Monitor 1: (3600, 247) 1366 x 768 [debug] Screen: Monitor 2: (1920, 35) 1680 x 1050 [debug] Mouse: init start Exception in thread "main" java.lang.NullPointerException at org.sikuli.script.Location.getScreen(Location.java:130) at org.sikuli.script.Mouse.move(Mouse.java:391) at org.sikuli.script.Mouse.move(Mouse.java:372) at org.sikuli.script.Mouse.init(Mouse.java:60) at org.sikuli.script.Screen.initScreens(Screen.java:136) at org.sikuli.script.Screen.(Screen.java:169) at sikulixtest.SikulixTest.main(SikulixTest.java:10) Code: package sikulixtest; import org.sikuli.basics.Debug; import org.sikuli.script.Screen; public class SikulixTest { public static void main(String[] args) { Debug.on(3); Screen screen = new Screen(); } } my mouse is on [debug] Screen: Monitor 2: (1920, 35) 1680 x 1050 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1818043 Title: [1.1.4] possible NPE: multi-monitor: initScreens: mouse check Status in Sikuli: New Bug description: Hi, I use 3 monitors in win 7 with sikulix-api 1.1.4 (This version was built at 2019-02-27_17:37 (Build 212) ) now if i start a new screen (screen = new Screen() ). I get a NullPointerException if my Mouse is in the 3rd Screen (windows screencounting) in the middle of the monitors. Is the mouse at this time on Screen 1 oder 3 (right and left outside) is all fine... The code is simple: public ScreenRobot() { screen = new Screen(); Exception in thread "main" java.lang.NullPointerException at org.sikuli.script.Location.getScreen(Location.java:130) at org.sikuli.script.Mouse.move(Mouse.java:391) at org.sikuli.script.Mouse.move(Mouse.java:372) at org.sikuli.script.Mouse.init(Mouse.java:60) at org.sikuli.script.Screen.initScreens(Screen.java:136) at org.sikuli.script.Screen.(Screen.java:169) at de.sm.ScreenRobot.(ScreenRobot.java:31) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1818043/+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 #678851]: XLSX Handling in Sikuli
Question #678851 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678851 Mike posted a new comment: It is an interesting point of discussion. I would guess that openPyXL doesn't do anything that the Excel UI doesn't. As Sikulix can use all the power of the UI then openPyXL doesn't add functionality. Sikulix is primarily for automating UIs and not APIs. You could argue that if you wanted to extend Sikulix it might make more sense to focus on UI capabilities - for example adding joystick features. -- 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 #678800]: How to do screen comparison using sikuli ide?
Question #678800 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678800 Status: Open => Answered Asheru proposed the following answer: Personally I don't know exactly but I don't think this is possible from sikuli. I might be wrong still. -- 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 #678865]: Why the command list panel was removed in Sikuli 1.1.4 :(
New question #678865 on Sikuli: https://answers.launchpad.net/sikuli/+question/678865 Hi Team - May I know why the command list panel was removed in Sikuli 1.1.4 please? I read in one thread that it was delibrate attempt but was not given much info on why it is so. Is there a way to get that "command list" panel in 1.1.4? -- 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 #678851]: XLSX Handling in Sikuli
Question #678851 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678851 Bharathi A posted a new comment: @Mike - Thanks for the suggestion. I will try the workflow and keep the forum updated. As a side note.. if Raiman & his core team look into integrating openPyXl or equivalent to that - it will of great addtion to sikuli. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678844]: switchApp() is no longer functional
Question #678844 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678844 Status: Needs information => Open Renke He gave more information on the question: When I run my script I need to make sure myApp's GUI should be at the front cause there are many terminals running on my desktop. So I use switchApp() to switch the focus to myApp. I try to read through the docs but it seems this is only way I can do in Ubuntu.And I tried openApp(), still not working though. -- 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 #678863]: [1.1.4 ] collectWords dosn't find a word
New question #678863 on Sikuli: https://answers.launchpad.net/sikuli/+question/678863 I am new to Sikuli and I am not a developer, but I did my best to read the docs. Probably I missed anyway something for OCR-setup. I already did some successfull scipts for Html/Javascipts Apps and for some Windows-Apps. Now I want to get the text and the position of new and unknown Objects, e.g. usernames, wich I can't click/mark, because they are starting a function or a hyperlink. So collectWords() would be the best method. This is my code: ... Settings.OcrTextRead = True #tr = TextOCR.start() #tr.setLanguage("eng") #logger.warning('tr = %s', tr) words = Region(38,381,282,28).text() logger.warning('words = %s', words) #words = SCREEN.getWords() #Screen object has no attribute getWords words = SCREEN.collectWords() logger.warning('words = %s', words) words = Region(19,323,675,268).findAllText("Administrator") logger.warning('words = %s', words) #firstWordMatch = words[0].getText() #firstWord = firstWordMatch.getText() Region.text() and Region.findAllText("mySearch") works fine, but this is not the function I need. Region. collectWords(), Region. collectWordsText(), Region. collectLines(), ... don't throw an error, but find nothing: Result is [0] When enabled getText() throws an error and color of this method call in SikuliX IDE keeps black. Color of collectWords() is not blue/green like findAllText(), but keeps black,too. ?!? I tested this code with all kind of apps/texts and got allways the same result. My Environment: Windows 10, latest Java 64, Folder of Sikulix 1.1.3 installation got renamed, old Appdata-Folder of 1.1.3 got renamed. I did same for the 1.1.4 installation wich i used until today. This Installation had both, Jython and JRuby support and some Tesseract-files. Now I did a new installation of last night version of 1.1.4 and only Jython, nothing else. No additional configuration, only the Settings.OcrTextRead statement in the script. Resul of new installationt: Nothing changed By the way: Do I need the tr = TextOCR.start() stuff? -- 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 #678851]: XLSX Handling in Sikuli
Question #678851 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678851 Mike posted a new comment: New versions of Excel have enhanced keyboard control. You press ALT and it reveals loads of opportunities. Below is Office 365 on Windows 10. #Create an xlsx copy of an xls spreadsheet def xls2xlsx(xls): wdelay = 2 switchApp("excel") wait(wdelay) type(Key.ALT) #activate alt keys wait(wdelay) type("f") # "File" wait(wdelay) type("o") # "Open" wait(wdelay) type("o") # "Browse" wait(wdelay) print "About to print " + xls type(xls) wait(wdelay) type(Key.ENTER) # Should bring up spreadsheet wait(wdelay) type(Key.ALT) #activate alt keys wait(wdelay) type("f") # "File" wait(wdelay) type("a") # "Save As" wait(wdelay) type("y4") # File Type wait(wdelay) type(Key.UP) #Select xlsx entry type(Key.UP) type(Key.UP) wait(wdelay) type(Key.ENTER) wait(wdelay) type(Key.ALT) #RReactivate Alt keys wait(wdelay) type("a") wait(wdelay) type("y5") #press save button wait(wdelay) type(Key.ALT) # Now close sheet wait(wdelay) type("f") wait(wdelay) type("c") xlsheet = "ExcelTest" xls2xlsx(xlsheet) (Note this is an example of using a visual interface but not needing any computer vision to do so) -- 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 #678851]: XLSX Handling in Sikuli
Question #678851 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678851 Status: Answered => Open Bharathi A is still having a problem: Hi Raiman - Thnx for the feedback. I tested openPyXl and it is not not supported in sikuli as of now it seems. I guess I should implement a workflow, that loads the xls in Excel and then saves it as xlsx. Will keep the forum updated. -- 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 1818043] Re: [1.1.4] possible NPE: multi-monitor: initScreens: mouse check
... I currently do not have any multi-monitor environment available, sorry. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1818043 Title: [1.1.4] possible NPE: multi-monitor: initScreens: mouse check Status in Sikuli: New Bug description: Hi, I use 3 monitors in win 7 with sikulix-api 1.1.4 (This version was built at 2019-02-27_17:37 (Build 212) ) now if i start a new screen (screen = new Screen() ). I get a NullPointerException if my Mouse is in the 3rd Screen (windows screencounting) in the middle of the monitors. Is the mouse at this time on Screen 1 oder 3 (right and left outside) is all fine... The code is simple: public ScreenRobot() { screen = new Screen(); Exception in thread "main" java.lang.NullPointerException at org.sikuli.script.Location.getScreen(Location.java:130) at org.sikuli.script.Mouse.move(Mouse.java:391) at org.sikuli.script.Mouse.move(Mouse.java:372) at org.sikuli.script.Mouse.init(Mouse.java:60) at org.sikuli.script.Screen.initScreens(Screen.java:136) at org.sikuli.script.Screen.(Screen.java:169) at de.sm.ScreenRobot.(ScreenRobot.java:31) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1818043/+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 1818043] Re: NullPointerException in new Screen() if mouse is on second screen
please use: public ScreenRobot() { Debug.on(3) screen = new Screen(); and analyse/post the log ** Summary changed: - NullPointerException in new Screen() if mouse is on second screen + [1.1.4] possible NPE: multi-monitor: initScreens: mouse check -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1818043 Title: [1.1.4] possible NPE: multi-monitor: initScreens: mouse check Status in Sikuli: New Bug description: Hi, I use 3 monitors in win 7 with sikulix-api 1.1.4 (This version was built at 2019-02-27_17:37 (Build 212) ) now if i start a new screen (screen = new Screen() ). I get a NullPointerException if my Mouse is in the 3rd Screen (windows screencounting) in the middle of the monitors. Is the mouse at this time on Screen 1 oder 3 (right and left outside) is all fine... The code is simple: public ScreenRobot() { screen = new Screen(); Exception in thread "main" java.lang.NullPointerException at org.sikuli.script.Location.getScreen(Location.java:130) at org.sikuli.script.Mouse.move(Mouse.java:391) at org.sikuli.script.Mouse.move(Mouse.java:372) at org.sikuli.script.Mouse.init(Mouse.java:60) at org.sikuli.script.Screen.initScreens(Screen.java:136) at org.sikuli.script.Screen.(Screen.java:169) at de.sm.ScreenRobot.(ScreenRobot.java:31) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1818043/+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 #678851]: XLSX Handling in Sikuli
Question #678851 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678851 Status: Open => Answered RaiMan proposed the following answer: .xls cannot be changed to .xlsx simply by renaming (completely different file format). If you do not find an appropriate function in xlwt/xlutils, than you should implement a workflow, that loads the xls in Excel and then saves it as xlsx. Wether openPyXl works with SikuliX has to be tested (if it contains any access to native libs (C-based), then it will not 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 #678844]: switchApp() is no longer functional
Question #678844 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678844 Status: Open => Needs information RaiMan requested more information: how exactly are you using switchApp()? already tried openApp()? The App class internally is heavily revised for Windows/macOS, but not tested yet against Linux. So there might well be 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
[Sikuli-driver] [Question #678851]: XLSX Handling in Sikuli
New question #678851 on Sikuli: https://answers.launchpad.net/sikuli/+question/678851 Hi - I have a project where in: Step 1: Fetch the value of a CELL from one Excel sheet status: success Step 2: Paste that value in another cell (say C30) in another Excel sheet status: Success Step 3: Save the updated sheet in xlsx format status: Not Success Need help for acheiving Step 3. I am using xlrd, xlwt and xlutils but with xlrd - I see the file is getting saved as ".xls" format only. I see that if I use openPyXl then .xlsx format can be handled but I guess Sikuli is not supporting openPyXl yet. Then for experimental purpose I tried the following: 1a - Save the updated file as .xls 2a - perfomr explicit renaming of the file using os.rename or shutil dirPath = r'C:\blah\blah\Ericsson' old_file = os.path.join(dirPath, "testnew3.xls") new_file = os.path.join(dirPath, "testnew4.xlsx") shutil.move(old_file, new_file ) though the renaming gets succeeded the file seems to get corrupted and not getting opened up. Advice please. TiA ! -- 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 #653759]: How to fetch the cell value of excel sheet
Question #653759 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/653759 Bharathi A posted a new comment: Thanks Manfred for those pointers ! -- 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 #678844]: switchApp() is no longer functional
Question #678844 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678844 Renke He gave more information on the question: Sorry for the typo. My java is java 8. And when I print the return of switchApp it gives me "[-1:myApp()]myApp". Is that normal? -- 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 1818043] [NEW] NullPointerException in new Screen() if mouse is on second screen
Public bug reported: Hi, I use 3 monitors in win 7 with sikulix-api 1.1.4 (This version was built at 2019-02-27_17:37 (Build 212) ) now if i start a new screen (screen = new Screen() ). I get a NullPointerException if my Mouse is in the 3rd Screen (windows screencounting) in the middle of the monitors. Is the mouse at this time on Screen 1 oder 3 (right and left outside) is all fine... The code is simple: public ScreenRobot() { screen = new Screen(); Exception in thread "main" java.lang.NullPointerException at org.sikuli.script.Location.getScreen(Location.java:130) at org.sikuli.script.Mouse.move(Mouse.java:391) at org.sikuli.script.Mouse.move(Mouse.java:372) at org.sikuli.script.Mouse.init(Mouse.java:60) at org.sikuli.script.Screen.initScreens(Screen.java:136) at org.sikuli.script.Screen.(Screen.java:169) at de.sm.ScreenRobot.(ScreenRobot.java:31) ** 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/1818043 Title: NullPointerException in new Screen() if mouse is on second screen Status in Sikuli: New Bug description: Hi, I use 3 monitors in win 7 with sikulix-api 1.1.4 (This version was built at 2019-02-27_17:37 (Build 212) ) now if i start a new screen (screen = new Screen() ). I get a NullPointerException if my Mouse is in the 3rd Screen (windows screencounting) in the middle of the monitors. Is the mouse at this time on Screen 1 oder 3 (right and left outside) is all fine... The code is simple: public ScreenRobot() { screen = new Screen(); Exception in thread "main" java.lang.NullPointerException at org.sikuli.script.Location.getScreen(Location.java:130) at org.sikuli.script.Mouse.move(Mouse.java:391) at org.sikuli.script.Mouse.move(Mouse.java:372) at org.sikuli.script.Mouse.init(Mouse.java:60) at org.sikuli.script.Screen.initScreens(Screen.java:136) at org.sikuli.script.Screen.(Screen.java:169) at de.sm.ScreenRobot.(ScreenRobot.java:31) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1818043/+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 #678844]: switchApp() is no longer functional
Question #678844 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678844 Status: Needs information => Open Renke He gave more information on the question: Thanks Mike. But unfortunately my OS is Ubuntu 14.04 and may java is java 8. -- 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 1817962] Re: intermittent error j < nsrcs && src[j].depth() == depth
It has nothing to do with the used image. It is a problem with the screenshot taken from regionArrows, when trying to convert the shot's BufferedImage into an OpenCV Mat object as base for the search. This might be caused internally by some image buffer access problems due to timing (buffer not yet completely filled on the Java image side, but already accessed by the OpenCV Mat logic). This normally does not make problems, but might do so in overload situations. I have not implemented any checks on such possible race situations. I keep this as a bug with low prio to be watched ** 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 => 1.1.4 ** Summary changed: - intermittent error j < nsrcs && src[j].depth() == depth + [1.1.4] OpenCV: BufferedImage to Mat: intermittent error j < nsrcs && src[j].depth() == depth ** Summary changed: - [1.1.4] OpenCV: BufferedImage to Mat: intermittent error j < nsrcs && src[j].depth() == depth + [1.1.4] OpenCV: ScreenShot BufferedImage to Mat: intermittent error j < nsrcs && src[j].depth() == depth -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1817962 Title: [1.1.4] OpenCV: ScreenShot BufferedImage to Mat: intermittent error j < nsrcs && src[j].depth() == depth Status in Sikuli: In Progress Bug description: I am trying to figure out this intermittent error that sometimes shows up after the script has run for some time: [error (27/02/2019, 17:38:38)] Error caused by: Traceback (most recent call last): File "C:\SikuliX\project.sikuli\project.py", line 884, in lookForExit() File "C:\SikuliX\project.sikuli\project.py", line 822, in lookForExit if regionArrows.exists(arrRB,0.5) and Dir == "L": ] at org.opencv.core.Core.mixChannels_0(Native Method) at org.opencv.core.Core.mixChannels(Core.java:1740) at org.sikuli.script.Finder2.makeMat(Finder2.java:494) at org.sikuli.script.Finder2.makeMat(Finder2.java:477) at org.sikuli.script.Finder.setScreenImage(Finder.java:144) at org.sikuli.script.Finder.initScreenFinder(Finder.java:139) at org.sikuli.script.Finder.(Finder.java:124) at org.sikuli.script.Region.doCheckLastSeenAndCreateFinder(Region.java:2938) at org.sikuli.script.Region.checkLastSeenAndCreateFinder(Region.java:2899) at org.sikuli.script.Region.doFind(Region.java:2846) at org.sikuli.script.Region.access$300(Region.java:21) at org.sikuli.script.Region$RepeatableFind.run(Region.java:3109) at org.sikuli.script.Region$Repeatable.repeat(Region.java:3060) at org.sikuli.script.Region.exists(Region.java:2376) at jdk.internal.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) org.opencv.core.CvException: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\core\src\channels.cpp:128: error: (-215:Assertion failed) j < nsrcs && src[j].depth() == depth in function 'cv::mixChannels' ] This is running on Windows 7 64 bit Standard SikuliX installation on 1.1.4 latest nightly build. No custom libraries or any fancy stuff. The "C:\build" does not exist on this machine, but not sure if that is a problem, it just refers to the original source file pre-compilation perhaps? I've attached the image file thats being used in that search function. Note that it was saved as PNG using Paint after it was cropped from the original SikuliX captured file. I don't see any other correlations with something else happening at the time these errors are thrown. They seem fairly random to me. Initial research suggest something to do with OpenCV mixChannels not accepting the particular image format/colour depth or so on. But It could be because something else of course? To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1817962/+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 #678800]: How to do screen comparison using sikuli ide?
Question #678800 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678800 Status: Solved => Open Abhinav Kumar is still having a problem: Thanks for helping...I had one more query.Is there anyway I can find out ,exactly what are the difference between the two screen images? -- 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 #678800]: How to do screen comparison using sikuli ide?
Question #678800 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678800 Status: Answered => Solved Abhinav Kumar confirmed that the question is solved: Thanks Asheru, 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 #678837]: Region: findAnyCollect: image file not found:
Question #678837 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678837 Status: Open => Answered RaiMan proposed the following answer: This either means, that the respective image file does not exist in the file system or is not accessible/locked somehow at this time. findAny() dispatches the search for the given images to threads, that run in parallel without any synchronisation. We only wait until all have finished. So you might have to revise your workflow with respect to timing. -- 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 1818040] [NEW] [1.1.4] OpenCV assertions should be handled by SikuliX (like image size > region size)
Public bug reported: Sometimes I get these errors: org.opencv.core.CvException: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings- win64-vc14-static\opencv\modules\imgproc\src\templmatch.cpp:1107: error: (-215:Assertion failed) _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate' Am I right in assuming they are to do with the region being too small or not fitting the image/pattern I am searching for when it is found? I think I am able to work around by extending/recapturing the region after which these errors stop. But I am not 100% certain. ** 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/1818040 Title: [1.1.4] OpenCV assertions should be handled by SikuliX (like image size > region size) Status in Sikuli: New Bug description: Sometimes I get these errors: org.opencv.core.CvException: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings- win64-vc14-static\opencv\modules\imgproc\src\templmatch.cpp:1107: error: (-215:Assertion failed) _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate' Am I right in assuming they are to do with the region being too small or not fitting the image/pattern I am searching for when it is found? I think I am able to work around by extending/recapturing the region after which these errors stop. But I am not 100% certain. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1818040/+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 #678838]: Assertion failed _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate'
Question #678838 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678838 Linked to bug: #1818040 https://bugs.launchpad.net/bugs/1818040 "[1.1.4] OpenCV assertions should be handled by SikuliX (like image size > region size)" -- 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 #678838]: Assertion failed _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate'
Question #678838 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678838 Status: Open => Answered RaiMan proposed the following answer: Yes, right: the region to search in is in one or both directions smaller than the image. But this problem should be detected by SikuliX itself before. I make it a bug. BTW: in another question you talked about the C:\build... folder: this is a reference to the original build environment, where the bundled native libraries where build. This seems to be recorded in the libs to doc the reference into the source files (.cpp) in such cases. -- 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 #653759]: How to fetch the cell value of excel sheet
Question #653759 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/653759 Manfred Hampl posted a new comment: @Bharati A: 1. Please do not piggyback on somebody else's question, but create a new question document for your problem. There is no way that the status of your problem can be tracked, because the original question document is already marked as "solved". 2. xlrd (Excel Read) provides functionality to READ information form excel files and does not allow changing them. You have to use other software. Maybe xlwt (Excel Write) can help with your 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 #678844]: switchApp() is no longer functional
Question #678844 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678844 Mike posted a new comment: On Windows 10 Build #211, with a copy of calc.exe in the Sikuli directory, the following code starts the calc application: switchApp("calc.exe") or a1 = openApp("calc.exe") or myApp = App("calc.exe") -- 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 #678844]: switchApp() is no longer functional
Question #678844 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678844 Status: Open => Needs information RaiMan requested more information: what system? what Java? -- 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 #653759]: How to fetch the cell value of excel sheet
Question #653759 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/653759 Bharathi A posted a new comment: Friends here is my case - Step 1: Fetch the value of a CELL from one Excel sheet status: success Step 2: Paste that value in another cell (say C30) in another Excel sheet status: Not success. Need help for acheiving Step 2. TiA ! -- 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