Re: [Sikuli-driver] [Question #242941]: How to run a batch file in foreground using sikuli
Question #242941 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242941 RaiMan proposed the following answer: the key to success is the statement: App.open( 'CMD /k start \"' + title + '\" ' + cmd ) which could be written also as: App.open( 'CMD /k start "' + title + '" ' + cmd) App.open(text_parameter) is the used function, which goes down to the system and advises to run the program given as text_parameter (something as you might write it on the command line). so for your case, as a one time usage you could have written: C:\sikuli\something.bat App.open( 'CMD /k start "Running something.bat" "C:\sikuli\something.bat" ') The special setting obiwan used, was only to make it reusable. the call to App.open() is put in a function, that can now be used from everywhere, by simply giving the 2 variables as strings when calling the function, so with App.open( 'CMD /k start "' + title + '" ' + cmd) the given parameters are assembled with the fixed parts to the final command to be used. So in this case the + is used as the concatenation operator for strings. A word about quoting (using apostrophes): in Python there are basically 2 quoting characters: " double quote (DQ) and ' single quote (SQ) if in a string you need as part of the text one of these quoting characters, then you either have to use the other as string delimiter or you have to escape the quote with a \ backslash (what obi wan has done, though not necessary in this case). all this works: 1. SQDQSQ 2. DQSQDQ 3. DQSQ\DQSQDQ 4. SQ\SQDQ\SQSQ SQ and DQ are used here only for better readability, replace with ' and " My solution would have used the % operator, that allows string formatting using variables and I would suggest, to quote the given command too, since this might contain blanks too: App.open( 'CMD /k start "%s" "%s"' % (title, cmd)) the %s are placeholders, that are replaced with the given variables after the % in a list () from left to right. the advantage: the %x placeholders have some more options, that allows to pimp up the final string. -- 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 #242941]: How to run a batch file in foreground using sikuli
Question #242941 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242941 RaiMan proposed the following answer: ps, made the same mistake again: App.open(r 'CMD /k start "Running something.bat" "C:\sikuli\something.bat" ') the contained \ have either to be escaped as \\ or the string has to be set as raw string with r'...' -- 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 #242990]: Unsure of how to actually run a .skl file
Question #242990 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242990 Status: Open => Solved Test confirmed that the question is solved: Never mind, just figured out how to do it. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #242990]: Unsure of how to actually run a .skl file
New question #242990 on Sikuli: https://answers.launchpad.net/sikuli/+question/242990 Hey there, I have a file named script.skl. How do I run the file? I've tried this command in the command prompt: "C:\Program Files (x86)\TestScript\sikuli-ide.jar" -r C:\Program Files (x86)\TestScript\script.skl But a popup window appears titled "SikuliX: collect runtime options" even though I already specified to run the .skl file. Even so, if I try specifying it again, nothing happens and the IDE never starts up that way. Running on Windows 8 and JRE version 6. Any help is appreciated. Thanks. -- 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 #242935]: Game Testing - Click not always working
Question #242935 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242935 RaiMan posted a new comment: yes, sorry, the docs are still behind. but I promise to get better here also ;-) thanks for feedback -- 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 #242975]: How do I connect SikuliX IDE to MySQL using zxJDBC
Question #242975 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242975 Status: Open => Answered RaiMan proposed the following answer: there currently is a parallel question on that: https://answers.launchpad.net/sikuli/+question/242920 -- 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 #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 Status: Open => Answered RaiMan proposed the following answer: On the class path you need java -cp "%cp%;C:\apps\SikuliX\sikuli-java.jar" org.python.util.jython and you need the jar internal Lib folder to be on Jython sys.path: so to activate Sikuli with version 1.0.1 in this situation: import org.sikuli.basics.SikuliXforJython from sikuli import * (as mentioned here: https://github.com/RaiMan/SikuliX-API/wiki/Usage-in- Java-programming) -- 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 #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 RaiMan proposed the following answer: parallel threads might be the problem. many parts of Sikuli are not thread safe and Tesseract (the OCR feature) has problems with parallel usage of the library. So some coordination should help. -- 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 #242941]: How to run a batch file in foreground using sikuli
Question #242941 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242941 Rubynator posted a new comment: This works flawlessly, Thank you obiwan-92 and RaiMan. I'm new to Sikuli, assuming this is a chunk of python code. Correct? For a better understanding can you explain the above code step by step. -- 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 #242935]: Game Testing - Click not always working
Question #242935 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242935 Status: Answered => Solved MicMarcil confirmed that the question is solved: The Settings.ClickDelay was the answer to my problem. Thank you very much ! I've struggled several hours before posting here. Should have done that in the first place :) I notice the documentation on the website only reference 1.0.0 functions and fields. Am I wrong ? I never found the ClickDelay field in the documentation, here: http://doc.sikuli.org/globals.html -- 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 #242935]: Game Testing - Click not always working
Question #242935 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242935 MicMarcil 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
[Sikuli-driver] [Question #242975]: How do I connect SikuliX IDE to MySQL using zxJDBC
New question #242975 on Sikuli: https://answers.launchpad.net/sikuli/+question/242975 In the "Can I do X or Y or Z in Sikuli?" there is a bit about connecting sikuli to a database. Anyway, my goal is to make the following script run: from com.ziclix.python.sql import zxJDBC db = zxJDBC.connect("jdbc:mysql//localhost/core", "mmsdev", "clar1838ity", "com.mysql.jdbc.Driver", CHARSET='iso_1') I've copied the mysql-connector-java-3.1.14-bin.jar file into sikuli's libs directory. I've added an entry to the classpath in the runIDE.cmd script I've tried adding the classpath entry inside my sikuli script In all cases, I get: [error] zxJDBC.DatabaseError ( driver [com.mysql.jdbc.Driver] not found ) What do I need to do in order to make this work? -- 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 #242975]: How do I connect SikuliX IDE to MySQL using zxJDBC
Question #242975 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242975 Description changed to: In the "Can I do X or Y or Z in Sikuli?" there is a bit about connecting sikuli to a database. Anyway, my goal is to make the following script run: from com.ziclix.python.sql import zxJDBC db = zxJDBC.connect("jdbc:mysql//localhost/core", "xxx", "xxx", "com.mysql.jdbc.Driver", CHARSET='iso_1') I've copied the mysql-connector-java-3.1.14-bin.jar file into sikuli's libs directory. I've added an entry to the classpath in the runIDE.cmd script I've tried adding the classpath entry inside my sikuli script In all cases, I get: [error] zxJDBC.DatabaseError ( driver [com.mysql.jdbc.Driver] not found ) What do I need to do in order to make this work? -- 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 #149687]: How to access MySQL database?
Question #149687 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/149687 Peter Spierenburg requested more information: This link appears to be broken. I could really use a solution to this problem. -- 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 #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 rod gave more information on the question: Why sikuli module is not found ? -- 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 #185791]: How to run "Sikuli On Virtual Machines"
Question #185791 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/185791 BobotzZz posted a new comment: Hi and thanks for replying, I have searched the www and I have found many posts with Sikuli and Jenkins, but all are pointing to questions without answers (and this problem kind of passes over this integration problem)... So far I have learned that if I connect trough RDC (in Remote Desktop Services Manager) the session is RDP-Tcp#0 and if I connect through VNC it is Console. Now when the session is linked to the Console, my Sikuli (1.0.1, java version 1.6.0_33) test also fails. I have tried this from Jenkins (using tscon [sessionID] /dest:console) and from TightVNC (connecting directly, seeing the session is console, running SikuliIDE and starting the tests), both times Sikuli fails in finding... Is there any way making Sikuli work in a "console" Session? -- 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 #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 Status: Answered => Open rod is still having a problem: OK, now it's more clear to me. 1) I downloaded the java mysql connector and added an env variable : CLASSPATH = C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-connector-java-5.1.28-bin 2) I downloaded a standalone jython-standalone-2.5.3.jar in "C:\Jython" and : set cp=C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-connector-java-5.1.28-bin.jar set cp=%cp%;C:\Jython\jython-standalone-2.5.3.jar 3) I opened a Jython session with : java -cp "%cp%;C:\apps\SikuliX" org.python.util.jython >>> con = zxJDBC.connect(j, u, p, m) and I could connect to my Mysql database and make same select without problems !! 4) Then I tried to import sikuli : >>> from sikuli import * Traceback (most recent call last): File "", line 1, in ImportError: No module named sikuli -- 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 #232900]: [1.0] [HowTo] turn on text recognition --- solution
Question #232900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/232900 RaiMan posted a new comment: @comment #7 There are surely some possibilities to get some good-quality OCR. The nearest one: If you want to try to do OCR yourself from within a Java program, you should have a look at Tess4J (Tesseract wrapper using JNA) http://tess4j.sourceforge.net. I am planning to use this in the next SikuliX version 1.2 instead of the native stuff. It seems to be rather actual (09/2013 basing on Tesseract 3.02). Currently I cannot tell you, how you feed your images captured with Sikuli to Tess4J. But if you decide, to try this way, I will surely help you to get on the road. In this case, you should start to communicate with me directly using the mail button at sikulix.com top right with reference to this 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 #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 luislirola posted a new comment: hm... my app all the time reading text from screen or looking for match of picture in 4 parallel threads( in 4 different windows of screen)...maybe i should synchronize textreading or screencapturing? -- 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 #242959]: Unable to execute Sikuli Script
Question #242959 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242959 Status: Open => Answered RaiMan proposed the following answer: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x8002. Windows RegCreateKeyEx(...) returned error code 5. ignore this for now, not the cause for the problem (are you using Windows 8 ??) DO NOT set environment variables yourself: no SIKULI_HOME or SIKULIX_HOME no path entry for any Sikuli stuff purge everything in the settings related to Sikuli and reboot. Now run SikuliX again. You will probably get the above note again: [error] ResourceLoaderBasic: checkLibsDir: Logout and Login again! (Since libs folder is in user's path, but not activated) So just do what SikuliX is trying to tell you ;-) - log out of your session and login again to refresh the environment (or reboot if you like). -- 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 #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 RaiMan requested more information: So you are doing a series of Region.text() calls, that work ok (with the known problems of OCR quality) until a certain point: some logging debug] Region: init: (500, 248, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=500,y=248,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=908,y=674,width=70,height=25] [debug] Region.text: #($0.11)# [debug] Region: init: (991, 657, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=991,y=657,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=500,y=248,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (450, 280, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=450,y=280,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=991,y=657,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=450,y=280,width=70,height=25] ... so what is the special situation at this point of your workflow? -- 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 #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 RaiMan proposed the following answer: please stop posting Java dumps - they do not help anything but cluttering this forum. -- 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 #242959]: Unable to execute Sikuli Script
New question #242959 on Sikuli: https://answers.launchpad.net/sikuli/+question/242959 I have installed Sikuli, when I run my Script, I am getting following error Jan 29, 2014 4:19:50 PM java.util.prefs.WindowsPreferences WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x8002. Windows RegCreateKeyEx(...) returned error code 5. [error] ResourceLoaderBasic: checkLibsDir: libs dir is not on system path: C:\Users\abilash_babu\Desktop\Abilash\SikuliTest\lib\libs [action] ResourceLoaderBasic: checkLibsDir: Please wait! Trying to add it to user's path [info] runcmd: reg QUERY HKCU [info] runcmd: reg QUERY HKEY_CURRENT_USER\Environment /v PATH [error] ResourceLoaderBasic: checkLibsDir: Logout and Login again! (Since libs folder is in user's path, but not activated) [error] Terminating SikuliX after a fatal error! 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. Please help me out on this. I have installed Sikuli in user writtable folder. I have given path and Sikuli Home in Environmental variables -- 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 #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 Description changed to: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x68ba7bc5, pid=122392, tid=18316 # # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [libtesseract-3.dll+0x1a7bc5] -- 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 #232900]: [1.0] [HowTo] turn on text recognition --- solution
Question #232900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/232900 RaiMan posted a new comment: at comment #6: I got your mail and made my tests on your shot. I did not really have problems to read the texts on the shot, but the current version has problems with number only text like in your right column. And these kind of "one-pixel" fonts are a real challenge for Tesseract principally. This is the most important thing with Sikuli's Region.text(): the image used for OCR should only contain one line of text without any surrounding pixel clutter. Your image contains the upper border of the text field. To simply make some OCR tests on the screen, I use this one-liner in a separate tab in the IDE: print "]" + selectRegion().text() + "[" this will allow you to interactively select some text on the screen and instantly see the result. in a script, you have to add some additional adjustments for the region (have a look at the function Region.grow() in Java), to avoid pixel clutter. If the OCR quality is not sufficient for you, then you do not have a chance to improve it currently. If you find some rules for the bads, then you might try to compensate them by scripting. -- 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 #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 luislirola posted a new comment: and this i have in console with debug before error [debug] Region.text: #()# [debug] Region: init: (395, 664, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=395,y=664,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=395,y=664,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (467, 689, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=467,y=689,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=467,y=689,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (500, 767, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=500,y=767,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=500,y=767,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (450, 799, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=450,y=799,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=450,y=799,width=70,height=25] [debug] Region.text: #()# needed_bet2= 18.0 highest_stack= 76.5 [debug] Region: init: (100, 969, 10, 10) 7s 7h f [log] TYPE "f" [debug] Robot: doType: F ( 70 ) f in 80 Pre_flop - Pre_flop_action [debug] Region: init: (325, 295, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=325,y=295,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=325,y=295,width=70,height=25] [debug] Region.text: #($0.02)# [debug] Region: init: (203, 281, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=203,y=281,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=203,y=281,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (145, 245, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=145,y=245,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=145,y=245,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (190, 155, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=190,y=155,width=70,height=25] [debug] Region: init: (1043, 814, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=1043,y=814,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=190,y=155,width=70,height=25] [debug] Region.text: #($0.06)# [debug] Region: init: (273, 138, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=273,y=138,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=1043,y=814,width=70,height=25] [debug] Region.text: #($0.02)# [debug] Region: init: (921, 800, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=921,y=800,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=273,y=138,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (395, 145, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=395,y=145,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=921,y=800,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (863, 764, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=863,y=764,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=395,y=145,width=70,height=25] [debug] Region.text: #($0.06)# [debug] Region: init: (467, 170, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=467,y=170,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=863,y=764,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (908, 674, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=908,y=674,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=467,y=170,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (500, 248, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=500,y=248,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=908,y=674,width=70,height=25] [debug] Region.text: #($0.11)# [debug] Region: init: (991, 657, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=991,y=657,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=500,y=248,width=70,height=25] [debug] Region.text: #()# [debug] Region: init: (450, 280, 70, 25) [debug] Screen.capture: java.awt.Rectangle[x=450,y=280,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=991,y=657,width=70,height=25] [debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=450,y=280,width=70,height=25] # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x68ba7bc5, pid=9120, tid=10352 # # JRE version: 6.0_35-b10 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.10-b01 mixed mode windows-amd64 compressed oops) # Probl
Re: [Sikuli-driver] [Question #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 luislirola posted a new comment: ok i added debug in code - # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x68ba7bc5, pid=9120, tid=10352 # # JRE version: 6.0_35-b10 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.10-b01 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [libtesseract-3.dll+0x1a7bc5] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --- T H R E A D --- Current thread (0x07d21000): JavaThread "Thread-3" [_thread_in_native, id=10352, stack(0x0973,0x0983)] siginfo: ExceptionCode=0xc005, reading address 0x0d54 Registers: RAX=0x0006, RBX=0x0d50, RCX=0x09827fc0, RDX=0x0d50 RSP=0x09827f50, RBP=0x09ad5e20, RSI=0x09828070, RDI=0x07dab270 R8 =0x09828070, R9 =0x00015b630002001e, R10=0x0003, R11=0x199c R12=0x09828080, R13=0x09edd7a0, R14=0x14f27a40, R15=0x14d3fba0 RIP=0x68ba7bc5, EFLAGS=0x00010206 Top of Stack: (sp=0x09827f50) 0x09827f50: 09edd7a0 6a660877 0x09827f60: 00a7 004e 0x09827f70: 68bea6b0 68c2c874 0x09827f80: 0d50 68ba7fbe 0x09827f90: 09827e60 09edd7a0 0x09827fa0: 14f27a40 09828080 0x09827fb0: 6a662dc0 6a663f14 0x09827fc0: 09827ff0 6a660888 0x09827fd0: 0046 07daacf0 0x09827fe0: 07dab270 0046 0x09827ff0: 07daacf0 68b56eb6 0x09828000: 09edd7a0 09ad5e20 0x09828010: 0046 09828080 0x09828020: 07daacf0 0a111d30 0x09828030: 14d3fba0 14d03b80 0x09828040: 14d3fba0 Instructions: (pc=0x68ba7bc5) 0x68ba7ba5: 89 01 48 8b 49 10 49 39 cb 75 c0 5b c3 66 66 66 0x68ba7bb5: 66 66 2e 0f 1f 84 00 00 00 00 00 53 48 83 ec 30 0x68ba7bc5: 44 0f bf 4a 04 44 0f bf 42 06 49 89 d2 0f bf 12 0x68ba7bd5: 48 89 cb 41 0f bf 42 02 89 44 24 20 e8 fa f4 01 Register to memory mapping: RAX=0x0006 is an unknown value RBX=0x0d50 is an unknown value RCX=0x09827fc0 is pointing into the stack for thread: 0x07d21000 RDX=0x0d50 is an unknown value RSP=0x09827f50 is pointing into the stack for thread: 0x07d21000 RBP=0x09ad5e20 is an unknown value RSI=0x09828070 is pointing into the stack for thread: 0x07d21000 RDI=0x07dab270 is an unknown value R8 =0x09828070 is pointing into the stack for thread: 0x07d21000 R9 =0x00015b630002001e is an unknown value R10=0x0003 is an unknown value R11=0x199c is an unknown value R12=0x09828080 is pointing into the stack for thread: 0x07d21000 R13=0x09edd7a0 is an unknown value R14=0x14f27a40 is an unknown value R15=0x14d3fba0 is an unknown value Stack: [0x0973,0x0983], sp=0x09827f50, free space=991k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libtesseract-3.dll+0x1a7bc5] ZNK8TESSLINE12bounding_boxEv+0x5 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.sikuli.basics.proxies.VisionProxyJNI.Vision_recognize(JLorg/sikuli/basics/proxies/Mat;)Ljava/lang/String;+0 j org.sikuli.basics.proxies.Vision.recognize(Lorg/sikuli/basics/proxies/Mat;)Ljava/lang/String;+5 j org.sikuli.script.TextRecognizer.recognize(Ljava/awt/image/BufferedImage;)Ljava/lang/String;+13 j org.sikuli.script.TextRecognizer.recognize(Lorg/sikuli/script/ScreenImage;)Ljava/lang/String;+7 j org.sikuli.script.Region.text()Ljava/lang/String;+54 j Prog.actions.Bets.(Ljava/util/List;Ljava/lang/Integer;)V+114 j Prog.actions.Call_20.(Ljava/util/Map;)V+175 j Prog.actions.Steal.(Ljava/util/Map;)V+437 j Prog.actions.Pre_flop_action.(Ljava/util/Map;)V+2310 j Prog.actions.Pre_flop_action.(Ljava/util/Map;)V+2366 j Prog.actions.Steal.(Ljava/util/Map;)V+596 j Prog.actions.Pre_flop_action.(Ljava/util/Map;)V+2310 j Prog.actions.Pre_flop_action.(Ljava/util/Map;)V+2366 j Prog.actions.Pre_flop_action.(Ljava/util/Map;)V+2366 j Prog.actions.Steal.(Ljava/util/Map;)V+540 j Prog.actions.Pre_flop_action.(Ljava/util/Map;)V+2310 j Prog.actions.Steal.(Ljava/util/Map;)V+54
Re: [Sikuli-driver] [Question #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 RaiMan proposed the following answer: another option is to use the following line in another bat: java -cp "%cp%;--ref-to-sikuli-jar--" org.python.util.jython this will start an interactive Jython session, where you could enter Jython stuff line by line and might find out this way, what's wrong and for the script I would recommend this sequence: from com.ziclix.python.sql import zxJDBC j = 'jdbc:mysql://localhost:3306/BinckAutoTest' u = 'root' p = 'mypassword' m = 'com.mysql.jdbc.Driver' try: con = zxJDBC.connect(j, u, p, m) except Exception, e: print "database connection issue : ", e exit() from sikuli import * So Sikuli stuff is only touched, if the connection is successful. -- 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 #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 Status: Open => Answered RaiMan proposed the following answer: I know, but in the bat, the only command doing something is the java command, that is advised, to load the class org.python.util.jython from class path, which is the Jython interpreter, that should be in your C:\tmp\jython.jar (assuming this is the correct one). since you have a ref to a .py file on the java command, the Jython interpreter will try to run it and hence the first thing he will do: from sikuli import * ... writing this, I just realised, that you do not have a ref to a Sikuli jar in your class path and since %cp% in the end contains blanks: java -cp "%cp%;--ref-to-sikuli-jar--" org.python.util.jython %1.sikuli\%1.py where --ref-to-sikuli-jar-- must be for RC3: the absolute path to sikuli-script.jar version 1.0.1: the absolute path to sikuli-java.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 #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 Status: Needs information => Open rod gave more information on the question: This error ("Could not find or load main class Files") doesn't rise when I run the sikuli script but when I execute the bat script. I'm using this bat in order to fix the problem (see Question #202408) of sikuli to connect to the database because of : driver [com.mysql.jdbc.Driver] not found Thanks again -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #185791]: How to run "Sikuli On Virtual Machines"
Question #185791 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/185791 RaiMan posted a new comment: @Bogdan Not yet really contained in my know-how-basket ;-) but googling with "sikuli" "jenkins" reveals 90.000+ entries ;-) -- 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 #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 Status: Open => Needs information RaiMan requested more information: add -Dsikuli.Debug=3 to the java command line To find out, at what state it crashes. -- 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 #242920]: Issue when accessing to MySQL database
Question #242920 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242920 Status: Answered => Open rod is still having a problem: no, it still doesn't work : set cp=C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-connector-java-5.1.28-bin.jar set cp=%cp%;C:\tmp\jython.jar java -cp %cp% org.python.util.jython %1.sikuli\%1.py Error: Could not find or load main class Files -- 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 #242941]: How to run a batch file in foreground using sikuli
Question #242941 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242941 RaiMan posted a new comment: @obiwan Ok, then today I had some headstart with 3 portions of coffee ;-) All the best and great thanks for your valuable contributions. -- 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 #242849]: java.lang.UnsatisfiedLinkError: C:\Users\*\VisionProxy.dll: Can't find dependent libraries
Question #242849 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242849 Status: Needs information => Answered RaiMan proposed the following answer: I just took the chance, to make application for a RubyMine OS-License ;-) In the script itself you need some import/require/module statements, to get access to the Sikuli Java classes. ... and in your project settings you have to specify a reference to sikuli-java.jar (Java class path spec, external libraries, ... or something like that) You have to check the RubyMine docs, to find out, how to integrate external Java stuff into your JRuby project. -- 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 #242941]: How to run a batch file in foreground using sikuli
Question #242941 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242941 obiwan-92 posted a new comment: Yes, sorry. I'm not perfectly awake, this morning. ;) -- 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 #242941]: How to run a batch file in foreground using sikuli
Question #242941 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242941 RaiMan posted a new comment: Take care: exeCmd("yourCMDtitle", "C:\\sikuli\\something.bat") or: exeCmd("yourCMDtitle", r"C:\sikuli\something.bat") -- 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