Re: [Sikuli-driver] [Question #272353]: Importing Python library smtplib
Question #272353 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272353 Status: Open => Answered RaiMan proposed the following answer: no idea. If this works with Python, then it seems to be a problem in the smtp module implementation in Jython 2.7. The alternative would be, to trigger a script run by Python via the run() command (see docs) in your SikuliX script, so you do not depend on the Jython smtp implementation. The external script could be completely built in your SikuliX script based on a template, then written to a file, which in turn is used with the Python command. -- 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 #272442]: Sikulix on Ubuntu in both: IntelliJ Idea IDE and built-in IDE
Question #272442 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272442 Status: Open => Answered RaiMan proposed the following answer: I do not have any experience with IntelliJ. You have to find out the correct setup by reading this: https://github.com/RaiMan/SikuliX-2014/wiki/Usage-in-Java-programming -- 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 #272434]: Sikuli 1.1.0 on CentOS7 --- wmctrl not working with plain X-session
Question #272434 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272434 Summary changed to: Sikuli 1.1.0 on CentOS7 --- wmctrl not working with plain X-session -- 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 #272434]: Sikuli 1.1.0 on CentOS7
Question #272434 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272434 Status: Open => Answered RaiMan proposed the following answer: the check, that fails at your side, internally is done with wmctrl -m which in your case terminates with an error. ... and as far as I understand, it needs some window manager to be running. The problem for you: There is no option currently available, to switch of the wmctrl usage (only needed with the App class features). I take this as a request bug and use this to start the nightly builds with version 1.1.1, where I will add the possibility to run without a working wmctrl (the respective App features will just do nothing in this case). -- 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 #272434]: [1.1.0] CentOS7: wmctrl not working with plain X-session
Question #272434 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272434 Summary changed to: [1.1.0] CentOS7: wmctrl not working with plain X-session -- 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 #272353]: Importing Python library smtplib
Question #272353 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272353 Status: Answered => Solved Gary Yiu confirmed that the question is solved: Thanks Raimund! 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
[Sikuli-driver] [Question #272434]: Status of bug #1506359 changed to 'Fix Committed' in Sikuli
Bug #1506359 status changed in Sikuli: New => Fix Committed https://bugs.launchpad.net/sikuli/+bug/1506359 "[1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only block App class usage" This bug is linked to #272434. [1.1.0] CentOS7: wmctrl not working with plain X-session https://answers.launchpad.net/sikuli/+question/272434 -- 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 #272434]: [1.1.0] CentOS7: wmctrl not working with plain X-session
Question #272434 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272434 Linked to bug: #1506359 https://bugs.launchpad.net/bugs/1506359 "[1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only block App class usage" -- 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 1506359] [NEW] [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only block App class usage
Public bug reported: Trying to run Sikuli 1.1.0 on CentOS7 Managed to get all required RPMs installed an running the following on a remote server forwarding the X session via SSH to a local Windows-based X server (XLaunch) Managed to run the setup, after that I am getting as follows: [sikuli@localhost src]$ ./runsikulix running SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar ./sikulix.jar [info] runcmd: lsb_release -i -r -s [error] RunTimeINIT: fatal error: java.io.IOException: Cannot run program "lsb_release": error=2, No such file or directory [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3) [info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9) [error] RunTimeIDE: *** terminating: command 'wmctrl' is not executable please check the Availability! [sikuli@localhost src]$ which wmctrl /usr/bin/wmctrl [sikuli@localhost src]$ wmctrl -V 1.07 [sikuli@localhost src]$ Cant really figure out this one - could this be a case of wmctrl requiring some kind of desktop environment or windows management system running? Im running raw X session - nothing on top of it and could run Setup just fine. Thanks, Marcel ** Affects: sikuli Importance: High Assignee: RaiMan (raimund-hocke) Status: Fix Committed ** Changed in: sikuli Status: New => Fix Committed ** Changed in: sikuli Importance: Undecided => High ** Changed in: sikuli Assignee: (unassigned) => RaiMan (raimund-hocke) ** Changed in: sikuli Milestone: None => 1.1.1 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1506359 Title: [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only block App class usage Status in Sikuli: Fix Committed Bug description: Trying to run Sikuli 1.1.0 on CentOS7 Managed to get all required RPMs installed an running the following on a remote server forwarding the X session via SSH to a local Windows- based X server (XLaunch) Managed to run the setup, after that I am getting as follows: [sikuli@localhost src]$ ./runsikulix running SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar ./sikulix.jar [info] runcmd: lsb_release -i -r -s [error] RunTimeINIT: fatal error: java.io.IOException: Cannot run program "lsb_release": error=2, No such file or directory [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3) [info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9) [error] RunTimeIDE: *** terminating: command 'wmctrl' is not executable please check the Availability! [sikuli@localhost src]$ which wmctrl /usr/bin/wmctrl [sikuli@localhost src]$ wmctrl -V 1.07 [sikuli@localhost src]$ Cant really figure out this one - could this be a case of wmctrl requiring some kind of desktop environment or windows management system running? Im running raw X session - nothing on top of it and could run Setup just fine. Thanks, Marcel To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1506359/+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 #272434]: [1.1.0] CentOS7: wmctrl not working with plain X-session
Question #272434 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272434 Marcel Hecko posted a new comment: Yeah, the result here is as follows: [sikuli@localhost ~]$ wmctrl -m Cannot get window manager info properties. (_NET_SUPPORTING_WM_CHECK or _WIN_SUPPORTING_WM_CHECK) [sikuli@localhost ~]$ echo $? 1 Ill try to run some window manager to make this work. Im not familiar with the internals of SikuliX - what will happen with 1.1.1 then when wmctl is not available? Which features are tied to working wmctl? Thanks a lot! Marcel -- 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 #272170]: [1.1.0] Running JRuby scripts: JythonSupport: Not possible to get a Jython on to the classpath!
Question #272170 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272170 Status: Answered => Solved Serge confirmed that the question is solved: I have created test.rb with the following lines inside: require 'sikulix' include Sikulix popup("Hello") It works without any errors. After require 'sikulix' and include Sikulix were removed from test.rb I got the same errors like discribed above. So it looks that for the new .jar I should include these lines in any of my .rb files. In an old version it was enough to use it in env.rb only. Thanks ) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #271892]: Screen initialized with VNC
Question #271892 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271892 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #272434]: [1.1.0] CentOS7: wmctrl not working with plain X-session
Question #272434 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272434 Marcel Hecko posted a new comment: I have managet wo jur yum install icewm, started icewm WM and SikuliX 1.1.0 now runs just fine. I reckon not to actually bypass this check - just put some information into the debug logfile that WM is needed to run SikuliX - otherwise it can be really confusing if some of the features are no available in SikuliX for this particular reason. -- 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 #272434]: [1.1.0] CentOS7: wmctrl not working with plain X-session
Question #272434 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272434 Status: Answered => Solved RaiMan changed the question status: Thanks. When the fix is ready, I will give you a note so you can have a look. -- 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 #272457]: path and sikuli home from application
New question #272457 on Sikuli: https://answers.launchpad.net/sikuli/+question/272457 Hello, In my application i copied sikuli installed folder. path and sikuli_home setted from this location in eclipse using run configuration, this is working fine. but when i created a jar from my code how to refer path and sikuli_home which is copied to my application. -- 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 1505614] Re: [1.1.0] debug logging stops with ALT-SHIFT-C
No, I'm still on Windows 7. I'm talking about a game. ;-) I run my games full-screen windowed so I can use my second monitor for everything else (like the Sikuli IDE). -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1505614 Title: [1.1.0] debug logging stops with ALT-SHIFT-C Status in Sikuli: Opinion Bug description: With 1.1.0 on Win7, when I abort a Python script with ALT-SHIFT-C, I see the below from the SikulixIDE (running with -c -d 3), and it stops logging debug output. I have to restart the IDE to get the logging back. [debug] AbortKey was pressed [debug] AbortKey was pressed, but nothing to stop here ;-) [debug] Sikulix: cleanUp: 0 java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at java.awt.Robot.delay(Unknown Source) at org.sikuli.script.RobotDesktop.delay(RobotDesktop.java:227) at java.awt.Robot.autoDelay(Unknown Source) at java.awt.Robot.afterEvent(Unknown Source) at java.awt.Robot.mouseRelease(Unknown Source) at org.sikuli.script.RobotDesktop.doMouseUp(RobotDesktop.java:90) at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:201) at org.sikuli.script.Mouse.up(Mouse.java:392) at org.sikuli.script.Mouse.up(Mouse.java:376) at org.sikuli.script.Mouse.reset(Mouse.java:103) at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:485) at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2385) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1505614/+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 1505614] Re: [1.1.0] debug logging stops with ALT-SHIFT-C
ok. understood. I will check. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1505614 Title: [1.1.0] debug logging stops with ALT-SHIFT-C Status in Sikuli: Opinion Bug description: With 1.1.0 on Win7, when I abort a Python script with ALT-SHIFT-C, I see the below from the SikulixIDE (running with -c -d 3), and it stops logging debug output. I have to restart the IDE to get the logging back. [debug] AbortKey was pressed [debug] AbortKey was pressed, but nothing to stop here ;-) [debug] Sikulix: cleanUp: 0 java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at java.awt.Robot.delay(Unknown Source) at org.sikuli.script.RobotDesktop.delay(RobotDesktop.java:227) at java.awt.Robot.autoDelay(Unknown Source) at java.awt.Robot.afterEvent(Unknown Source) at java.awt.Robot.mouseRelease(Unknown Source) at org.sikuli.script.RobotDesktop.doMouseUp(RobotDesktop.java:90) at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:201) at org.sikuli.script.Mouse.up(Mouse.java:392) at org.sikuli.script.Mouse.up(Mouse.java:376) at org.sikuli.script.Mouse.reset(Mouse.java:103) at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:485) at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2385) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1505614/+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 #272457]: path and sikuli home from application
Question #272457 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272457 Status: Open => Answered RaiMan proposed the following answer: You should upgrade to 1.1.0 (http://sikulix.com). Does not need any pointers to anything in the environment. The reference to sikulixapi.jar on Java class path is sufficient. With your jar outside Eclipse just use java -cp /sikulixapi.jar your-app.jar -- 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 #272460]: detecting colors
New question #272460 on Sikuli: https://answers.launchpad.net/sikuli/+question/272460 I need to determine whether a region has one (background) color or another -- an active button vs. a disabled button. I can narrow the search to the button's general region, so there aren't any other possible buttons to find. If I set the similarity too low, Sikuli finds both types of button. If I set it too high, it doesn't find either… and the line between the two doesn't seem to be stable. Sometimes it will work, sometimes not. I see the below two questions, in which you suggest doing a second check just for the color of the found region/image. Is this still the best thing to do? If so, is it possible in Python? I don't see much in the API in the way of color. There are other similar, but more complex, cases in which I need to determine the color of some (foreground) text -- that would be good enough even if I can't (currently) OCR it (it's also quite small). Sikuli also seems to have trouble matching images of the colored text -- again, it can't tell the colors apart. It seems like maybe the background color is dominating the comparison. (… which makes me wonder if it's possible to use transparent colors to tell Sikuli to ignore those pixels / parts of the image?) Tangentially, is it possible in Python or Java to get direct access to the OpenCV that Sikuli is using? https://answers.launchpad.net/sikuli/+question/145806 https://answers.launchpad.net/sikuli/+question/176332 -- 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 1505614] Re: [1.1.0] debug logging stops with ALT-SHIFT-C
Thanks :) -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1505614 Title: [1.1.0] debug logging stops with ALT-SHIFT-C Status in Sikuli: Opinion Bug description: With 1.1.0 on Win7, when I abort a Python script with ALT-SHIFT-C, I see the below from the SikulixIDE (running with -c -d 3), and it stops logging debug output. I have to restart the IDE to get the logging back. [debug] AbortKey was pressed [debug] AbortKey was pressed, but nothing to stop here ;-) [debug] Sikulix: cleanUp: 0 java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at java.awt.Robot.delay(Unknown Source) at org.sikuli.script.RobotDesktop.delay(RobotDesktop.java:227) at java.awt.Robot.autoDelay(Unknown Source) at java.awt.Robot.afterEvent(Unknown Source) at java.awt.Robot.mouseRelease(Unknown Source) at org.sikuli.script.RobotDesktop.doMouseUp(RobotDesktop.java:90) at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:201) at org.sikuli.script.Mouse.up(Mouse.java:392) at org.sikuli.script.Mouse.up(Mouse.java:376) at org.sikuli.script.Mouse.reset(Mouse.java:103) at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:485) at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2385) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1505614/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #272465]: Troulbe finding the screen # from App.focusedWindow?
New question #272465 on Sikuli: https://answers.launchpad.net/sikuli/+question/272465 I'm simply trying to find the screen number that I am focused on. PathChrome = "C:\Users\staffos\AppData\Local\Google\Chrome\Application\chrome.exe" firstWindow = App.focusedWindow() firstwindow = str(firstWindow) print firstWindow #firstWindow = "R[-1600,0 1600x900]@S(1)[-1600,0 1600x900] E:Y, T:3.0" # this works when put in manually screenNum = firstWindow[firstWindow.find("(")+1:firstWindow.find(")")] print screenNum I can print firstWindow just fine. I can even search it's text just fine when I put it in manually, but for whatever reason I can't seem to get the code to work. Any insight is appreciated. 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 #272469]: Regarding Maven, jxgrabkey, and the current site http://mvn.is.inf.uni-due.de:8081
New question #272469 on Sikuli: https://answers.launchpad.net/sikuli/+question/272469 Our company blocks http://mvn.is.inf.uni-due.de:8081 so currently there is no way for us to access sikuilix via api. I realize this is a long shot but is there any possibility of that being changed in the future. In searching through the questions on this site I did see that one other person experienced the same issue and was able to change proxies. Unfortunately that is not an option for us. I believe on our end it has to due with the port 8081 since I'm able to hit http://mvn.is.inf.uni-due.de Currently we have sikulix manually installed into our local maven repos and were hoping to simplify things some. Thank you, Roc -- 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 #272469]: Regarding Maven, jxgrabkey, and the current site http://mvn.is.inf.uni-due.de:8081
Question #272469 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272469 Status: Open => Answered RaiMan proposed the following answer: Just checked: http://mvn.is.inf.uni-due.de ... with this address as start of the repo url, the pom and jar are not loaded. You should not install the sikulix stuff locally, but only JXGrabkey. I can send you the jar and the pom, if you send me a mail address to sikulix---at---outlook---dot---com. -- 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 #272460]: detecting colors
Question #272460 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272460 Status: Open => Answered Eugene Maslov proposed the following answer: Hello Entity, I can help with distinguishing the colors. My findWithColor procedure finds an image with at least one pixel of exact color in the probe rectangle inside the image. So you may set, for example, gray target color for disabled menus and black color for active menus. Debug mode allows seeing in the output the colors to select the target from. import java.awt.Robot as jRobot import java.awt.Color as Color from sikuli import * class RegionM(Region): def findWithColor(self, img, color=Color(255,255,255), probe=[0,0,1,1],debug=False): #probe=[top,left,width,height,0] from topleft myRobot=jRobot() res=False found=self.findAll(img) if not found: return False foundcolor=False for but in found: for myy in range(but.getTopLeft().y+probe[1],but.getTopLeft().y+probe[1]+probe[3]): for myx in range(but.getTopLeft().x+probe[0],but.getTopLeft().x+probe[0]+probe[2]): myColor=myRobot.getPixelColor(myx, myy) if debug: print "color at "+str(myx)+":" +str(myy)+":",myColor if myColor==color: foundcolor=True res=but if not debug: break if foundcolor: if not debug: break if foundcolor: if not debug: break return(res) #usage: myreg=RegionM(SCREEN).findWithColor("ie1.png", color=Color(240,240,231), probe=[1,1,2,2], debug=True) #then set debug=False mouseMove(myreg) This piece of code is a part of an extended RegionM object, that I use for for simplicity of scripts. Please just remove the object notation if you don't need it. And, partially concerning the other question, as far as I tried before, there is no sense to make whole background or foreground of letters transparent: then solid areas, filled with a color similar to remaining non-transparent color, are selected instead of the letters. -- 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 #272485]: Jython errors with "terminating: JythonHelper: No Jython on classpath" for Mac
Question #272485 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272485 Description changed to: I've tried several different ways to get this to work appropriately but am coming up short. rwilliams15m:bin raywilliams$ jython Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_45 Type "help", "copyright", "credits" or "license" for more information. >>> import org.sikuli.basics. SikulixForJython [error] RunTimeAPI: *** terminating: JythonHelper: no Jython on classpath rwilliams15m:bin raywilliams$ echo $CLASSPATH /Library/Java/Extensions/sikulixapi.jar The jython instance crashes immediately after sending the import org.sikuli.basicas SikulixForJython -- 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 #272485]: Jython errors with "terminating: JythonHelper: No Jython on classpath" for Mac
New question #272485 on Sikuli: https://answers.launchpad.net/sikuli/+question/272485 I've tried several different ways to get this to work appropriately but am coming up short. ``` rwilliams15m:bin raywilliams$ jython Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_45 Type "help", "copyright", "credits" or "license" for more information. >>> import org.sikuli.basics. SikulixForJython [error] RunTimeAPI: *** terminating: JythonHelper: no Jython on classpath rwilliams15m:bin raywilliams$ echo $CLASSPATH /Library/Java/Extensions/sikulixapi.jar ``` The jython instance crashes immediately after sending the `import org.sikuli.basicas SikulixForJython` -- 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