Re: [Sikuli-driver] [Question #269348]: Unable to install Version 1.0.1 on windows system
Question #269348 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269348 Status: Open => Answered RaiMan proposed the following answer: You should try again with today's build 1.1.0 I fixed the problem: [debug (7/19/15 2:30:30 PM)] FileManager: Downloading selenium4sikulix.jar with unknown size [error (7/19/15 2:30:30 PM)] FileManager: problems while downloading java.net.UnknownHostException: nightly.sikuli.de that let the offline setup 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
Re: [Sikuli-driver] [Question #268861]: Optimize Sikuli Minesweeper Solver
Question #268861 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268861 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 #269439]: Importing Custom sikuli module - [error] NameError ( global name 'click' is not defined )
New question #269439 on Sikuli: https://answers.launchpad.net/sikuli/+question/269439 I have a utility sikuli module that I would like to reuse throughout other sikuli modules my util file looks like: from sikuli import * def helperMethod1(): ... def helperMethod2(): ... So it has from sikuli import * at the beginning. And where I consume it, it's loaded like: utilFunctionsPath = 'MyDir\UtilFunctions' if not utilFunctionsPath in sys.path: sys.path.append(utilFunctionsPath) import UtilFunctions I tried also with the reload(), and read other people's posts too, but the problem persists no matter what. -- 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 #269440]: Sikulix 1.1.0 Onchange-problem
Question #269440 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269440 Description changed to: I am trying to do the following: find a menu, open it and using the onchange-event get the menu points using the text() function. Unfortunately my code doesn't work as expected: import org.sikuli.script.TextRecognizer as TR Settings.OcrReadText = True Settings.OcrLanguage = "deu" TR.reset() def changed(event): print "something changed in ", event.region for ch in event.changes: ch.highlight(5) # highlight all changes r = getLastMatch() menustring = r.text() menustring = menustring.replace(" ", "") print menustring.encode("utf-8") onChange(500, changed) observe(background=True) try: z = "Fenster" match = findText(z) match.highlight(1) menu = match.getTarget() menu.click() pass except FindFailed: pass wait(30) stopObserver() Does anyone have what could be wrong? Cheers! Xenofon -- 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 #269440]: Sikulix 1.1.0 Onchange-problem
New question #269440 on Sikuli: https://answers.launchpad.net/sikuli/+question/269440 I am trying to do the following: find a menu, open it and using the onchange-event get the menu Point using the text() function. Unfortunately my code doesn't work as expected: import org.sikuli.script.TextRecognizer as TR Settings.OcrReadText = True Settings.OcrLanguage = "deu" TR.reset() def changed(event): print "something changed in ", event.region for ch in event.changes: ch.highlight(5) # highlight all changes r = getLastMatch() menustring = r.text() menustring = menustring.replace(" ", "") print menustring.encode("utf-8") onChange(500, changed) observe(background=True) try: z = "Fenster" match = findText(z) match.highlight(1) menu = match.getTarget() menu.click() pass except FindFailed: pass wait(30) stopObserver() Does anyone have what could be wrong? Cheers! Xenofon -- 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 #269442]: Ubuntu - mouse problem - location and rightClick()
New question #269442 on Sikuli: https://answers.launchpad.net/sikuli/+question/269442 Hi, I'm using sikulix API (Java) to run automated GUI tests on a jenkins machine running Ubuntu. Everything works great apart from one thing: I want to right click on a file in the eclipse project explorer and hover/click on the context menu that should popup. I want to to this with the rightclick-function using a match object "m" and a Screen object s. some code: m = m.right().find("test***Generation/com_**_.png"); //Find the file m.rightClick(); //Right click on it. m = s.wait("test***Generation/**.png", 3); //Wait for the context menu to show up This works fine on windows but refuses to work on Ubuntu. Now to the weird part, sikuli finds the picture and hovers to it. It seems to invoke some kind of click on it because it is marked but the context menu refuses to show up . Something I have noticed when running sikuli in Ubuntu is that the cursor does not always follow the click/hover, i.e when I'm clicking on things it is an "invisible cursor". When the tests are done and I'm touching the mouse the cursors always moves to a complete different place on the screen. The location that the cursor moves to when I'm touching the mouse is not right-clickable. Another weird thing is when I only run the three lines of code mentioned above rightClick() works but there is still an "invisible cursor" doing the job. It is not working when I'm running the complete test suite, I'm only using functions from the sikuli API to move the mouse. I'm sry that I can't post all code, Im currently working for a company developing GUI tests for their in house eclipse plugin (therefore the "*" in image path) and can't leave out to much information. I know it might be very hard to reproduce/debug this but I thought that you might have some ideas of what could be the problem or give some tips on how to debug this. Please let me know if you need more information and I'll do my best. Thanks for a great tool, BR Jonas -- 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 #269375]: Load Script
Question #269375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269375 Status: Answered => Open Jeff_Vallis is still having a problem: I know that U are going to think I am Stupid but I can’t find the Beta Downoad Found one but am certain that it is not the same as I used before because the Jar created many folders in my Empty Folder whereas the previous created no folders Previous :- Download Today :- > On 19 Jul 2015, at 10:26:30, RaiMan > wrote: > > Your question #269375 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/269375 > >Status: Open => Answered > > RaiMan proposed the following answer: > just tested on my OS X 10.10.4, Java 8, latest build: no problems > > # script1 (main script) > #from sikuli import * # not needed in main script > print "hello, I am script1" > try: >if we_are_in_rerun: >print "using reload" >reload(script2) > except: >we_are_in_rerun = True >print "using import" >import script2 > > # script2 > from sikuli import * > print "hello, I am script2" > > both scripts in same folder. > > -- 1st run after starting the IDE: > hello, I am script1 > using import > hello, I am script2 > > -- repeating run in same IDE session > hello, I am script1 > using reload > hello, I am script2 > > --- Where can I search for this file on a Mac > the .py file is inside the .sikuli folder, which on Mac is bundle/package. > Finder -> File context menu (right mouse button) -> Show package content > > -- > 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/269375/+confirm?answer_id=5 > > 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/269375 > > 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 #269303]: Text Search off error on image [Sikuli java Eclipse]
Question #269303 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269303 Tepedino posted a new comment: @Eugene: Will try the 1.1.0 here now. @RaiMan: I see, so with this external Jython will I be able to run it with jaba over eclipse? D= Gimme few more mintues and will post here the results. -- 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 #269444]: Three parallel scripts optimization help?
New question #269444 on Sikuli: https://answers.launchpad.net/sikuli/+question/269444 1: https://pastebin.com/fmSBWnuV 2: https://pastebin.com/s1DAyLr3 3: https://pastebin.com/y8NSY7Rg Album: http://imgur.com/a/jxEIv I've just moved over to Sikuli today, and was previously using the trial of Macro Scheduler. I really only needed the image recognition. Sikuli seems to really get bogged down when trying to simultaneously wait for multiple images however, and starts to lag the game that I'm trying to automate, this is likely because it uses Java and I'm running three separate processes of it, so I was wondering if there would be any nice way to cut down on the ram/cpu usage while still scanning for all three of these images. So in the first script I'm waiting for image #2 in the album (which appears in the screen above it) which is the beginning of the match, and the script is to automatically enter spectate mode. In the second script I'm waiting for image #4 in the album (appears in the one above it) so I can automatically hit next to move on to the next map at the end of a match, and the third script encompases the player lobby where I have to create a map playlist, hit enter on the ready button, and then hit enter on the start game button. The looping and excepts in the third script are to deal with afk players who don't ready up, so that it can automatically restart the server (there is no kick feature) It is working perfectly as intended right now, but after running for a while it just starts to lag a lot. My game typically runs at around 90-200 fps, and after running the scripts for about an hour, it starts to drop down to 40-50 fps Here's a video of it running (I made one manual change during the entire video, which was to unready myself during the second lobby, to display the server restarting itself): http://youtu.be/HZyaLn1J1wk After entering spectate mode, and before the results screen appears is when everyone else on the server would be racing. The results screen does not appear during spectate mode until everyone else has finished. I would just like to know if there is a better way of doing what I've already got working so it doesn't end up lagging after running only a short period of time. -- 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Description changed to: 1: https://pastebin.com/fmSBWnuV 2: https://pastebin.com/s1DAyLr3 3: https://pastebin.com/y8NSY7Rg Album: http://imgur.com/a/jxEIv I've just moved over to Sikuli today, and was previously using the trial of Macro Scheduler. I really only needed the image recognition. Sikuli seems to really get bogged down when trying to simultaneously wait for multiple images however, and starts to lag the game that I'm trying to automate, this is likely because it uses Java and I'm running three separate processes of it, so I was wondering if there would be any nice way to cut down on the ram/cpu usage while still scanning for all three of these images. So in the first script I'm waiting for image #2 in the album (which appears in the screen above it) which is the beginning of the match, and the script is to automatically enter spectate mode. In the second script I'm waiting for image #4 in the album (appears in the one above it) so I can automatically hit next to move on to the next map at the end of a match, and the third script encompases the player lobby where I have to create a map playlist, hit enter on the ready button, and then hit enter on the start game button. The looping and excepts in the third script are to deal with afk players who don't ready up, so that it can automatically restart the server (there is no kick feature) It is working perfectly as intended right now, but after running for a while it just starts to lag a lot. My game typically runs at around 90-200 fps, and after running the scripts for about an hour, it starts to drop down to 40-50 fps Here's a video of it running (I made one manual change during the entire video, which was to unready myself during the second lobby, to display the server restarting itself): http://youtu.be/HZyaLn1J1wk After entering spectate mode, and before the results screen appears is when everyone else on the server would be racing. The results screen does not appear during spectate mode until everyone else has finished. I would just like to know if there is a better way of doing what I've already got working so it doesn't end up lagging after running only a short period of time. Edit: Reason I'm using separate scripts instead of putting each one after the other to run in order is so that I can start it (all of them) at any time/screen and it'll work. I might want to play half the maps and then start it, or I might want to start it as soon as I open the server. -- 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 #269439]: Importing Custom sikuli module - [error] NameError ( global name 'click' is not defined )
Question #269439 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269439 Status: Open => Answered RaiMan proposed the following answer: what version of Sikuli? how do you run the main (consuming) script? in any case: utilFunctionsPath = 'MyDir\UtilFunctions' # this must be an absolute path and utilFunctionsPath = 'MyDir\\UtilFunctions' # backslashes must be doubled or utilFunctionsPath = r'MyDir\UtilFunctions' # you use the raw string notation if not utilFunctionsPath in sys.path: sys.path.append(utilFunctionsPath) -- 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 #269449]: How to select and copy multiple/random files through sikuli?
New question #269449 on Sikuli: https://answers.launchpad.net/sikuli/+question/269449 I am trying to select multiple random files through Sikuli IDE but not able to select through keyword syntax? Suppose on C: drive I have one folder TEST 123 and in their folder approx 25 files exists. Now I want to select only 5 files random and copy those files and paste into another folder. Can anyone please help how can I write my code through keyword functions? I am trying to first select and click my 1st file and press CTRL button, now I move down and trying to click SHIFT for selecting 2nd file and next next... This is sample code find("Sample File.png") click("Sample File.png") keyDown(Key.CTRL) type(Key.DOWN) type(Key.DOWN) type(Key.DOWN) type(Key.DOWN) type(Key.SHIFT) type("c", KEY_CTRL) Thanks in advance for the same. -- 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Status: Open => Answered RaiMan proposed the following answer: What version of SikuliX ? It is surely not Sikuli, that lets your game get slower: It either makes your game slow from beginning or not at all. There is nothing, that might raise the consumption of system resources after an hour. Sure, that the game does not have a bot detector? Nevertheless generally: You should read and understand: http://sikulix-2014.readthedocs.org/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen You see: Waiting for something on the whole screen is very costly. So restrict the search region as often as possible. --- Reason I'm using separate scripts instead of putting each one after the other to run in order hava a look at the hotkey feature. -- 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 #269375]: Load Script
Question #269375 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269375 Status: Open => Answered RaiMan proposed the following answer: http://sikulix.com -> nightly button Be sure to start in an empty folder with setup. -- 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 #269449]: How to select and copy multiple/random files through sikuli?
Question #269449 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269449 Status: Open => Answered RaiMan proposed the following answer: do not fiddle around visually, just use Python's baked in file features. look for - how to list files in a folder - how to copy files -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #269442]: Ubuntu - mouse problem - location and rightClick()
Question #269442 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269442 Status: Open => Needs information RaiMan requested more information: Are you running a native Ubuntu on a separate machine sitting in front of a real screen, or is it some virtual environment? If it is real: might be a click internal timing problem: you might setup your own click with the basic mouse ops and intermediate short waits. Any other option (e.g. keyboard) to open the context menu? -- 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Status: Answered => Open Ryan is still having a problem: "You are running SikulixIDE 1.10" "Build: 2015-07-20_01:00nightly" No the game doesn't have any kind of bot detection, it allows modding and anything similar. Yeah, I probably should use regions instead of the entire screen, especially since I'm using Nvidia Surround (5760x1080, where the game is windowed 1920x1080 on the center monitor) I believe this is the cause of most of my lag: http://i.imgur.com/eB5fmCy.png All three of these java processes start when I run the scripts, and they tend to increase in memory usage slowly over time - Would there be any way to optimize my scripts to only need one java process? I couldn't find a way to run scripts in parallel/threaded without having to run them each individually. -- 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 #197294]: Can Sikuli Methods be Overridden?
Question #197294 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/197294 Ryan posted a new comment: I too am hoping for something similar. In my project we are extending the Region class extensively and sometimes need click to have a side effect on the derived class. For example: class checkBox(parentClass): #parentClass is a hierarchy of super classes that implement different domain-specific actions # Parent class eventually inherits from Region and initializes the actual region def __init__(self, region, isSelected): super(checkBox, self).__init__(region) # The super class passes the actual region bounds all of the way up to Region() self.isSelected = isSelected def click(self): super(checkBox, self).click() self.isSelected = not self.isSelected This way I can always do the following: component = checkBox(regionInfo) component.click() I like to keep my elements polymorphic to save lots of code across the automation and references can be passed around based on what is actually found on the screen. Without trying to override click() I am able to use component.click() to click in the center of the component's region. I get a recursion error when I use the code shown. When I try to use parentClass.click() within the click() method I get: TypeError: click(): expected 1-3 args; got 0 Based on this exception it sounds like I really just need to provide some kind of region/instance so I tried to pass self in since it is a region, and even strip the region from the class so that I'm just passing a region: UIBaseClass.click(self) Though this is a single argument I get: TypeError: click() takes exactly 1 argument (3 given) Is there something that can be done to provide the correct argument? -- 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 #269456]: sikuli and jython2.7.0
New question #269456 on Sikuli: https://answers.launchpad.net/sikuli/+question/269456 Hello! I have some problem using Sikuli with Jython2.7.0 on Windows 7 x64. I did install Jython2.7.0, and add syspath for sikuli-java.jar. I tried to import sikuli, but It fails with error "ImportError: cannot import name Debug". so I added another path, "C:\sikuli\sikuli-java.jar\org", but It doesn't help :( how can I solve this problem? thanks for your help. (below is what I did for import sikuli) - c:\jython2.7.0\bin>jython Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_45 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path.insert(6,'C:\sikuli\sikuli-java.jar\Lib') >>> sys.path ['', 'C:\\jython2.7.0\\Lib\\site-packages\\redis-2.10.3-py2.7.egg', 'C:\\jython .7.0\\Lib', '__classpath__', '__pyclasspath__/', 'C:\\jython2.7.0\\Lib\\site-pa kages', 'C:\\sikuli\\sikuli-java.jar\\Lib'] >>> from sikuli import * Traceback (most recent call last): File "", line 1, in File "C:\sikuli\sikuli-java.jar\Lib\sikuli\__init__.py", line 5, in ImportError: cannot import name Debug >>> sys.path.insert(7,'C:\sikuli\sikuli-java.jar\org') >>> >>> >>> from sikuli import * Traceback (most recent call last): File "", line 1, in File "C:\sikuli\sikuli-java.jar\Lib\sikuli\__init__.py", line 5, in ImportError: cannot import name Debug >>> sys.path ['', 'C:\\jython2.7.0\\Lib\\site-packages\\redis-2.10.3-py2.7.egg', 'C:\\jython .7.0\\Lib', '__classpath__', '__pyclasspath__/', 'C:\\jython2.7.0\\Lib\\site-pa kages', 'C:\\sikuli\\sikuli-java.jar\\Lib', 'C:\\sikuli\\sikuli-java.jar\\org'] >>> - -- 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 #269458]: Sikuli wont "Type" only in certain windows.
New question #269458 on Sikuli: https://answers.launchpad.net/sikuli/+question/269458 I tried to use a previously working script today. The scripts starts out by typing the 'p' key. So I opened the program I wanted to script to act on, started the script and made sure the focus was on the correct window. After a few moments I received an error (because the 'p' never registered in the window so the next step couldnt be found) Even though sikuli was telling me it pressed 'p' the program wasn't 'receiving' it for whatever reason. I tested a few times and finally opened a .txt document and ran the script again. Sure enough, Sikuli immediately typed 'p' into the .txt document. So the question is - what might cause a previously working script to fail on a windowed .exe file but run fine in other things (a .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 #269458]: Sikuli wont "Type" only in certain windows.
Question #269458 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269458 Status: Open => Answered Eugene S proposed the following answer: Make sure what window are you focused on. Remember that SIkuli is only going to type like a real use would've. So if the application you are trying to interact with is not currently in focus/not active window, then you won't be able to type into it. Just to check yourself, try to manually type something exactly at the same moment when you wait for you script to start typing and see what happens. -- 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 #197294]: Can Sikuli Methods be Overridden?
Question #197294 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/197294 RaiMan proposed the following answer: @Ryan Inheriting from the class Region on the Python level is problematic. This has historical reasons and is due to the fact, that on the scripting level on can say: click(someThing) instead of someRegion.click(someThing) this is a convenience, that binds these undotted method usages to the "constant" object SCREEN at runTime, which is Screen(0). If you want to do a robust inheritance, then this way: import org.sikuli.script.Region as JavaRegion class myComponent(JavaRegion): pass this way you are directly using the Java class Region, where all the methods are implemented. BTW: I generally do not recommend, to use inheritance, but to implement some wrapper class for your own features. This way, you have more freedom, to switch between the 2 worlds (yours and SikuliX). -- 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 #269456]: sikuli and jython2.7.0
Question #269456 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269456 Status: Open => Answered RaiMan proposed the following answer: -- 1: sikuli-java.jar must be on Java class path before you start Jython -- 2: then put sikuli-java.jar/Lib on sys.path however you 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Status: Open => Answered RaiMan proposed the following answer: Usually one uses the observe feature to watch out for popups, that need to be handled. As far as I can judge, then the short scripts just wait for some popup and take care, that they vanish again, hence a typical case for the observe feature. The other option is to stick with your scripts and use the hotkey feature, to start and stop them from inside the main script. see: http://sikulix-2014.readthedocs.org/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other hotkey: http://sikulix-2014.readthedocs.org/en/latest/interaction.html#listening-to-global-hotkeys -- 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
@raiman: I believe Sketch has a free 30 day trial. It seems like it's anything with multi-window support, so let me know if the trial doesn't work and you need another piece of software that reproduces the 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
Re: [Sikuli-driver] [Question #197294]: Can Sikuli Methods be Overridden?
Question #197294 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/197294 Ryan posted a new comment: One of the reasons we did this was to intentionally block the global undotted methods. The way our testing and framework are set up already removes the ability to run modules as scripts, but further, the flexibility needed requires a structure similar to the page-object model. We create a hierarchy of regions (ex: Screen > Browser > Applications> header, footer, navigation, page > selector frame > checkbox) Each region only knows the region given to it and what components to look for within itself. This means every component uses self.xyz to manipulate the region. Using the Java region still gives me the same issues, so I think I'm going to fore-go the polymorphism and just implement a switchCheckbox(status) method that utilizes click. I did initially have every class contain a region attribute containing the sikuli region, however as I started organizing some of our types things started getting wordy and in some cases did not make sense. Up until now when I wanted to store the status of the checkbox I hadn't noticed any issues with the inheritance, which is why I assumed it was possible. Thanks!! -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #269303]: Text Search off error on image [Sikuli java Eclipse]
Question #269303 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269303 Status: Answered => Open Tepedino is still having a problem: @Eugene: Tried to add 1.1.0 and I got this message: Somethign serious happened! Sikuli not useable! Check the error log at "...\SikuliX-1.1.0-SetupLog.txt" The log: [debug (20/07/15 14:39:31)] Debug: setLogFile: C:\Sikuli 1.1.0\SikuliX-1.1.0-SetupLog.txt [debug (20/07/15 14:39:31)] RunSetup: ... starting with no args given [debug (20/07/15 14:39:31)] RunSetup: Setup: 1.1.0 2015-07-20_01:00nightly in folder: C:\Sikuli 1.1.0 [debug (20/07/15 14:39:31)] RunSetup: RunningSystem: Windows 6.1 [debug (20/07/15 14:39:31)] RunSetup: parent of jar/classes: C:\Sikuli 1.1.0 [debug (20/07/15 14:39:31)] RunSetup: RunningJava: Java 6 (amd64) 1.6.0_22-b04 [debug (20/07/15 14:39:31)] init user preferences [debug (20/07/15 14:40:48)] RunSetup: popAsk: The following file(s) will be downloaded to C:\Sikuli 1.1.0 --- Native support libraries for Windows (sikulixlibs...) --- Package 1 --- sikulixsetupIDE-1.1.0-20150719.231243-133-forsetup.jar (IDE/Scripting) sikulixsetupAPI-1.1.0-20150719.231156-133-forsetup.jar (Java API) - with Jython --- Package 2 --- sikulixsetupAPI-1.1.0-20150719.231156-133-forsetup.jar (done in package 1) Only click NO, if you want to terminate setup now! Click YES even if you want to use local copies in Downloads! [debug (20/07/15 14:40:53)] RunSetup: popAsk: You have for Windows native libs C:\Users\augusto.martins\AppData\Roaming\Sikulix\SikulixDownloads_201507200100\sikulixlibswin-1.1.0-20150719.230303-209.jar Click YES, if you want to use this for setup processing ... or click NO, to ignore it and download a fresh copy [debug (20/07/15 14:41:08)] RunSetup: Copied from Downloads: sikulixlibswin [debug (20/07/15 14:41:08)] FileManager: resetFolder: C:\Users\augusto.martins\AppData\Roaming\Sikulix\sikulixlibs\windows jar:file:/C:/Sikuli 1.1.0/sikulixlibswin.jar [error (20/07/15 14:41:08)] RunTimeSETUP: doResourceListJar: java.io.EOFException: Unexpected end of ZLIB input stream [debug (20/07/15 14:41:08)] FileManager: download to string from: https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.0-SNAPSHOT/maven-metadata.xml, [debug (20/07/15 14:41:09)] RunSetup: getMavenJar: sikulixsetupAPI-1.1.0-20150719.231156-133-forsetup.jar [debug (20/07/15 14:41:09)] FileManager: Downloading sikulixsetupAPI-1.1.0-20150719.231156-133-forsetup.jar having 2036 KB [debug (20/07/15 14:42:49)] FileManager: downloaded 2036 KB to: C:\Users\augusto.martins\AppData\Roaming\Sikulix\SikulixDownloads_201507200100\sikulixsetupAPI-1.1.0-20150719.231156-133-forsetup.jar [debug (20/07/15 14:42:49)] FileManager: download time: 99 [debug (20/07/15 14:42:52)] RunSetup: Copied from Downloads: sikulixapi [debug (20/07/15 14:42:52)] FileManager: resetFolder: C:\Users\augusto.martins\AppData\Roaming\Sikulix\Lib jar:file:/C:/Sikuli 1.1.0/sikulixapi.jar [debug (20/07/15 14:42:52)] FileManager: download to string from: https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.0-SNAPSHOT/maven-metadata.xml, [debug (20/07/15 14:42:52)] RunSetup: getMavenJar: sikulixsetupIDE-1.1.0-20150719.231243-133-forsetup.jar [debug (20/07/15 14:42:53)] FileManager: Downloading sikulixsetupIDE-1.1.0-20150719.231243-133-forsetup.jar having 4062 KB [debug (20/07/15 14:49:08)] FileManager: downloaded 4062 KB to: C:\Users\augusto.martins\AppData\Roaming\Sikulix\SikulixDownloads_201507200100\sikulixsetupIDE-1.1.0-20150719.231243-133-forsetup.jar [debug (20/07/15 14:49:08)] FileManager: download time: 374 [debug (20/07/15 14:49:11)] RunSetup: Copied from Downloads: sikulix [debug (20/07/15 14:49:11)] RunSetup: running on Java 6: need to use Jython 2.5 - which is downloaded [debug (20/07/15 14:49:12)] FileManager: Downloading jython-standalone-2.5.4-rc1.jar having 10052 KB [debug (20/07/15 14:56:25)] FileManager: downloaded 10052 KB to: C:\Users\augusto.martins\AppData\Roaming\Sikulix\SikulixDownloads\jython-standalone-2.5.4-rc1.jar [debug (20/07/15 14:56:25)] FileManager: download time: 432 [debug (20/07/15 14:56:28)] RunSetup: Copied from Downloads: Jython [debug (20/07/15 14:56:28)] RunSetup: Download ended [debug (20/07/15 14:56:28)] RunSetup: Downloads for selected options: sikulixsetupIDE-1.1.0-20150719.231243-133-forsetup.jar sikulixsetupAPI-1.1.0-20150719.231156-133-forsetup.jar jython-standalone-2.7.0.jar [debug (20/07/15 14:56:28)] RunSetup: adding needed stuff to sikulixapi.jar [debug (20/07/15 14:56:28)] FileManager: buildJar: sikulixtemp.jar [debug (20/07/15 14:56:28)] FileManager: buildJar: adding: sikulixapi.jar [debug (20/07/15 14:56:29)] FileManager: buildJar: adding: sikulixlibswin.jar [error (20/07/15 14:56:29)] FileManager: buildJar: java.io.EOFException: Unexpected end of ZLIB input stream [debug (20/07/15 14:56:29)] RunSetup: renaming sikuli
Re: [Sikuli-driver] [Question #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Ryan posted a new comment: Ah, thanks. The observe feature looks like what I needed, just have to read up on how to implement it now. -- 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Status: Answered => Solved Ryan confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #269466]: Holding key down with keyDown() isn't repeating the key
New question #269466 on Sikuli: https://answers.launchpad.net/sikuli/+question/269466 I'm trying to test a Windows application that lists options when the 'o' key is held down for about a second. This is the script I tried: keyDown('o') wait(3) keyUp() However, the only effect seems to be that the letter 'o' is typed once. I've tried keyDown/keyUp with other keys, to see what happens. When I manually press a letter key, that letter is typed repeatedly until I release the key. But using keyDown/keyUp in Sikuli, the letter is only typed once. How would I achieve the same effect as manually holding down a key? -- 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 #269458]: Sikuli wont "Type" only in certain windows.
Question #269458 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269458 Status: Answered => Open Edward is still having a problem: As I mentioned, I did make sure of the focus. After playing with it a bit more, I have also noticed that it seems to do image recognition in the scripts, and sikuli SAYS and THINKS its typing and clicking, but its not reaching .exe files.. (but it does register in a .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 #243573]: trouble with checkbox popup
Question #243573 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/243573 anuj requested more information: Hello RaiMan and Rob, i am trying to implement similar user input function as rob mentioned (i.e. multicheckbox) and i am facing the same issue of script not waiting to listen any mouse events(i.e click of button). i tried using the button.addMouseListener(self) method on Jbutton but its not working. If possible can you help out solve this issue? Any help is greatly appreciated. @Rob : Anyluck while trying to solve this issue? Please let me know if you found out the solution :). Again Appreciate your help in advance. Thanks, AP -- 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 #269442]: Ubuntu - mouse problem - location and rightClick()
Question #269442 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269442 Status: Needs information => Open Jonas Eriksson gave more information on the question: I'm running Ubuntu on a virtual machine (VMware) on my laptop. I have tried this solution: m.click(); // Focus the file m.mouseDown(Mouse.RIGHT); //Right click file Thread.sleep(300); //Wait a bit. m.mouseUp(); //Release Seems to work better but I still have this location issue. I now get the context menu and I can hover to the correct place. At this place I expect it to be marked and a submenu to appear to the right. But it is not marked and therefore no submenu appears. As I mentioned above, when I touch the mouse the cursor is moved to a complete different place. I suspect that this could be the problem, the "real" position is not where the cursor is and therefore it is not marked. I'm just assuming here, not an expert on this area. You can open the context menu with the menu key but this is really the last solution I want to do. I hope this information helps a 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