Re: [Sikuli-driver] [Question #242881]: How to differentiate 2 similar images based on color???
Question #242881 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242881 RaiMan proposed the following answer: lets say you have 2 buttons (btn1 and btn2) then the following workflow will lead to the right Pattern setup: #take the 2 btn shots: imgBtn1 = shot of btn1 imgBtn2 = shot of btn2 print btn1 in around btn1, selectRegion().find(imgBtn1) # select a region around btn1 print btn1 in around btn2, selectRegion().find(imgBtn1) # select a region around btn2 print btn2 in around btn1, selectRegion().find(imgBtn2) # select a region around btn1 print btn2 in around btn2, selectRegion().find(imgBtn2) # select a region around btn2 take care, that the selected regions are larger than the buttons on all sides. This will give you the similarity scores of all 4 possible situations. Now you can decide about the threshold similarity to use with the pattern. click(Pattern(imgBtn1).similar(0.95)) # 0.95 is an example Generally it is always a possibility with version 1.0.1+ (RC3 has a bug here) to try with click(Pattern(imgBtn1).exact()) but this approach needs optimal image shots: as little background as possible, concentrate on the key visual aspects of the image (for buttons this usually is a shot, that contains not more than the button's frame). And even more general: Use the IDE's Preview, to find out the similarity threshold. -- 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 #229353]: [1.0] Eclipse shared library error on Ubuntu 64Bit
Question #229353 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/229353 RaiMan proposed the following answer: above you mentioned, that you are using OpenCV 2.2.0, but the libVisionProxy.so complains about libopencv_core.so.2.4 So I doubt, that you are still using the bundled libVisionProxy.so, that is exported at runtime to the libs folder, when Sikuli thinks, that the libs folder should be updated. A first step, to verify: runIDE -d 3 -c this will write debug output to the terminal window showing, what the IDE is doing at startup. With version 1.0.1 it is a bit tricky with having your own libVisionProxy.so, so do this to succeed: - after having setup SikuliX (in your case sikuli-ide.jar) delete the libs folder - start the IDE with the above debug command, you should see the recreation with the bundled libVisionProxy.so - stop the IDE - replace the libVisionProxy.so in folder libs with your prepared one (do not touch the other files!) - start the IDE again (the debug log should show, that the libs folder is not recreated but used as is) now it should work. With version 1.1.0 there will be a better solution for the usage of your own libVisionProxy.so. -- 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 #242642]: Custom error handling in Sikuli
Question #242642 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242642 Status: Answered = Solved Test confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #242870]: 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] Stack: [0x1ca0,0x1cb0], sp=0x1cafcec0, free space=1011k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libtesseract-3.dll+0x1a7bc5] 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.init(Ljava/util/List;Ljava/lang/Integer;)V+114 j Prog.actions.All_bets.init(Ljava/util/Map;)V+64 j Prog.actions.Re_steal.init(Ljava/util/Map;)V+312 j Prog.actions.Pre_flop_action.init(Ljava/util/Map;)V+2303 j Prog.demo$3.run()V+2157 v ~StubRoutines::call_stub Dynamic libraries: 0x00013f35 - 0x00013f383000 C:\Program Files\Java\jdk1.7.0_51\bin\java.exe 0x77c8 - 0x77e29000 C:\Windows\SYSTEM32\ntdll.dll 0x70bb - 0x70bfa000 C:\Program Files\AVAST Software\Avast\snxhk64.dll 0x77a6 - 0x77b7f000 C:\Windows\system32\KERNEL32.dll 0x07fefe36 - 0x07fefe3cc000 C:\Windows\system32\KERNELBASE.dll 0x07feff64 - 0x07feff71b000 C:\Windows\system32\ADVAPI32.dll 0x07feffe7 - 0x07fefff0f000 C:\Windows\system32\msvcrt.dll 0x07fefe4b - 0x07fefe4cf000 C:\Windows\SYSTEM32\sechost.dll 0x07fefe4e - 0x07fefe60d000 C:\Windows\system32\RPCRT4.dll 0x77b8 - 0x77c7a000 C:\Windows\system32\USER32.dll 0x07feff5d - 0x07feff637000 C:\Windows\system32\GDI32.dll 0x07fefe4d - 0x07fefe4de000 C:\Windows\system32\LPK.dll 0x07feff80 - 0x07feff8c9000 C:\Windows\system32\USP10.dll 0x07fefcb3 - 0x07fefcd24000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll 0x07feff96 - 0x07feff9d1000 C:\Windows\system32\SHLWAPI.dll 0x07fefff6 - 0x07fefff8e000 C:\Windows\system32\IMM32.DLL 0x07fefe69 - 0x07fefe799000 C:\Windows\system32\MSCTF.dll 0x07fefb8f - 0x07fefb91f000 C:\Windows\system32\nvinitx.dll 0x73d7 - 0x73e42000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\msvcr100.dll 0x6573 - 0x65ef9000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\server\jvm.dll 0x07fef66d - 0x07fef66d9000 C:\Windows\system32\WSOCK32.dll 0x07fefff1 - 0x07fefff5d000 C:\Windows\system32\WS2_32.dll 0x07feff93 - 0x07feff938000 C:\Windows\system32\NSI.dll 0x07fefb43 - 0x07fefb46b000 C:\Windows\system32\WINMM.dll 0x77e5 - 0x77e57000 C:\Windows\system32\PSAPI.DLL 0x74cf - 0x74cff000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\verify.dll 0x74cc - 0x74ce8000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\java.dll 0x74ca - 0x74cb5000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\zip.dll 0x07fefc8b - 0x07fefc8c C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\bin\breakgen64.dll 0x749e - 0x749f9000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\net.dll 0x07fefd92 - 0x07fefd975000 C:\Windows\system32\mswsock.dll 0x07fefd91 - 0x07fefd917000 C:\Windows\System32\wship6.dll 0x74a0 - 0x74b95000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\awt.dll 0x07feff72 - 0x07feff7f7000 C:\Windows\system32\OLEAUT32.dll 0x07feffc6 - 0x07feffe63000 C:\Windows\system32\ole32.dll 0x07fefc7c - 0x07fefc7d8000 C:\Windows\system32\DWMAPI.DLL 0x07fefc75 - 0x07fefc7a6000 C:\Windows\system32\uxtheme.dll 0x07fefdfe - 0x07fefdfef000 C:\Windows\system32\CRYPTBASE.dll 0x07fef280 - 0x07fef29ff000 C:\Windows\system32\d3d9.dll 0x07fefd1f
Re: [Sikuli-driver] [Question #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 Summary changed to: [1.0.1] Intellij IDEA crashed -- 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]: IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 Status: Open = Needs information RaiMan requested more information: This is what I can see from the (horrible ;-) JVM dump: - you seem to use Intellij IDEA to develop Java apps - you are using SikuliX 1.0.1 (conclusion from the dlls) - you have setup SikuliX in D:\SOFT\sikuli - the libs are loaded from D:\SOFT\sikuli\libs, that is on system path at runtime this all seems to be as it should be. I suppose you are using sikuli-java.jar, that is left in the setup folder D:\SOFT\sikuli and referenced in your test project. there are additional OpenCV libs loaded at C:\Windows\Temp\javacpp217882498280317\ are you using Sikuli Java API in parallel?? to narrow down to the problem: add the following JVM parameter to the runtime settings of your project -Dskuli.Debug=3 or use java.lang.System.setProperty(skuli.Debug, 3); in your test app before touching any SikuliX features. This will produce some valuable debug output. A paste of your test app would help too. -- 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 #229353]: [1.0] Eclipse shared library error on Ubuntu 64Bit
Question #229353 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/229353 Andrei Ciobanu posted a new comment: Yes, the inconsistency of the OpenCV 2.2.0 and libopencv_core.so.2.4 was because of my attempts. Firstly I tried with OpenCV 2.2.0 and then with OpenCV 2.4.0. I'm sorry for the wrong informations. How I built the OpenCV, the problem was that to the Sikuli_supplemental I can set the path of the OpenCV libs, but the SikuliIDE, I think that, takes from the /usr/lib. Because following the opencv documentation I've installed it with cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. and the libs was put into /usr/local/libs and SikuliIDE wasn't saw them. So, in the end, I've figured out how to make this work: I don't needed anymore the Sikuli_supplemental. The problem was linked to the OpenCV installation. I've compiled the OpenCV with cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr .. ( instead of /usr/local, I've put /usr ) and then, the java -jar sikuli-setup.jar was work like a charm.:) So, problem solved for me. If I can help you with more information, let me know. Thanks for the answers and thanks for the support. Have a nice day. -- 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 #242895]: How to install sikuli-script-1.0.1.jar by command line?
New question #242895 on Sikuli: https://answers.launchpad.net/sikuli/+question/242895 I can install Sikuli with GUI in ubuntu. But I would like to install Sikuli by command line only. ex: java -jar sikuli-setup.jar -pack 1 2 3 Do you support this method for install? Thank you. -- 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 syed posted a new comment: I am new in Sikuli and doing RD on OCR feature specifically. Please help me with the following. I have switched OCR functionality on by using the your above suggested code in eclipse/java Settings.OcrTextRead=true; Settings.OcrTextSearch=true; and try to extract the text from a textfield(which is not editable) but it saying --- no text --- I can not even use the following solution for extracting text. scr.click(text_field.png,0) scr.type(a, KEY_CTRL) scr.type(c, KEY_CTRL) System.out.println(Env.getClipboard()) Will b much obliged by your quick response Environment:Windows7, IDE: Sikuli 1.0.1, Jar Files: sikuli-api-1.0.2-standalone.jar ; sikuli-ide.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
[Sikuli-driver] [Question #242900]: Sikuli questions
New question #242900 on Sikuli: https://answers.launchpad.net/sikuli/+question/242900 How to read single word from the line , we can read entire line now , please tell me how to read single word and paste that word in the application field/textfield. -- 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: Answered = Open futurecraft is still having a problem: RaiMan, Thanks for a quick response! I removed libs folder and all env_variable items mentioned above except [Path: ... C:\Program Files (x86)\Java\jre7\bin; ...] and now I receive the following error: NativeException: java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder ps: I'm new to this existing project that uses sikuli jruby and it wasn't me who implemented them to work together but I would be glad to help when I'll have a bit more understanding. now my task is actually to make it run on my unit. -- 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 #242895]: How to install sikuli-script-1.0.1.jar by command line?
Question #242895 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242895 Linked to bug: #1273664 https://bugs.launchpad.net/bugs/1273664 [request] want a setup that runs from command line (no options dialog, only logs to file/commandline) -- 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 #242895]: Status of bug #1273664 changed to 'Fix Committed' in Sikuli
Bug #1273664 status changed in Sikuli: New = Fix Committed https://bugs.launchpad.net/sikuli/+bug/1273664 [request] want a setup that runs from command line (no options dialog, only logs to file/commandline) This bug is linked to #242895. How to install sikuli-script-1.0.1.jar by command line? https://answers.launchpad.net/sikuli/+question/242895 -- 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] [Bug 1273664] [NEW] [request] want a setup that runs from command line (no options dialog, only logs to file/commandline)
Public bug reported: I can install Sikuli with GUI in ubuntu. But I would like to install Sikuli by command line only. ex: java -jar sikuli-setup.jar -pack 1 2 3 Do you support this method for install? Thank you. ** 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.0 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1273664 Title: [request] want a setup that runs from command line (no options dialog, only logs to file/commandline) Status in Sikuli: Fix Committed Bug description: I can install Sikuli with GUI in ubuntu. But I would like to install Sikuli by command line only. ex: java -jar sikuli-setup.jar -pack 1 2 3 Do you support this method for install? Thank you. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1273664/+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 #242900]: Sikuli questions
Question #242900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242900 Status: Open = Needs information obiwan-92 requested more information: Hello. Can you be a little more explicit ? Read a word from what ? A file ? The OCR ? To paste a word you can use : click(img of your textfield) paste(yourword) Regards. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #242900]: Sikuli questions
Question #242900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242900 Description changed to: How to read single word from the line , we can read entire line now , please tell me how to read single word and paste that word in the application field/textfield. * A text file- Notepad,ms-word etc. .txt file -- 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 #242900]: Sikuli questions
Question #242900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242900 Status: Needs information = Answered obiwan-92 proposed the following answer: OK, try this. line = I try to do the right thing # the line you read in notepad for word in line.split(' '): print word : , word -- 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: Open = Needs information RaiMan requested more information: What IDE environment are you using to develop, debug and run JRuby scripts? What JRuby are you using? If possible, I would just setup the same environment, which would make it easier to help (and is of value for me anyway). The symptom looks like that sikuli-java.jar is not on the Java class path at runtime. -- 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 Status: Needs information = Answered RaiMan proposed the following answer: This seems to be caused by the fact, that you use sikuli- api-1.0.2-standalone.jar together with SikuliX version 1.0.1 stuff. This is not tested and might lead to problems. So just start with a clean SikuliX test usage in D:\SOFT\sikuli\: - delete everything exept sikuli-setup.jar - run setup and select option 4 (option 1 might be selected too, to have the SikuliX IDE available for image management) - this should succeed and give you sikuli-java.jar (and optionally sikuli-ide.jar) Now take care, that in your projects class path you only have a reference to sikuli-java.jar (do not move it!) for any Sikuli stuff. In your test app before touching any SikuliX features (like e.g. Screen s = new Screen();) add this: java.lang.System.setProperty(sikuli.Debug, 3) this will produce some more debug output on command line, that helps to understand, what's going on. If you want to use sikuli-api-1.0.2 in parallel in the same project just put it in a separate folder than D:\SOFT\sikuli\, add a reference to your projects class path, add an import and test this. BTW: I guess you know that already: sikuli-api-1.0.2 is in no way API compatible to SikuliX, it is only the basic features they have in common. -- 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 #242900]: Sikuli questions
Question #242900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242900 Status: Answered = Solved Harshal Mohan Saindane confirmed that the question is solved: Thanks obiwan-92, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #242900]: Sikuli questions
Question #242900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242900 Harshal Mohan Saindane posted a new comment: Thanks a lot. -- 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 #229353]: [1.0] Eclipse shared library error on Ubuntu 64Bit
Question #229353 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/229353 RaiMan proposed the following answer: ok, thanks for feedback: This is exactly, what I would have expected for an Ubuntu 12.04. -- 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] [Bug 1273683] [NEW] [request] Add a developping mode in the IDE
Public bug reported: I think it would be usefull to have a developping mode in Sikuli. This mode will mask the code and show only a little taskbar with the function click, rightClick, find, ... With this feature, we will just have to select the function, and the IDE will asking us to select the picture. Once it's done, it will be automatically append to the end of the script. With this feature, we won't have to reduce the IDE each time we want select an image and it will easy to follow the application we try to automated. Ask me if it's not perfectly clear. It's just an idea. ;-) ** 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/1273683 Title: [request] Add a developping mode in the IDE Status in Sikuli: New Bug description: I think it would be usefull to have a developping mode in Sikuli. This mode will mask the code and show only a little taskbar with the function click, rightClick, find, ... With this feature, we will just have to select the function, and the IDE will asking us to select the picture. Once it's done, it will be automatically append to the end of the script. With this feature, we won't have to reduce the IDE each time we want select an image and it will easy to follow the application we try to automated. Ask me if it's not perfectly clear. It's just an idea. ;-) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1273683/+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 #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 #4 is for syed's question from comment #3 -- 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: It seems, that you did not select option 5 at setup (want to use Tesseract ) - delete everything except sikuli-setup.jar from the SikuliX setup folder - repeat setup with options 1 and 5 - should succeed - delete the libs folder in SikuliX setup folder - start the SikuliX IDE (the libs folder will now be recreated including the tessdata folder) Region.text() should now return something, but might be not what you expect ;-) (the SikuliX OCR feature is not mature yet, see related bugs) -- 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] [Bug 1273683] Re: [request] Add a developping mode in the IDE
good idea. thanks. I take it on the list for version 1.2. Wanted to revise this area anyway. ** Summary changed: - [request] Add a developping mode in the IDE + [request] Add a developing mode: some floating menu, that allows to add function calls and images to a script in background. ** 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.2.0 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1273683 Title: [request] Add a developing mode: some floating menu, that allows to add function calls and images to a script in background. Status in Sikuli: In Progress Bug description: I think it would be usefull to have a developping mode in Sikuli. This mode will mask the code and show only a little taskbar with the function click, rightClick, find, ... With this feature, we will just have to select the function, and the IDE will asking us to select the picture. Once it's done, it will be automatically append to the end of the script. With this feature, we won't have to reduce the IDE each time we want select an image and it will easy to follow the application we try to automated. Ask me if it's not perfectly clear. It's just an idea. ;-) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1273683/+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 #242870]: [1.0.1] Intellij IDEA crashed
Question #242870 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242870 RaiMan proposed the following answer: So for what do you need SikuliX then? The SLF4J problem must be a sikuli-api problem - but with this I cannot help you - not my project. *** recommendation for issues with Sikuli Java API: pls. post on http://code.google.com/p/sikuli-api/issues/list which is the direct access to the developers. -- 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: ok thx...will try to fix it...gl -- 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 all, I find it impossible to run SikuliX tests (on a website opened in IE) through Jenkins on a RDC: I have the test scripted on the machine (B - win server) and when running them with the RDC open (connected from A - win 7) all works good, but if I close RDC and start the tests from Jenkins (bash command: runScript.cmd -r ) SikuliX is unable to find anything on the screen. I also tried installing TightVNC and oppening a session to B with it, but the error in jenkins is the same (FindFaied - as if the screen in black). Can somebody explain how to fix this, so that I will be able to run tests from anywhere through Jenkins (and without having access (or opening a RDC) to the machine (B) that holds the tests)? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #232900]: [1.0] [HowTo] turn on text recognition --- solution
Question #232900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/232900 syed posted a new comment: Thanks for your quick response RaiMan :) I have deleted every thing from folder except sikuli-setup.jar (as you mentioned above). And re-install the setup with option 1 5 and turn on the settings but still the same result --- no text - here is my simple code . In Eclipse/Java Screen scr=new Screen(); scr.find(images/imagesCommon/NumberOfDocsLabel.png).right(150).highlight(3); String txt=scr.find(images/imagesCommon/NumberOfDocsLabel.png).right(150).text(); System.out.println(Text :+txt);//- It gives --- no text --- In Sikuli IDE find(NumberOfDocsLabel.png).right(25).right(90).highlight(3) #- For highlighting box popup(find(NumberOfDocsLabel.png).right(25).right(90).text()) #- It gives --- no text --- Note: I emailed you the screenshot as well with the bug#. [as I can't see any link to upload screenshot here :(] If you could further advise me in this regard will be much appreciated. p.s: My windows7 is 64 bit. -- 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 syed posted a new comment: And if OCR does not work in Sikuli properly then could you please suggest me simple API to use in Java to do the OCR of the image along with Sikuli java code. So I can extract the texts by OCRing the images (captured through Sikuli )and compare it with expected values. Many 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
[Sikuli-driver] [Question #242920]: Issue when accessing to MySQL database
New question #242920 on Sikuli: https://answers.launchpad.net/sikuli/+question/242920 Hi all, I'm using the last version of sikuli on Windows 7 with jre7. I downloaded the last java mysql connector (5.1.28) and added a env variable : CLASSPATH = C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-connector-java-5.1.28-bin.jar I'm so launching a sikuli script (no IDE) with basically : from sikuli import * 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 And I'm getting : database connection issue : driver [com.mysql.jdbc.Driver] not found Looking at another post (question 202408) I saw that RaiMan proposed a bat script like : 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 When I run this bat script I get : Error: Could not find or load main class Files Where Am I wrong ? Thanks a lot, Rod -- 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 #242923]: Application closes or crashs when try run the script
New question #242923 on Sikuli: https://answers.launchpad.net/sikuli/+question/242923 I 've installed the Sikuli 1.01 in my linux ubuntu 12.04. I did installed the sikuli setup and after it i installed the supplemental. Ide open properly, but when i try run the script, application closes or crash. -- 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 #242935]: Game Testing - Click not always working
New question #242935 on Sikuli: https://answers.launchpad.net/sikuli/+question/242935 Hello, I'm evaluating Sikuli to test games. The game is built using Unity3D engine, a quite popular game engine. We have a basic HUD with buttons, opening pop-ups and stuff... but the click is not working sometimes. Sikuli logs the click, so I assumed it happened. No error message. The find is working, so it's not a match problem. I made sure the app has focus before doing the click. I tried running the game as adminsitrator. I'm launching the script from the IDE, using Sikuli 1.0.1 When Launching in Slow Motion, the script always target the right place... but the click fail sometimes. I'm not running my game in fullscreen. It's windowed. Sometime it works, sometime the click never happens... :( Is there any known issues when using Sikuli with games ? Especially with the Unity3D engine? Is there a parameter to adjust/tweak the click speed ? Maybe the click is happening too fast/too slow, sometimes? Thank you for your feedback. Michael -- 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 #242941]: How to run a batch file in foreground using sikuli
New question #242941 on Sikuli: https://answers.launchpad.net/sikuli/+question/242941 Okay, I can use the sikuli integrated method App.open to execute external commands but when I try to do the same thing for batch (bat) file (WINDOWS) according to the LOGs It executes the bat file in the background fine. Problem is my bat file is highly visual and I want it to run in the foreground so I can see it telling me the steps and percentages as it's going thru. Just like executing the bat file manually. So I run App.open(C:\sikuli\something.bat) I get [log] App.open something.bat(5844) Which is a success, it runs fine, but all happens in the background and I don't see the CMD windows popping up and showing me all the steps of the process. That's what I need. I tried subprocess as well, It executes the the bat file in the background, and displays the results in the MSG screen, not in a separate standalone CMD window. Is there any parameters to the App object or how do I 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
Re: [Sikuli-driver] [Question #242935]: Game Testing - Click not always working
Question #242935 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242935 Status: Open = Answered Test proposed the following answer: You can try using some lower level mouse functions to alter the click time. mouseDown(Button.LEFT) wait(1) mouseUp() This should make the 'click' last slightly longer, if it needs to be more, change the wait timing. -- 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 #242881]: How to differentiate 2 similar images based on color???
Question #242881 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242881 Vaishali posted a new comment: Actually Both are similar images and tr is only a slight difference in color.. for example next button in gmail... when it reaches the last email it should stop clicking the next button.. -- 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 #242923]: Application closes or crashs when try run the script
Question #242923 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242923 Status: Open = Answered RaiMan proposed the following answer: use runIDE -d 3 -c to see some debugging output in the terminal. might shed some light on the 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 #242881]: How to differentiate 2 similar images based on color???
Question #242881 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242881 RaiMan requested more information: what about the test and results with comment #4? -- 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 futurecraft posted a new comment: IDE: JetBrains RubyMine 6.0.3 JRUBY: 1.6.8-p357 - language level 1.8 Now I can't really say how exactly sikuli is being revoked from jruby script, gem Drydock is used to manage screen as I see. -- 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 Status: Open = Answered obiwan-92 proposed the following answer: Hello. Use this : def exeCmd(title, cmd): App.open('CMD /k start \'+title+'\ '+cmd) exeCmd(yourCMDtitle, C:\sikuli\something.bat) Regards -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #242935]: Game Testing - Click not always working
Question #242935 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242935 RaiMan proposed the following answer: comment #1 is the right approach, to fix the problem, but usually in these cases wait(0.3) is sufficient. With version 1.0.1+ there is a convenience: Settings.ClickDelay = 0.3 click(some_image_or_pattern) or to make it more visible in the code: Settings.ClickDelay = 0.3; click(some_image_or_pattern) This just internally inserts a short wait after the mouseDown internally (as in comment #1) and only applies to the next click. *** The background: Some app specific GUI's have a short delay after the mouse enters an element before accepting a click. This often comes together with some tooltip-like display of information. Others need a delay between mouseDown and mouseUp to interpret this a s a click. This depends on implementation. And there have been situations, where the implementation had some flaws, so depending on cpu usage and parallel processes these delays varied (which should be taken as a bug ;-). so the general mouse-flow for a click can be seen as this: hover(target) wait(x) mouseDown() wait(y) mouseUp() where x and y usually are 0 or in some cases some 10 milliseconds (usually 300). For the y value we have the above mentioned convenience with version 1.0.1 hover(target) wait(x) Settings.ClickDelay = 0.3; click(some_image_or_pattern) -- 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 obiwan-92 proposed the following answer: Hello, I'm not sure but try with semicolon : replace set cp=%cp%:C:\tmp\jython.jar by set cp=%cp%;C:\tmp\jython.jar Tell me if it's 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 #242935]: Game Testing - Click not always working
Question #242935 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242935 RaiMan proposed the following answer: sorry, correction: For the y value we have the above mentioned convenience with version 1.0.1 hover(target) wait(x) Settings.ClickDelay = 0.3; click() Since click() is a shortcut for click(getLastMatch()) and if we have a restricting region: some_reg.hover(target) wait(x) Settings.ClickDelay = 0.3; some_reg.click() -- 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