[Sikuli-driver] [Question #269003]: Is there any way to prompt user with a pop-up saying "Please do not click on screen" and run sikuli script in background.
New question #269003 on Sikuli: https://answers.launchpad.net/sikuli/+question/269003 Is there any way to prompt user with a pop-up saying "Please do not click on screen" and run sikuli script in background. So that user will not click anywhere on screen which causes sikuli script to fail. -- 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 #269003]: Is there any way to prompt user with a pop-up saying "Please do not click on screen" and run sikuli script in background.
Question #269003 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269003 Status: Open => Answered Eugene S proposed the following answer: Sikuli "sees" the screen as it is so if you have a dialog that is blocking any of the user actions, it will block Sikuli actions as well. It isn't possible to run the script in the background. -- 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 #269003]: Is there any way to prompt user with a pop-up saying "Please do not click on screen" and run sikuli script in background.
Question #269003 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269003 Status: Answered => Open RR is still having a problem: Its not necessary to use pop up, I just want to inform user not to click anywhere on screen. -- 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 #269004]: isinstance(Region) vs. isinstance(Region.nearby) not giving the same result
New question #269004 on Sikuli: https://answers.launchpad.net/sikuli/+question/269004 Hello, Tried to search for an answer but did not find anything satisfactory but I'm kinda bad at Internet search (so sorry if an answer already exists) Here is my problem: I'm trying to write some function that performs specific processing based on parameter type (mainly Match or Region). No problem with Match, but Region seems a bit more tricky so I dug a bit more and found out that there seems to have several types of Region, depending where it comes from. This code (with Sikuli 1.0.1): from sikuli import * reg = Region(1,1,100,100) print "Is reg a Region?" if isinstance(reg, Region):print "yes, a Region" else:print "nope, not a Region" print "Is reg.nearby(5) a Region?" if isinstance(reg.nearby(5), Region):print "yes, a Region" else:print "nope, not a Region" gives Is reg a Region? yes, a Region Is reg.nearby(5) a Region? nope, not a Region Seeing this result (which seems strange as documentation says that nearby() "Returns a new Region"), I tried this print "reg class=%s"%reg.__class__ print "reg.nearby(5) class=%s"%reg.nearby(5).__class__ and got reg class= reg.nearby(5) class= So, here comes the question: what am I doing wrong to get reg.nearby(5) not being a Region? Thanks in advance Romuald -- 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 #269003]: Is there any way to prompt user with a pop-up saying "Please do not click on screen" and run sikuli script in background.
Question #269003 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269003 rob barlow posted a new comment: I use this in my script dont know if it will help you... If the mouse s moved it kinda pause the script for me. while True: StartPosition = Env.getMouseLocation() #This variable is set to detect if you are actively moving the mouse. wait(1) EndPosition = Env.getMouseLocation() # while StartPosition != EndPosition: # if mouse is moved wait StartPosition = Env.getMouseLocation() wait(3) EndPosition = Env.getMouseLocation() # you could put in a popup to warn user... popup(" Please Don't Use This Computer / Mouse") # end of loop mouseMove(to somewhere on screen i want) -- 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 #268534]: How to make a video recording of my scripts
Question #268534 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268534 carl ridderstolpe posted a new comment: @Chp this might not be related to any sikuli stuff but this might help. If you wanna rekord theres alot of recording programs but i highly recomend shadowplay(if you got the required nvidia graphics card(free). If you dont use some other free but i recommend buying an used fraps licens and using fraps then using sikuli to opening and recording your Sikuli code in each test i guess your doing. -- 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 #268929]: Openn Login and check if image exists in Desktop application
Question #268929 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268929 carl ridderstolpe posted a new comment: if type dont work its often that you dont have focus in the box youre going to type it in and your typing in thin air. i cant solve the class error but my comment might be something and btw you could actualyl simplify your code alot, for a that simple task it dont have to be that complex -- 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 #268851]: Can sikuli work with only jar path /org/sikuli/sciprt?
Question #268851 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268851 Audus posted a new comment: well the difference between the two is that theres alot of new features in 1.1.0 like ruby and some functrions in the left corner(i havnt really used them all) and a generalyl faster and smother sikuli but thats what you notice once you start using it there might be a bit more to it.Caution all my files that i made in 1.0.1 that worked didnt work in sikuli 1.1.0 for reasons unknown -- 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 #170561]: How to connect to databases
Question #170561 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/170561 guto posted a new comment: So, I'm trying to connect to my very very simply SQLite database (already made in PHP) with only 2 columns. I don't understand the examples in the links, since I don't know Java (and I hate it) :-P Is there a simple way to do this connection and get the information from the database? -- 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 #269003]: Is there any way to prompt user with a pop-up saying "Please do not click on screen" and run sikuli script in background.
Question #269003 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269003 Audus posted a new comment: You could also create a virtual machine to run the script if you feel that you need to use your computer while its running or if you run alot of scripts. i recommend jenkins with a hg repository since its what i use and it works fine unless you try to do 2 pulls simultaneously. -- 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 #268803]: Issue While running the code of Sikuli
Question #268803 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268803 Audus posted a new comment: that the output is null means it dont say anything since null=mute. Plus are you really sure about doubleslash? plus if your friend use the same code you might not have it on the same place in your computer. My suggestion to making the paths more exact is to right click the image files and click properties. there you will se a location for example C:\Sikuli\libs copy that and then simply add \ + file name. If the return still is null it might be a bug or some other error(i was to lazy to actually read your whole code so i only reacted to the null return and the double backslashes. -- 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 1466231] Re: [1.1.0] OS X 10.10: KeyModifier being sent to Sikuli, not to app
Wanted to circle back on this - can you reproduce this issue? -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1466231 Title: [1.1.0] OS X 10.10: KeyModifier being sent to Sikuli, not to app Status in Sikuli: Opinion Bug description: Not yet attempted in Sikuli 1.0.1. OS: Mac OSX Yosemite (10.10.3) METHOD: Script is as follows: App.focus("NameOfApp"); type("r"); # just to confirm that the app has focus type("o", KeyModifier.KEY_CMD); # Cmd-O to open a file RESULT: After the second line, the app reacts to the letter R correctly, proving that the app has focus. However, the Cmd-O opens Sikuli's File Open dialog, not my product's. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1466231/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #269022]: script created with a version fails with another version
New question #269022 on Sikuli: https://answers.launchpad.net/sikuli/+question/269022 Hello, I created scripts with version 1.1.0 build 2015-06-27 and tried to run them again with one of the latest versions 1.1.0 build 2015-06-27 but it either fails in recognition of a pattern or choose the wrong one. I did not change anything in the scripts (same folders locations) nor change the computer (same screen), just running different versions : one is running OK the other one (latest) is failing ([error] FindFailed ) I wonder what would be the best practices to avoid such a liabilty issue ? Thank you for your tips, otherwise it means that each script validated with a version should always be run with the same version. -- 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 #268803]: Issue While running the code of Sikuli
Question #268803 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268803 Status: Needs information => Open Jayshree gave more information on the question: Hi, Thanks for the information, but still I am having issue. Thanks On Wed, Jul 8, 2015 at 7:47 PM, Audus wrote: > Your question #268803 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/268803 > > Audus posted a new comment: > that the output is null means it dont say anything since null=mute. Plus > are you really sure about doubleslash? plus if your friend use the same > code you might not have it on the same place in your computer. My > suggestion to making the paths more exact is to right click the image > files and click properties. there you will se a location for example > C:\Sikuli\libs copy that and then simply add \ + file name. If the > return still is null it might be a bug or some other error(i was to lazy > to actually read your whole code so i only reacted to the null return > and the double backslashes. > > -- > You received this question notification because you asked the 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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process
Question #268981 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268981 Status: Open => Answered RaiMan proposed the following answer: def handler(e): loc = Mouse.at() # store current location wait(3) for i in range(5): if loc.equals(Mouse.at()): # if current location == stored loc, the leave loop (not moved during the last 3 seconds) break; loc = Mouse.at() wait(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 #269004]: isinstance(Region) vs. isinstance(Region.nearby) not giving the same result
Question #269004 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269004 Status: Open => Answered RaiMan proposed the following answer: this is a historical oddity, that we have to live with, because I have to stay with this to be backwards compatible. On the Python API level, there is a Python class Region, that is a superclass of the Java API class with the same name. So depending on how the Region object tested came into life, it is either an instance of the Python class Region or of the Java class Region (org.sikuli.script.Region). The complete (99 %) API of "class Region" is implemented at the Java level. So if a Region.method() returns a new Region object, this is always a org.sikuli.script.Region object (as reg.nearby(5) in your case). You can cast every Region object to be Python Region using reg = Region(reg) Your check case could easily be solved this way: if isinstance(reg, Region) or isinstance(reg, JRegion): print "is a region" JRegion is a name that is created in the global namespace at SikuliX startup using import org.sikuli.script.Region as JRegion to be able to later during init say class Region(JRegion): # define the Python class Region as superclass of org.sikuli.script.Reagion ... -- 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 #269022]: script created with a version fails with another version
Question #269022 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269022 Status: Open => Needs information RaiMan requested more information: could you run with latest 1.1.0 (2015-07-08) and then send me one of the scripts zipped, that do not work to rmhdeve...@me.com ? -- 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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process
Question #268981 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268981 Leif posted a new comment: Once again thanks! Works exactly as intended. I feel horrible to nag you with all these follow-up questions; hope you dont mind! My secondary software is, like sikuli, a program that reads the screen and is sensitive to changes, popups, animations etc. As the script above is performed, another sikuli process is started (lasting less then 1 second) creating two red squares (1 smaller, 1 bigger) to indicate where the mouse is. Would it be possible to disable these two red square animations as they could easily disturb my secondary script. Sorry to be such a nag about the details! -- 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 #269031]: Cant find Settings class
New question #269031 on Sikuli: https://answers.launchpad.net/sikuli/+question/269031 I am trying to turn on the OCR functionality in Sikuli with: Settings.OcrTextRead = true; Settings.OcrTextSearch = true; But when I try to add the Settings class: import org.sikuli.script.Settings; It can't find it. Is that part of the standard sikulixapi.jar file? I set it up with options 2 and 3 checked. -- 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