Re: [Sikuli-driver] [Question #678267]: Is is possible to use keyboard actions or to make click on UAC dialogs?
Question #678267 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678267 Asheru posted a new comment: I was trying to install an application. I solved it by adding some parameters to a command. You also need to run the script as an admin. This combination, run the script as admin + the right arguments for the install command will not show the UAC. This is the command: setup.exe /S /v"/qb! /norestart" but it might be particular for my app. HOWEVER, it seems that there is a workaround for clicking on UAC with sikuli. Please see here -> https://stackoverflow.com/questions/42636098/sikulix- jython-uac-automation -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #272249]: SikuliX 1.1.0 setShowActions dose not work
Question #272249 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272249 Ray Chen posted a new comment: Thanks RailMan. I noticed the sikuli would high light the object identified for twice. Is there any way we could control to only high light once? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 1788843] Re: [1.1.4] IDE: Jython: Interactive sessions on command line not accepting input, hence unusable --- workaround
Perhaps you could leave this as a workaround as well(took me a while to figure out so maybe it will save someone else's time): You can run the interactive window using jython standalone interpreter jar, as well as sikulixapi jar, both linked on download page: https://raiman.github.io/SikuliX1/downloads.html Run this in command line: java.exe -cp "C:\SikuliX\sikulixapi.jar;C:\SikuliX\jython-standalone-2.7.1.jar" org.python.util.jython then in jython environment: import org.sikuli.script.SikulixForJython from sikuli.Sikuli import * -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1788843 Title: [1.1.4] IDE: Jython: Interactive sessions on command line not accepting input, hence unusable --- workaround Status in Sikuli: In Progress Bug description: -- workaround use the new feature in the IDE to selectively run lines from from a script see: https://sikulix-2014.readthedocs.io/en/latest/ide.html#run-only-parts-of-a-script -- originally reported: https://github.com/RaiMan/SikuliX1/issues/19 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1788843/+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 #678321]: Serious extended delay
Question #678321 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678321 Status: Needs information => Open Desmond Zhen gave more information on the question: I tried to download the 1.4 but everytime I open Sikuli it reloads the 1.1 version ?? Sent from my iPhone > On Feb 4, 2019, at 11:02 AM, RaiMan > wrote: > > Your question #678321 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/678321 > >Status: Open => Needs information > > RaiMan requested more information: > Please check, wether your game tries to detect bots and might be > responsible for the delays. > > what version of SikuliX? > > -- > To answer this request for more information, you can either reply to > this email or enter your reply at the following page: > https://answers.launchpad.net/sikuli/+question/678321 > > You received this question notification because you asked the question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678057]: capture command wrong using vnc
Question #678057 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678057 Christoph Fetzer posted a new comment: Hi! I mixed two issues, sorry for making this not clear enough: client.type( "r", Key.WIN ) -> will never show any result, regardlesss how long I wait. Neither on the screen of the virtual box, nor over the vnc connection. Instead I hear some sound out of the virtual machine but I can't relate the source. client.keyDown( Key.WIN ) client.keyUp() # wait for the start menu instead of the ausführen window is a workaround for failing step 1. client.type( "cmd.exe" ) Issue two: this wait for the screenshot will fail regardless how long I wait (I went up to 20s). Cause: the captures taken from the vnc connection show an incomplete startmenu with the parts missing, I am searching for ( the entry field at the bottom with the text "Programme/Dateien durchsuchen"). If I use the wait undotted and instead search on my host system in the virtual box window, everything works fine. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678321]: Serious extended delay
Question #678321 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678321 Status: Open => Needs information RaiMan requested more information: Please check, wether your game tries to detect bots and might be responsible for the delays. what version of SikuliX? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678057]: capture command wrong using vnc
Question #678057 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678057 RaiMan proposed the following answer: With VNC understanding the timing of a GUI is even more important than with local screens: client.type( "r", Key.WIN ) # action client.capture().saveInBundle("1.png") # check the action takes some milliseconds to complete, and triggers something on the VNC screen, that in turn might take some time, to be completely reflected in the vnc frame buffer on the local machine (the one running the script) in this case: action: will open the run dialog check: a few milliseconds later will not yet see anything of this. So if you want to use capture, to afterwards check the content of the VNC screen after an action, you have to wait some time (duration depends on the connection speed). in this case as an example, the average time to update the frame buffer completely is assumed to be 2 seconds: client.type( "r", Key.WIN ) wait(2) # might have to be adjusted client.capture().saveInBundle("1.png") the intermediate client.keyDown( Key.WIN ) client.keyUp() does not make sense for me, since it surely changes, what is seen on the screen. so assuming that Ausfuehren.png is a shot of the run dialog, this should make more sense: client = vncStart(ip="192.168.56.102", port=5900 ) wait( 5 ) client.type( "r", Key.WIN ) wait(2) client.capture().saveInBundle("1.png") wait( 5 ) client.capture().saveInBundle("2.png") client.wait("Ausfuehren.png",10) client.capture().saveInBundle("3.png") if you then compare the images 1.png, 2.png, 3.png you will get a feeling about the timing of your vnc connection. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678181]: [1.1.4] macOS 10.14: app.open(): throws index out of bounds exception
Question #678181 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678181 Status: Open => Answered RaiMan proposed the following answer: ok, thanks. Does not shed more light on the problem situation. I will check, where such an index-out-of-bounds error might occur. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 RaiMan posted a new comment: You have to fully understand, how SikuliX internally works. This might be helpful: https://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen ... so it is all about timing. When searching an image on the whole screen, a search op might take up to 500 msec, which then is repeated until found or wait time is elapsed (FindFailed exception). So for critical parts of your workflow or GUI's that change without being acted on, you have to adjust your search timing. This should generally be avoided: if has(image): click(image) if it comes to the click op, then the image was already found some milli-seconds before. but saying click(image) will start a new search, which at least costs some 10 msecs and might lead to FindFailed in fast changing GUI situations. so either say: if has(image): click() which is short for: if has(image): click(getLastMatch()) another option is to use: click(wait(image, waitTime)) which will either click (meaning found) or throw a FindFailed. In the end, you have to find your own way based on the knowledge of how SikuliX works and about the timing of your automated GUI. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678181]: [1.1.4] macOS 10.14: app.open(): throws index out of bounds exception
Question #678181 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678181 Status: Needs information => Open Katie Hanley gave more information on the question: [debug] RunTimeIDE: libsExport: folder exists: /Users/visionpc/Library/Application Support/Sikulix/SikulixLibs (1.1.4 - 201901160730) [debug] RunTimeIDE: loadLib: libMacUtil.dylib (success) [AppLog] App.create: [-1:Vision] [error] script [ CreateNew ] stopped with error in line 6 [error] java.lang.ArrayIndexOutOfBoundsException ( java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 ) [debug] RunTimeIDE: * running cleanUp * -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678260]: How to type Keys in sikuli
Question #678260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678260 Status: Answered => Open Sreelekshmi is still having a problem: Thanks. type(Key.ALT+”m”+”a” ) will do . On Fri, 1 Feb 2019 at 4:57 PM, masuo wrote: > Your question #678260 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/678260 > > Status: Open => Answered > > masuo proposed the following answer: > There is a document. > https://sikulix-2014.readthedocs.io/en/latest/keys.html > > -- > If this answers your question, please go to the following page to let us > know that it is solved: > https://answers.launchpad.net/sikuli/+question/678260/+confirm?answer_id=0 > > If you still need help, you can reply to this email or go to the > following page to enter your feedback: > https://answers.launchpad.net/sikuli/+question/678260 > > You received this question notification because you asked the question. > -- Best wishes, Sree. You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Lisa Howells posted a new comment: RaiMan thank you so much I had been trying to get this to work for a while! I have one last question. Why does Masou's 3 line script example not work and it terminates and then gives that error? I want to learn why so I don't make mistakes like that in the future. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Status: Open => Solved Lisa Howells confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Status: Answered => Open Lisa Howells is still having a problem: Tried your exact 3 line script. I ran it 4 times, it did the same thing all 4 times, the program clicks the button (then the button goes away) and then it clicks where the button was a couple times and then the program closes (and then the sikuli IDE opens up again). it only gave this error message on the fourth try though. first 3 tries had no error message. [error] script [ testScript ] stopped with error at line --unknown-- [error] Error caused by: Traceback (most recent call last): File "C:\Users\Lisa\Documents.sikuli\TestScript.sikuli\TestScript.py", line 2, in click("randomButton.png") Line 2275, in file Region.java at org.sikuli.script.Region.wait(Region.java:2275) at org.sikuli.script.Region.wait(Region.java:2293) at org.sikuli.script.Region.getLocationFromTarget(Region.java:3302) at org.sikuli.script.Region.click(Region.java:3907) at org.sikuli.script.Region.click(Region.java:3892) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) org.sikuli.script.FindFailed: FindFailed: randomButton.png: (58x65) seen at (777, 625) with 0.79 in R[0,0 1680x1050]@S(0) Line 2275, in file Region.java -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 RaiMan proposed the following answer: while True: If has(Image): click() # clicks last match waitVanish(Image) wait(1) This will forever click the image when it comes up and then wait until the image vanishes -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678057]: capture command wrong using vnc
Question #678057 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678057 Christoph Fetzer posted a new comment: Thank you very much for your investigations! Some experiences from me: For me it seems, I accidentally used my machine under test using the virtual box GUI instead of the vnc interface. As I am consequently using client.blabla hardly anything is working. My script: client = vncStart(ip="192.168.56.102", port=5900 ) wait( 1 ) client.type( "r", Key.WIN ) client.capture().saveInBundle("1.png") client.keyDown( Key.WIN ) client.keyUp() wait( 10 ) client.capture().saveInBundle("2.png") client.wait("Ausfuehren.png",10) client.capture().saveInBundle("3.png") Capture 1 shows only the clean desktop (OK, I should wait but there really happens nothing). Capture 2 shows an incomplete Start menu that doesn't contain what I'd like to search for in the next step (is there a way to give you the file?). In the virtual box GUI I see a complete Start menu. When I remove the client. before the wait(), everything s working but not the intended way. (it's supposed to run on a jenkins controlling virtual test machines on vSphere). By the way I updated to 1.1.4 in the meantime. A - surprise! With that typing paths suddenly works. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Status: Open => Answered masuo proposed the following answer: try this. while has(randomButtonImage): click(randomButtonImage) sleep(1) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Status: Needs information => Open Lisa Howells gave more information on the question: [error] Error caused by: Traceback (most recent call last): File "C:\Users\Lisa\Documents.sikuli\ClickButton.py", line 6, in click("randomButton.png") Line 2275, in file Region.java at org.sikuli.script.Region.wait(Region.java:2275) at org.sikuli.script.Region.wait(Region.java:2293) at org.sikuli.script.Region.getLocationFromTarget(Region.java:3302) at org.sikuli.script.Region.click(Region.java:3907) at org.sikuli.script.Region.click(Region.java:3892) at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) org.sikuli.script.FindFailed: FindFailed: randomButton.png: (57x27) seen at (1313, 540) with 0.75 in R[0,0 1680x1050]@S(0) Line 2275, in file Region.java this happens once the button has been found and clicked and gone away so there's no button on the screen until it randomly comes back in a few minutes. I want the program to not stop, but to keep looking for when the button appears again but this error happens instead. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Status: Open => Needs information masuo requested more information: Are there FindFaile error messages? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 masuo requested more information: Are there FindFaile error messages? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Status: Answered => Open Lisa Howells is still having a problem: but why does it say findfailed when I'm using while has(image) as soon as the image goes away? I want it to keep searching for the image until it comes up again to click it agian. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Status: Open => Answered masuo proposed the following answer: As a standard behavior Sikuli internally processes about 3 search operations per second. So if "image.png" has existed before about 300 milseconds, has("image.png") return true. https://sikulix-2014.readthedocs.io/en/latest/scripting.html#Settings.ObserveScanRate -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Description changed to: I'm trying to make something simple for a game macro. sometimes a button randomly appears in intervals between 5 and 500 seconds. I want it to detect and click the button within 10 seconds, but to not click if the button doesn't exist. Yet if I try something like: while has(randomButtonImage): click(randomButtonImage) If the button isn't already up, the program closes saying findfailed. if the button is up and I run the program, it goes to the button, clicks it a few times(even after it has disappeared), and then when the button is gone from being clicked the program terminates because it says findfailed. I'm confused because sikuli says it doesn't throw a findfailed for has() in version 1.1.4. All I want it to do is click the button once when it exists (and then the button in the game goes away for 5-500 seconds), and then to keep searching for the button until it comes up again (but not clicking unless it exists, and to stop terminating if the image doesn't exist). Thanks for any help. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Description changed to: I'm trying to make something simple for a game macro. sometimes a button randomly appears in intervals between 5 and 500 seconds. I want it to detect and click the button within 10 seconds, but to not click if the button doesn't exist. Yet if I try something like: while has(randomButtonImage): click(randomButtonImage) If the button isn't already up, the program closes saying findfailed. if the button is up and I run the program, it goes to the button, clicks it a few times(even after it has disappeared), and then when the button is gone from being clicked the program terminates because it says findfailed. I'm confused because sikuli says it doesn't throw a findfailed for has(). All I want it to do is click the button once when it exists (and then the button in the game goes away for 5-500 seconds), and then to keep searching for the button until it comes up again (but not clicking unless it exists, and to stop terminating if the image doesn't exist). Thanks for any help. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Description changed to: I'm trying to make something simple for a game macro. sometimes a button randomly appears in intervals between 5 and 500 seconds. I want it to detect and click the button within 10 seconds, but to not click if the button doesn't exist. Yet if I try something like: while has(randomButtonImage): click(randomButtonImage) If the button isn't already up, the program closes saying findfailed. if the button is up and I run the program, it goes to the button, clicks it a few times(even after it has disappeared), and then when the button is gone from being clicked the program terminates because it says findfailed. I'm confused because sikuli says it doesn't throw a findfailed for has() in version 1.1.4. All I want it to do is click the button once when it exists (and then the button in the game goes away for 5-500 seconds), and then to keep searching for the button until it comes up again (but not clicking unless it exists, and to stop terminating from findfailed if the image doesn't exist). Thanks for any help. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
Question #678325 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678325 Description changed to: I'm trying to make something simple for a game. sometimes a button randomly appears in intervals between 5 and 500 seconds. I want it to detect and click the button within 10 seconds, but to not click if the button doesn't exist. Yet if I try something like: while has(randomButtonImage): click(randomButtonImage) If the button isn't already up, the program closes saying findfailed. if the button is up and I open the program, it goes to the button, clicks it a few times(even after it has disappeared), and then when the button is gone from being clicked the program terminates because it says findfailed. I'm confused because sikuli says it doesn't throw a findfailed for has(). All I want it to do is click the button once when it exists (and then the button goes away), and then to keep searching for the button until it comes up again (but not clicking unless it exists, and to stop terminating if the image doesn't exist). Thanks for any help. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #678325]: If it Can't Find, Closes Early
New question #678325 on Sikuli: https://answers.launchpad.net/sikuli/+question/678325 I'm trying to make something simple for a game. sometimes a button randomly appears in intervals between 5 and 500 seconds. I want it to detect and click the button within 10 seconds, but to not click if the button doesn't exist. Yet if I try something like: while has(randomButtonImage): click(randomButtonImage) If the button isn't already up, the program closes saying findfailed. if the button is up and I open the program, it goes to the button, clicks it a few times(even after it has disappeared), and then when the button is gone from being clicked the program terminates because it says findfailed. All I want it to do is click the button once when it exists (and then the button goes away), and then to keep searching for the button until it comes up again (but not clicking unless it exists, and to stop terminating if the image doesn't exist). Thanks for any help. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp