[Sikuli-driver] [Question #250510]: Unhiding Sikuli while script running?
New question #250510 on Sikuli: https://answers.launchpad.net/sikuli/+question/250510 My script works great, except I want it running once a day, so I added a while true loop. However, the Sikuli IDE window closes, and so I can't see any output nor can I stop the script if I want to... There must be a way to show Sikuli in the system tray or something, no? -- 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 #250510]: Unhiding Sikuli while script running?
Question #250510 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250510 Status: Open = Answered RaiMan proposed the following answer: Currently there is no option, to show the IDE message area output while running a script. You have to run your script from a commandline or start the IDE from a command line window with option -c, to see the output in the command line window. -- 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 #250465]: Is it possible to do this in Sikuli?
Question #250465 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250465 mark645 posted a new comment: hey RaiMan its a app that i've kinda hacked together very cluggy on iphone. Im connected to it via a VNC, so basically on my screen on my computer is the iphone relayed. Could you give me a example of what you think might work. I'm new to the sikuli code platform and I'm kinda making my way with all this stuff TBH. Would appreciate seeing how you think it might work so I could try it out. @rss(rssdev10) i checked out selenium seems to be a kiddie version of sikuli? like it only operates within the browser? -- 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 #250465]: Is it possible to do this in Sikuli?
Question #250465 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250465 rss proposed the following answer: Selenium operates only with browsers. But it allows control web page from an external testing script like from an internal javascript. It is possible to manipilate by all html elements on the page. For accessing to elemetns is used XPath. Selenium script may be written e.g. on Ruby. BTW: https://code.google.com/p/sikuli-api/wiki/SikuliWebDriver -- 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 #250465]: Is it possible to do this in Sikuli?
Question #250465 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250465 RaiMan proposed the following answer: LOL, that's nice … Selenium being a kiddie version of sikuli. … but totally wrong: both are automation/testing tools and might be combined in different ways. Where Selenium knows the internals of the web app's GUI and allows to walk through the GUI elements and access their contents, Sikuli does not know anything about the internals of an automated/tested application, but only sees the pixels on the screen and allows to work visually. WYSIWYS --- What you see is what you script. The net has tons of examples, so pls. start with looking around here and everywhere. I do not have the time to get you on the road. I have to concentrate on answering concrete questions and further develop 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
[Sikuli-driver] [Question #250534]: (Portuguese) Como chamar um script dentro de outro?
A question was asked in a language (Portuguese) spoken by none of the registered Sikuli answer contacts. https://answers.launchpad.net/sikuli/+question/250534 Preciso criar um script onde chamo outros scrpts criados em outro documento. Exemplo: Tenho o script de Login e de Acessar o menu 'Cadastro Cliente' e quero criar um script onde eu digo pra executar primeiro o script do Login e depois o de Acessar o menu 'Cadastro Cliente'. Obrigado desde já! -- 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 #250535]: Calling a script within another?
New question #250535 on Sikuli: https://answers.launchpad.net/sikuli/+question/250535 I need to create a script where I call other scrpts created in another document. example: I have the script for Login and Access 'Sign Up Customer menu and want to create a script where I tell the script to execute first and then Login to access the' Sign Up Customer menu. 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
[Sikuli-driver] [Question #250540]: How can, step by step, Regions and edit on sikuli IDE?
New question #250540 on Sikuli: https://answers.launchpad.net/sikuli/+question/250540 I'm new in the Sikuli script. I need to create a region for documment the behavior of that, but I just find intructions like: 1 Region(x,y,w,h) I know what means each latter, but I need after make edit that region, maybe change the dimension or the position in the main window. 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
[Sikuli-driver] [Bug 1332260] Re: [1.1.0-Beta1] click() fails on anything but Screen(0)
@RaiMan, Thanks again for looking into this. I can definitely help you troubleshoot and (perhaps) FIX this! The info messages actually show the correct coordinates where the click SHOULD go but the actual click happens on the other screen Tell me where to look and how to turn more tracing on for the actual click function and I can work on this with you. It seems as if Sikuli is correctly computing the coordinates, but the actual (AWT?) library is not translating it to the right onscreen coordinates? -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1332260 Title: [1.1.0-Beta1] click() fails on anything but Screen(0) Status in Sikuli: Fix Committed Bug description: SikuliX Setup Build: 1.1.0-Beta1 2014-05-30-18 My sikuli script is able to locate the button fine and highlight even highlights the correct button, however click fails Thinking that click was failing due to color change, I explicitly grabbed the location (coordinates) from the match and passed it to click but click still fails I have tried to put in wait(), set ClickDelay, used hover before clicking: nothing works. My script fails if it runs on anything but Screen(0) If I keep the screen I'm trying to click on on my primary display, the script executes just fine! The issue is that the script outputs all the correct coordinates as per Screen(1) but the click actually happens on Screen(0)! Here is what my code looks like: Settings.setShowActions(True) Settings.ActionLogs = True Settings.InfoLogs = True Settings.DebugLogs = True SCR1 = Screen(1) p1 = Pattern(1402973791825.png) p2 = Pattern(1402972955014.png) goOn = True while goOn: try: x1 = SCR1.find(p1.exact()) print x1 #hover(x1) goOn = False except FindFailed: x2 = SCR1.find(p2.exact()) x2l = x2.getTarget() print x2l x2h = x2.hover() print x2h x2h = x2.hover() print x2h x2.highlight(5) # icon on hover becomes darker #sleep(100) x2c = x2.doubleClick() print x2c x2.highlight(5) x2.hover(p2) wait(0.5) Settings.ClickDelay = 0.3 x2c = x2.click(p2) print x2c goOn = False x2c = x2.mouseDown(Button.LEFT) print x2c x2c = x2.mouseUp(Button.LEFT) print x2c To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1332260/+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 #250535]: Calling a script within another?
Question #250535 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250535 Status: Open = Answered RaiMan proposed the following answer: best is to put the snippets, that should be reused into functions (def) and call these as needed. a bunch of def's can be packed into a module script, that can be imported into other scripts, to make the def's available. see: http://sikulix-2014.readthedocs.org/en/latest/globals.html #importing-other-sikuli-scripts-reuse-code-and-images -- 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 #250540]: How can, step by step, Regions and edit on sikuli IDE?
Question #250540 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/250540 Status: Open = Answered RaiMan proposed the following answer: see the docs: http://sikulix-2014.readthedocs.org/en/latest/region.html#region -- 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 1332260] Re: [1.1.0-Beta1] click() fails on anything but Screen(0)
Thanks for wanting to help. But I think I have fixed it now (tested on Mac and Windows). A new build will be available on Monday (the git repo is up to date). -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1332260 Title: [1.1.0-Beta1] click() fails on anything but Screen(0) Status in Sikuli: Fix Committed Bug description: SikuliX Setup Build: 1.1.0-Beta1 2014-05-30-18 My sikuli script is able to locate the button fine and highlight even highlights the correct button, however click fails Thinking that click was failing due to color change, I explicitly grabbed the location (coordinates) from the match and passed it to click but click still fails I have tried to put in wait(), set ClickDelay, used hover before clicking: nothing works. My script fails if it runs on anything but Screen(0) If I keep the screen I'm trying to click on on my primary display, the script executes just fine! The issue is that the script outputs all the correct coordinates as per Screen(1) but the click actually happens on Screen(0)! Here is what my code looks like: Settings.setShowActions(True) Settings.ActionLogs = True Settings.InfoLogs = True Settings.DebugLogs = True SCR1 = Screen(1) p1 = Pattern(1402973791825.png) p2 = Pattern(1402972955014.png) goOn = True while goOn: try: x1 = SCR1.find(p1.exact()) print x1 #hover(x1) goOn = False except FindFailed: x2 = SCR1.find(p2.exact()) x2l = x2.getTarget() print x2l x2h = x2.hover() print x2h x2h = x2.hover() print x2h x2.highlight(5) # icon on hover becomes darker #sleep(100) x2c = x2.doubleClick() print x2c x2.highlight(5) x2.hover(p2) wait(0.5) Settings.ClickDelay = 0.3 x2c = x2.click(p2) print x2c goOn = False x2c = x2.mouseDown(Button.LEFT) print x2c x2c = x2.mouseUp(Button.LEFT) print x2c To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1332260/+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 1332260] Re: [1.1.0-Beta1] click() fails on anything but Screen(0)
@RaiMan, that was quick! Thanks again. Can you point me to the commit on github so I can see what the fix was? I'll anxiously wait for the Monday release. Have a great weekend! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1332260 Title: [1.1.0-Beta1] click() fails on anything but Screen(0) Status in Sikuli: Fix Committed Bug description: SikuliX Setup Build: 1.1.0-Beta1 2014-05-30-18 My sikuli script is able to locate the button fine and highlight even highlights the correct button, however click fails Thinking that click was failing due to color change, I explicitly grabbed the location (coordinates) from the match and passed it to click but click still fails I have tried to put in wait(), set ClickDelay, used hover before clicking: nothing works. My script fails if it runs on anything but Screen(0) If I keep the screen I'm trying to click on on my primary display, the script executes just fine! The issue is that the script outputs all the correct coordinates as per Screen(1) but the click actually happens on Screen(0)! Here is what my code looks like: Settings.setShowActions(True) Settings.ActionLogs = True Settings.InfoLogs = True Settings.DebugLogs = True SCR1 = Screen(1) p1 = Pattern(1402973791825.png) p2 = Pattern(1402972955014.png) goOn = True while goOn: try: x1 = SCR1.find(p1.exact()) print x1 #hover(x1) goOn = False except FindFailed: x2 = SCR1.find(p2.exact()) x2l = x2.getTarget() print x2l x2h = x2.hover() print x2h x2h = x2.hover() print x2h x2.highlight(5) # icon on hover becomes darker #sleep(100) x2c = x2.doubleClick() print x2c x2.highlight(5) x2.hover(p2) wait(0.5) Settings.ClickDelay = 0.3 x2c = x2.click(p2) print x2c goOn = False x2c = x2.mouseDown(Button.LEFT) print x2c x2c = x2.mouseUp(Button.LEFT) print x2c To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1332260/+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