Re: [Sikuli-driver] [Question #263891]: Scripts recording tool do you need one?
Question #263891 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263891 Eugene Maslov posted a new comment: Hi all, I have been using for several years a recorder which captures the images and puts the actions into the workflow, but finally I found that typing scripts by hands in Sikuli is more efficient, because: 1. Buttons and other screen elements almost always get highlighted and become different when the mouse is over them. Moreover, in most remote desktops, the mouse is drawn on the screenshots. Therefore the recorded images are too often useless for playback with search of the images on the screen. 2. Even if not highlighted, the images are captured without any sense, named mostly by time, and placed into the scripts by their names. When you have several dozens of test scripts, the system becomes non-maintainable: when programmers change an icon on one button, you have to update manually every script. It's even often easier to record them again than to update. The problem can be solved if you have GUI map of common images and provide that the scripts refer to the same images when you click them during the record, but it will require image recognition capability from the recorder, that can really become a large task. Instead, if you write the script manually, you can do it easily, so that you can change only one image when something changes in the tested application. 3. Manually you write clever scripts, finding screen contents by relative positions with left(), above() etc., so that the scripts survive future GUI changes occurring during software development. But with the automatic recorder, it's quite difficult to provide that it understands what spatial relations you mean. It's still possible to record the actions and them to edit the script manually, inserting necessary logics, but in this case the recording itself does not save significant time. So, I suggest, writing a practically useful recorder can require much more work than it seems initially. -- 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 #264026]: how to install Sikuli on windows 8.1 64 bit 3 monitors
Question #264026 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264026 Status: Answered => Open Salam is still having a problem: Hi, Thank you for your swift response, unfortunately the answer you are pointing me to not resolving my problem, I am running windows 8.1 64bit operating system. 1- when I install SikuliX then I click on the camera to capture an image Sikuli disappears then I have to go to the task manager to end javaW.exe process. 2- It installs as win 32 under program files (x86). 3- according to your link there are 2 files to down load obviously I have downloaded the (sikuli-setup.jar (md5) ) is this the one that suppose to work with windows 8.1 64 bit ? appreciate your help Sikuli-1.0.1-Supplemental-LinuxVisionProxy.zip (md5) New per 2014 Feb 20th: Having problems with bundled libVisionProxy.so? Try to build it using this package. NEW VERSION: More Automatics! Should do the job on more Linux systems (for version 1.0.1 ONLY !!!) download - unzip - LOOK into README.txt !!! 8,301 last downloaded today sikuli-setup.jar (md5) One setup for all systems (15300) - download in an empty folder and double-click - read carefully before clicking any option 148,808 last downloaded today http://www.salamalhakami.comMicrosoft Certified Technology Specialist (MCTS) : Asp.netMicrosoft Certifed Professional (MCP) VB.net / Asp.netCertified Internet Webmaster (CIW) : Html > To: salam...@hotmail.com > From: question264...@answers.launchpad.net > Subject: Re: [Question #264026]: how to install Sikuli on windows 8.1 64 bit > 3 monitors > Date: Sun, 22 Mar 2015 18:36:38 + > > Your question #264026 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/264026 > > Status: Open => Answered > > RaiMan proposed the following answer: > see > http://sikulix.com > > multi-monitor is principally supported, but until final 1.1.0 there > might be surprises here and there ;-) > > earlier versions might not work at all. > > -- > 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/264026/+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/264026 > > 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
[Sikuli-driver] [Bug 1384494] Re: [1.1.0] screen.capture only Screen(0) in multi-monitor
** Summary changed: - [1.1.0 Beta] screen.capture only Screen(0) in multi-monitor + [1.1.0] screen.capture only Screen(0) in multi-monitor ** Changed in: sikuli Status: In Progress => Fix Committed ** Changed in: sikuli Importance: High => Critical -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1384494 Title: [1.1.0] screen.capture only Screen(0) in multi-monitor Status in Sikuli: Fix Committed Bug description: this works with version 1.1.0 scrs = [] dir = getBundlePath() for n in range(getNumberScreens()): scrs.append(Screen(n).getScreen()) # to get the Java level object for scr in scrs: filename = "screen%d" % scr.getID() scr.capture().getFile(dir, filename) captures of the screens are saved to the bundle as screenN.png --- Sikuli version: 1.1.0-Beta2 I want to capture each screen separately every 2 seconds and wrote the following code to achieve it: import os import shutil import datetime screenshotsDir = r"C:\Users\Sikuli\Temp\Exceptions" screens = [Screen(id) for id in range(Screen().getNumberScreens())] print screens # Prints [S(0)[0,0 1920x1080] E:Y, T:3.0, S(1)[-1920,0 1920x1080] E:Y, T:3.0] print Screen().getNumberScreens() # Prints 2 while True: for _dx, screen in enumerate(screens): print screen.getBounds() # Prints java.awt.Rectangle[x=0,y=0,width=1920,height=1080] and java.awt.Rectangle[x=-1920,y=0,width=1920,height=1080] respectively img = screen.capture(screen.getBounds()) time_now = datetime.datetime.now().strftime("%H%M%S") img_target = "{}.S{}.png".format(time_now, _dx) target = os.path.join(screenshotsDir, img_target) shutil.move(img, target) time.sleep(2) Unfortunately, when I go and check the screenshots, I see that Sikuli only grabbed S(0) for both monitors although the code print output gives all the right information! To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1384494/+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] [Bug 1384494] Re: [1.1.0] screen.capture only Screen(0) in multi-monitor
** Description changed: + this works with version 1.1.0 + + scrs = [] + dir = getBundlePath() + for n in range(getNumberScreens()): + scrs.append(Screen(n).getScreen()) # to get the Java level object + for scr in scrs: + filename = "screen%d" % scr.getID() + scr.capture().getFile(dir, filename) + + captures of the screens are saved to the bundle as screenN.png + --- + Sikuli version: 1.1.0-Beta2 I want to capture each screen separately every 2 seconds and wrote the following code to achieve it: import os import shutil import datetime screenshotsDir = r"C:\Users\Sikuli\Temp\Exceptions" screens = [Screen(id) for id in range(Screen().getNumberScreens())] print screens # Prints [S(0)[0,0 1920x1080] E:Y, T:3.0, S(1)[-1920,0 1920x1080] E:Y, T:3.0] print Screen().getNumberScreens() # Prints 2 while True: - for _dx, screen in enumerate(screens): - print screen.getBounds() # Prints java.awt.Rectangle[x=0,y=0,width=1920,height=1080] and java.awt.Rectangle[x=-1920,y=0,width=1920,height=1080] respectively + for _dx, screen in enumerate(screens): + print screen.getBounds() # Prints java.awt.Rectangle[x=0,y=0,width=1920,height=1080] and java.awt.Rectangle[x=-1920,y=0,width=1920,height=1080] respectively - img = screen.capture(screen.getBounds()) - time_now = datetime.datetime.now().strftime("%H%M%S") - img_target = "{}.S{}.png".format(time_now, _dx) + img = screen.capture(screen.getBounds()) + time_now = datetime.datetime.now().strftime("%H%M%S") + img_target = "{}.S{}.png".format(time_now, _dx) - target = os.path.join(screenshotsDir, img_target) - shutil.move(img, target) + target = os.path.join(screenshotsDir, img_target) + shutil.move(img, target) - time.sleep(2) + time.sleep(2) Unfortunately, when I go and check the screenshots, I see that Sikuli only grabbed S(0) for both monitors although the code print output gives all the right information! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1384494 Title: [1.1.0] screen.capture only Screen(0) in multi-monitor Status in Sikuli: Fix Committed Bug description: this works with version 1.1.0 scrs = [] dir = getBundlePath() for n in range(getNumberScreens()): scrs.append(Screen(n).getScreen()) # to get the Java level object for scr in scrs: filename = "screen%d" % scr.getID() scr.capture().getFile(dir, filename) captures of the screens are saved to the bundle as screenN.png --- Sikuli version: 1.1.0-Beta2 I want to capture each screen separately every 2 seconds and wrote the following code to achieve it: import os import shutil import datetime screenshotsDir = r"C:\Users\Sikuli\Temp\Exceptions" screens = [Screen(id) for id in range(Screen().getNumberScreens())] print screens # Prints [S(0)[0,0 1920x1080] E:Y, T:3.0, S(1)[-1920,0 1920x1080] E:Y, T:3.0] print Screen().getNumberScreens() # Prints 2 while True: for _dx, screen in enumerate(screens): print screen.getBounds() # Prints java.awt.Rectangle[x=0,y=0,width=1920,height=1080] and java.awt.Rectangle[x=-1920,y=0,width=1920,height=1080] respectively img = screen.capture(screen.getBounds()) time_now = datetime.datetime.now().strftime("%H%M%S") img_target = "{}.S{}.png".format(time_now, _dx) target = os.path.join(screenshotsDir, img_target) shutil.move(img, target) time.sleep(2) Unfortunately, when I go and check the screenshots, I see that Sikuli only grabbed S(0) for both monitors although the code print output gives all the right information! To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1384494/+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 #264026]: how to install Sikuli on windows 8.1 64 bit 3 monitors
Question #264026 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264026 Status: Open => Answered RaiMan proposed the following answer: you should directly switch to version 1.1.0 http://sikulix.com -> nightly builds this definitely works on Windows 8 64-Bit (just tested some multi- monitor issues on my Windows 8 ;-) -- 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 #236226]: Status of bug #1221062 changed to 'Fix Released' in Sikuli
Bug #1221062 status changed in Sikuli: Fix Committed => Fix Released https://bugs.launchpad.net/sikuli/+bug/1221062 "[1.0.1] Yellow banner should be invisible in the standard" This bug is linked to #236226. [1.0.1] how to run Sikuli script without Yellow popup box? https://answers.launchpad.net/sikuli/+question/236226 -- 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 1221062] Re: [1.0.1] Yellow banner should be invisible in the standard
** Changed in: sikuli Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1221062 Title: [1.0.1] Yellow banner should be invisible in the standard Status in Sikuli: Fix Released Bug description: Add an option to disable the yellow banner like --nobanner. When I start sikuli using command line, each time sikuli starts, a yellow banner is displayed. I don't like yellow (:)). And I think this banner is not really useful when starting sikuli using command line. YC To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1221062/+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 #263876]: trying to run 'runIDE' script on mac, getting error: Unable to access jarfile /sikuli-ide.jar
Question #263876 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263876 Status: Answered => Open David Douglas is still having a problem: OK, that worked: java -Dsikuli.fromCommandLine -jarApplications/SikuliX- IDE.app/Contents/sikuli-ide.jar -r sikuli_costar.sikuli HOWEVER, the stupid popup asking me for extra command line options in the GUI still comes up, stalling the entire process. The command line options are successfully passed in however. -- 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 #263785]: How do I prevent the sikuli-ide from manually asking for command line options via the initial GUI popup?
Question #263785 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263785 Status: Solved => Open David Douglas is still having a problem: I still haven't solved this issue. I'm running this command successfully, except for that the GUI/popup asking for command line options stalls the entire process and still requires GUI-based user input to click on the OK button of the GUI popup asking for command line options that I've already passed in I ran this command to get this far: java -Dsikuli.fromCommandLine -jarApplications/SikuliX- IDE.app/Contents/sikuli-ide.jar -r sikuli_costar.sikuli It runs after I click the damned OK button. Perhaps there is an option I could pass in that would disable the infernal popup? -- 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 #263891]: Scripts recording tool do you need one?
Question #263891 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263891 DenisD posted a new comment: Hi Eugene! I agree with all points that you mentioned, but let me share why I found the script writer extremely useful. By now, I'm using it simply to take pictures. It has significantly reduced my time to capture the required images. The panel is always on top of my screen and when I need to take some screenshots I just press Record button and start cutting. When I press Stop I get all my clicks written in script and all my images stored in the particular place. Then I copy the commands to my main script and continue coding. I save time by not using a snipping tool (especially for linux there is no such handy tool like for windows), not think about the images names, not choosing the directory to save the images and not writing the click commands. -- 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 #264096]: Is it possible to click on non rectangle shaped images?
New question #264096 on Sikuli: https://answers.launchpad.net/sikuli/+question/264096 Hi guys! I'm doing testing of one difficult system that contains too many objects on the screen and sometimes it is very difficult to take a rectangle-shaped pic that will differs from the others. Could you kindly advise me if it's possible to prepare a non-standard shaped pictures and say sikuli where exactly it should click? For example, |-| |..| ...|..| ...|..| ...|--X-| I tried to show a L-shaped picture, where dots are empty space and X is the dot where sikuli should click. 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 #264096]: Is it possible to click on non rectangle shaped images?
Question #264096 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264096 Status: Open => Answered Eugene S proposed the following answer: Hi, Currently it is impossible. You can try to combine multiple patterns however to fit your case. For example if you could check whether a specific rectangular pattern exists on the right from other specific pattern. This way you might be able to cover a more complex cases. -- 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