[Sikuli-driver] [Bug 1067041] Re: App crashes when taking screentshot
** Changed in: sikuli Status: New = Invalid -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1067041 Title: App crashes when taking screentshot Status in Sikuli: Invalid Bug description: App seems to start fine. App seems to crash when taking screenshot. Also crashes when clicking any sidebar item with the screenshot icon (find section, Mouse Actions section etc). The display does not darken in the manner described in the help / helloworld example, and does not allow drawing a rectangle around a target. The hot-key (Ctrl + Shift + 2) does not work. Have run the bat file from a command line window, no messages visible from the crash. The command prompt does not reappear until ^C is pressed. Sikuli-X-1.0rc3 (r905)-win32.exe Windows 7 32bit enterprise java version 1.6.0_26 Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing) Thanks. W To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1067041/+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 #211334]: OCR usage and integration with Sikuli
Question #211334 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211334 Status: Open = Answered RaiMan proposed the following answer: --- integration of other OCR engine ... ... is only possible if you step down to the native code source level, since the interface to the used Tesseract 2 features is not isolated absolutely, so you would have to make changes and adaptions in some different areas. But the main functions towards the Java API are in the Java class TextRecognizer. --- to just check the possibilities of other OCR engines ... ... use a combination of ImageMagick (to prepare a screenshot for optimal OCR) and give this image to the OCR system. This is a 2-step workflow, that can be done on command line. From Sikuli just to test the possibilities it is the fastest way, to use the IDE with some Python scripting, where you could call the OCR-step using os.popen(). I have done this once with ImageMagick and Tesseract 3. If you do it in Java, there might be the possibility, to use BufferedImages, so you would not have to use concrete files (which slows down the process somehow). If these tests are somehow satisfying, then you could decide how to proceed. -- 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 #211334]: OCR usage and integration with Sikuli
Question #211334 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211334 Status: Answered = Open Akbar is still having a problem: Thanks RaiMan. I am using the java library of sikuli, can you please give more details about TextRecognizer / ImageMagick/ BufferedImages usage? -- 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 #211347]: How to increment values in array
New question #211347 on Sikuli: https://answers.launchpad.net/sikuli/+question/211347 Hi, I am writing code, in which text file is used as : (11,50,12) (11,52,21) (12,15,20) (12,30,45) Check the script: def myHandler(event): wait(2) click(1349867277615-1.png) type('v', KeyModifier.CTRL) wait(2) until = list(time.localtime()) until[3:6]=eval(arr[1]) # hour minute second # DON'T KNOW HOW TO HANDLE THE ARR IN INCREMENTAL timeUntil = time.mktime(tuple(until)) timeToWait = int(timeUntil - time.time()) if timeToWait 1: timeToWait1 = (86400 + int(timeUntil - time.time())) wait(timeToWait1) else: wait(timeToWait) click(submit-2.png) wait(8) click(clear-1.png) wait(2) # Main function setThrowException(True) wait(2) import array arr=[] f=open(D:\\DPTT_XML\\Time.txt,r) fout = open(D:\\DPTT_XML\\Time-results.txt,w) for line in f.readlines(): arr.append(line.strip()) # get rid of newline f.close() wait(2) click(1348813496420-12.png) wait(1) # For clock in for Employee E3 type(D:\\DPTT_XML\\E3.txt) wait(1) type(Key.ENTER) wait(1) type('a', KeyModifier.CTRL) type('c', KeyModifier.CTRL) type(Key.F4, KeyModifier.ALT) wait(1) # Open firefox click(1348813496420-12.png) wait(5) click(earthprogram-9.png) type(firefox + Key.ENTER) wait(5) type(t, KeyModifier.CTRL) wait(5) type(https://localhost:9043/IDS/TestIDS.jsp; + Key.ENTER) wait(RequestXMLRe-3.png,20) click(DSservi0ehds-1.png) type(Key.END ) type (Key.BACKSPACE) type(http://localhost:9080/IDS/service/ids/;) type(Key.TAB) type('v', KeyModifier.CTRL) wait(2) until = list(time.localtime()) until[3:6]=eval(arr[0]) # hour minute second # HERE I AM GETTING VALUE FROM ARR [0] AS I HAVE NOT CALLED THE myhandler timeUntil = time.mktime(tuple(until)) timeToWait = int(timeUntil - time.time()) if timeToWait 1: timeToWait1 = (86400 + int(timeUntil - time.time())) wait(timeToWait1) else: wait(timeToWait) click(submit-2.png) wait(8) click(clear-1.png) wait(2) # For clock in for Employee E6 click(1348813496420-12.png) wait(1) type(D:\\DPTT_XML\\E6.txt) wait(1) type(Key.ENTER) wait(1) type('a', KeyModifier.CTRL) type('c', KeyModifier.CTRL) type(Key.F4, KeyModifier.ALT) wait(2) onAppear(submitclear.png, myHandler) # HERE I WANT IT SHOULD TAKE VALUE FROM ARR [1] observe(10) wait(2) # For clock in for Employee E5 click(1348813496420-12.png) wait(1) type(D:\\DPTT_XML\\E5.txt) wait(1) type(Key.ENTER) wait(1) type('a', KeyModifier.CTRL) type('c', KeyModifier.CTRL) type(Key.F4, KeyModifier.ALT) wait(2) onAppear(submitclear.png, myHandler) # HERE I WANT IT SHOULD TAKE VALUE FROM ARR [2] observe(10) wait(2) # For clock in for Employee E2 click(1348813496420-12.png) wait(1) type(D:\\DPTT_XML\\E2.txt) wait(1) type(Key.ENTER) wait(1) type('a', KeyModifier.CTRL) type('c', KeyModifier.CTRL) type(Key.F4, KeyModifier.ALT) wait(2) onAppear(submitclear.png, myHandler) # HERE I WANT IT SHOULD TAKE VALUE FROM ARR [3] observe(10) wait(2) Not able to increment the array values when handler is used. Please help me out. -- 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 #211334]: OCR usage and integration with Sikuli
Question #211334 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211334 Akbar posted a new comment: Rephrasing the question. Integration - Modifying source code is costly and complex. Other OCR - I assume you meant that ImageMagick+Sikuli can be done in Java and BufferedImages can also be used? Can you please elaborate? -- 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 #211347]: How to increment values in array
Question #211347 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211347 Status: Open = Answered RaiMan proposed the following answer: Principally there is a trick to transfer parameters to the handler (there is a QA around here). But in these cases I use the region to transfer such values to the handler. # the observe part SCREEN.currentTimeEntry = arr[1] onAppear(submitclear.png, myHandler) # HERE I WANT IT SHOULD TAKE VALUE FROM ARR [1] observe(10) # the handler part until[3:6]=eval(event.region.currentTimeEntry) - the region you are using is the whole screen, hence region is SCREEN - SCREEN.currentTimeEntry = arr[1] stores the content of arr[1] as a value in the region object SCREEN - in the handler event.region is the current observed region (hence SCREEN in this case) - so event.region.currentTimeEntry retrieves the stored value -- 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 #211361]: running sikuli on linux
New question #211361 on Sikuli: https://answers.launchpad.net/sikuli/+question/211361 typing sikuli-ide.sh in shell does not open sikuli editor(linux), only the message: [info] locale: en_US is shown but nothing shows up -- 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 #211228]: Mac: Getting FindFailed when using cron to run sikuli script
Question #211228 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211228 Status: Open = Answered RaiMan proposed the following answer: I am not getting my cron environment on my Mac Lion to work (I know, there are some tricks, but I do not get it). atrun is still disabled here - does this hinder cron to run? So for the moment I cannot test the situation. But this might be the cause: the cron jobs are started in background as far as I know. So they do not have access to the screen. This might be the problem with Sikuli here. If you want to run the Sikuli script at 01:00, just start it and implement a wait until that time.You can make it a loop, so it runs every day automatically. and this is a snippet, how to calculate the time to wait until a specific time: until = list(time.localtime()) until[3:6] = (15, 54, 0) # hour minute second timeUntil = time.mktime(tuple(until)) timeToWait = int(timeUntil - time.time()) # only for debug fmt = time to wait from now %s til %s : %d sec print fmt%(time.strftime(%H:%M), time.strftime(%H:%M, tuple(until)), timeToWait) -- 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 #211334]: OCR usage and integration with Sikuli
Question #211334 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211334 Status: Open = Answered RaiMan proposed the following answer: both ImageMagick (convert: work on images) and Tesseract (tesseract: get text from an image) have commands, that can be used on the command line and taking files as input and giving files as output. So principally a shell script convert input.png ... some actions output.tiff //* optimize for OCR tesseract output.tiff ... additional options would create a textfile in the end containing what Tesseract could read. This shellscript can be run from a Java program, that produces input.png using Sikuli features and finally reads output.txt to get the textual result. At least the first step (convert) can be done in memory using JMagick and BufferedImages (which you can get from Sikuli 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 #211361]: running sikuli on linux
Question #211361 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211361 Abhishek posted a new comment: yes as mentioned in the website i have Java Runtime Environment (JRE) 6, wmctrl, and OpenCV 2.1 installed... -- 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 #211372]: java.lang.UnsatisfiedLinkError: /tmp/tmplib/libVisionProxy.so
New question #211372 on Sikuli: https://answers.launchpad.net/sikuli/+question/211372 Getting the following error on running the sikuli test file(java jdev project): /scratch/aime/SIKULI/jre1.6.0_31/bin/java -server -classpath /scratch/aime/jdeveloper/mywork/Application1/.adf:/scratch/aime/jdeveloper/mywork/Application1/Project2/classes:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/sikuli-script.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/JXGrabKey.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/commons-cli-1.2.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/forms-1.2.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/json_simple-1.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/junit-3.8.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/mac_widgets.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/sikuli-ide.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/swing-layout-1.0.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/swingx-core-1.6.2.jar -Djavax.net.ssl.trustStore=/scratch/aime/Oracle/Middleware1/wlserver_10.3/server/lib/DemoTrust.jks project2.ClassA [log] TYPE Exception in thread main java.lang.UnsatisfiedLinkError: /tmp/tmplib/libVisionProxy.so: libml.so.2.1: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0(Unknown Source) at java.lang.System.load(Unknown Source) at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44) at org.sikuli.script.Finder.clinit(Finder.java:33) at org.sikuli.script.Region.doFind(Region.java:1029) at org.sikuli.script.Region$RepeatableFind.run(Region.java:1232) at org.sikuli.script.Region$Repeatable.repeat(Region.java:1203) at org.sikuli.script.Region.wait(Region.java:497) at org.sikuli.script.Region.find(Region.java:381) at org.sikuli.script.Region.getLocationFromPSRML(Region.java:1129) at org.sikuli.script.Region.click(Region.java:606) at org.sikuli.script.Region.click(Region.java:593) at project2.ClassA.fun1(ClassA.java:9) at project2.ClassA.main(ClassA.java:18) Process exited with exit code 1. -- 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 #211372]: java.lang.UnsatisfiedLinkError: /tmp/tmplib/libVisionProxy.so
Question #211372 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211372 Status: Open = Answered RaiMan proposed the following answer: OpenCV 2.1 seems not to be installed correctly. So check things again. IMHO you do not need all the Sikuli related helper jars in the class path. sikuli-script.jar should be sufficient. -- 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 #211347]: How to increment values in array
Question #211347 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211347 Milind Warade posted a new comment: Thanks Raiman. Problem is solved. -- 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 #211380]: Not able to close the text file when array is used.
New question #211380 on Sikuli: https://answers.launchpad.net/sikuli/+question/211380 Hi, I want to write the text file when I have used array. It was giving me error as : my_file.close() NameError: name 'my_file' is not defined == Check the code: # Game ended def Employee(event): wait(1) click(FEmployeeCod-9.png) wait(1) type(event.region.currentTimeEntry) wait(1) el = \n # the end of line you want to use my_file=file(D:\DPTT_XML\DPWrite.txt, w) if exists (ULUNPAID-7.png): type(UL) my_file.write(UL+el) # if you want to have line breaks wait(2) if exists (WOWEEKLYOFF-7.png): type(WO) my_file.write(WO+el) # if you want to have line breaks wait(2) wait(1) # Main function # Go to Portal for checking Employee Attendance report import array DPRead=[] f=open(D:\\DPTT_XML\\DPRead.txt,r) fout = open(D:\\DPTT_XML\\DPRead-results.txt,w) for line in f.readlines(): DPRead.append(line.strip()) # get rid of newline f.close() wait(2) click(1348813496420-5.png) wait(5) click(earthprogram-5.png) type(firefox + Key.ENTER) wait(5) type(t, KeyModifier.CTRL) wait(10) type(https://localhost:9080/index.action; + Key.ENTER) wait(LoginUsernam-5.png,20) click(Username-5.png) type(ABCD) click(Password-5.png) type(1234) wait(2) # Employee code for E1 : abhileft1 wait(2) SCREEN.currentTimeEntry = DPRead[2] onAppear(FEmployeeCod-9.png, Employee) observe(50) wait(1) # Employee code for E1 : abhileft2 click(VEmployeeCod.png) wait(2) SCREEN.currentTimeEntry = DPRead[3] onAppear(FEmployeeCod-9.png, Employee) observe(50) my_file.close()# ERROR OCCURS AT THIS STAGE wait(2) App.close(Firefox) wait(3) Please do needful 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 #210850]: Typing on to a text field in Android EMulator
Question #210850 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/210850 Status: Answered = Open Hasham is still having a problem: No luck, it still behaves the same. I tried adding offset, the syntax is as follows: Pattern patemail = new Pattern(D:\\Sikuli-Java\\imgs\\Email.png).targetOffset(25, 0); s.type(patemail,shaikhas...@gmail.com, 0); What it does it, it types shaikhasham@gmail or some times shaikhasham, using offset I could not get the complete email typed. Please guide me if the way am using offset is wrong. This is on Android Emulator. -- 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 #211380]: Not able to close the text file in main script when opened in def()
Question #211380 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211380 Summary changed to: Not able to close the text file in main script when opened in def() -- 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 #211380]: Not able to close the text file when array is used.
Question #211380 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211380 Status: Open = Answered RaiMan proposed the following answer: my_file is only known in the local context of the handler. So you should simply define/open it in the main script before the first observe, then it is known (global) in the def. -- 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 #211397]: Sikuli speed
New question #211397 on Sikuli: https://answers.launchpad.net/sikuli/+question/211397 Is it possible to control the speed with which Sikuli types characters? Like Settings.minSimilarity etc -- 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 #211228]: Mac: Getting FindFailed when using cron to run sikuli script
Question #211228 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211228 lifenz posted a new comment: Thank you for the trick RainMan. atrun is still disabled here - does this hinder cron to run? - I dont know, cron was built in and activated on my computer. But this might be the cause: the cron jobs are started in background as far as I know. So they do not have access to the screen. - You are probably right, cron specific implementation on OSX may not simply work with sikuli script :( My main goal was to implement a web page, that could run several schedule sikuli script at different defined time. So I supposed that crontab was the best solution. However, I found an interesting link in the Ubuntu community forum, according to this french thread : http://forum.ubuntu-fr.org/viewtopic.php?id=607831, cron would work on Linux Ubuntu. The man who wrote this post succeeded in executing a sikuli script on Ubuntu using this following command : */6 * * * * DISPLAY=:0 /home/solho/Sikuli/Sikuli-IDE/sikuli-ide.sh -r /home/solho/Sikuli/9boxAUTOparams.sikuli /tmp/log9box 21 (using DISPLAY=:0 doesnt work in OSX) Im sad that crontab doesnt work on OSX (I was using OSX in view of avoiding installing the sikuli's dependencies), I may try to migrate to Ubuntu and trying 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
[Sikuli-driver] [Question #211412]: Couple of questions regarding how-to
New question #211412 on Sikuli: https://answers.launchpad.net/sikuli/+question/211412 I made a suite which now can test an app in English and for any other locale. But, as of now I change the locale manually and run the suite. I want to write a .sh file to change the Mac OS language each time my suite runs based on the language I pass as command line arguments. Please see my below questions.. 1. How to change the Mac OS language (either using AppleScript/Shell Script) - For MAC. Once it is done for a FR for instance, I can then call my suite passing fr-fr as a argument to run the whole suite for FR. Again the same script to change to other locale and again calling the suite for that locale. I want to put all these in a script file (like batch file in windows) so that clicking on that sh file, all locales will be tested with out manual intervention. Please advice how to achieve this ? 2. The other challenge I am facing is, my Main Script uses middle layer framework file (main script importing the framework file). My framework file importing the locale images. Now, if I pass locale as a command line to main script, how can I say to my framework file to use that locale. Example: #Framework file is like this (myFramework.sikuli) locale = En-En exec(import +locale) exec(reload(%s)%(locale)) exec(from %s import *%(locale)) #main file is (main.sikuli) import myFramework reload(myFramework) from myFramework import * myFramework.locale = sys.argv[1] If I pass argv[1] as FR, the framework file is initializing to FR but, while execution it is looking for EN images only. I guessing this is because of importing 'myFramework' before assigning locale. Suggest me how to achieve this. 3. I am receiving this error in my report file if I run the script without re-starting the IDE. In the fresh instance of sikuli IDE this error is not seen. Why do we get this error? ft1.1: Traceback (most recent call last): File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit ValueError: I/O operation on closed file Traceback (most recent call last): File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit ValueError: I/O operation on closed file Thanks in advance. Neo. -- 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 #211397]: Sikuli speed
Question #211397 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211397 Alex N posted a new comment: See also https://answers.launchpad.net/sikuli/+question/178012 -- 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 #211426]: can picture named in chinese?
New question #211426 on Sikuli: https://answers.launchpad.net/sikuli/+question/211426 Can the captured picture renamed in chinese? for examper the picture is renamede as 照相机.png in sikuli script saved folder. then the script can be written as follow: click(照相机.png) wait(照相机.png) but when i rename the picture in the folder where it is saved, but when i run the script the picture disappeared. Can i realize this function in the sikuli current version. btw,the lasted version is ? Waiting for you answer,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
[Sikuli-driver] [Question #211431]: Import sikuli in sikuli ide?
New question #211431 on Sikuli: https://answers.launchpad.net/sikuli/+question/211431 Is there any way i could import other sikuli scripts within sikuli IDE? -- 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