[Sikuli-driver] [Question #688897]: Why Handler is not working in region.onAppear.?

2020-02-20 Thread Leonardo Castro
New question #688897 on Sikuli: https://answers.launchpad.net/sikuli/+question/688897 Hello. When I run my code, nothing happens, no erros, but also no results. I already checked "comparing" values of image, and image is aways being detected, but handler does not run. What I'm doing wrong?

Re: [Sikuli-driver] [Question #688887]: Click() Implementation in Code

2020-02-20 Thread jeff
Question #67 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/67 Status: Answered => Open jeff is still having a problem: Thank you! I'm starting to get oriented. I'm interpreting "loc" in this line to mean the coordinates are passed in(?). protected static int

Re: [Sikuli-driver] [Question #688872]: Get build number of .exe file

2020-02-20 Thread RaiMan
Question #688872 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688872 RaiMan proposed the following answer: clapping hands ;-) I would not have it done better. ... you might even put the wanted exe-filename as a parameter to the Popen, when saying: ("python",

Re: [Sikuli-driver] [Question #688872]: Get build number of .exe file

2020-02-20 Thread Asheru
Question #688872 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688872 Asheru posted a new comment: **theproc = subprocess.Popen(path_to_GetSetupBuildNumber.py, shell = True,stdout=subprocess.PIPE, stderr=subprocess.STDOUT) -- You received this question notification because

Re: [Sikuli-driver] [Question #688872]: Get build number of .exe file

2020-02-20 Thread Asheru
Question #688872 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688872 Asheru posted a new comment: I found a solution for this. Not the best but simple and quick (works for me). So I have a script named "GetSetupBuildNumber.py", that uses win32 package wich normally would not

[Sikuli-driver] [Bug 1863949] Re: [2.0.2] VNC: capture() returns ScreenImage instead of filename

2020-02-20 Thread RaiMan
ok, thanks for feedback. yes this is a historical oddity with the scripting and Java API: SCREEN.capture() uses a Python implementation, that is bound to the SCREEN object (a quasi constant for Screen(0)). Simply using capture() would yield the same, since all Region/Screen functions are bound

[Sikuli-driver] [Bug 1863949] Re: [2.0.2] VNC: capture() returns ScreenImage instead of filename

2020-02-20 Thread Glenn Tanner
found related, 315005, thanks to getFile command. I suppose you can close, please document this. https://sikulix-2014.readthedocs.io/en/latest/screen.html#Screen.capture >From documentation: Capturing is the feature, to grab a rectangle of pixels from a screenshot and save it to a file for

[Sikuli-driver] [Bug 1863949] Re: [2.0.2] VNC: capture() returns ScreenImage instead of filename

2020-02-20 Thread Glenn Tanner
Hi RaiMan, Thanks for the getFile command. I wanted to point out this is not limited to VNC, I was not clear before. W/O vnc (I have 3 monitors): imagePath = Screen(0).capture() print imagePath imagePath = Screen(1).capture() print imagePath imagePath = Screen(2).capture() print imagePath

Re: [Sikuli-driver] [Question #688886]: Defnition calling another Definition already declared.

2020-02-20 Thread Leonardo Castro
Question #66 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/66 Status: Answered => Solved Leonardo Castro confirmed that the question is solved: Thank you Raiman! -- You received this question notification because your team Sikuli Drivers is an answer contact for

Re: [Sikuli-driver] [Question #688872]: Get build number of .exe file

2020-02-20 Thread RaiMan
Question #688872 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688872 RaiMan proposed the following answer: since "get the build number of an .exe file" is not part of my daily business ;-) I am sorry to leave you alone with that :-( -- You received this question

Re: [Sikuli-driver] [Question #688883]: onAppear handler will be called again

2020-02-20 Thread RaiMan
Question #63 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/63 RaiMan proposed the following answer: everything available is in the docs: https://sikulix-2014.readthedocs.io/en/latest/region.html#observing-visual-events-in-a-region -- You received this question

[Sikuli-driver] [Bug 1863949] Re: [2.0.2] VNC: capture() returns ScreenImage instead of filename

2020-02-20 Thread RaiMan
Sorry for the inconvenience, but VNC is not well documented and not my priority in the moment. You have to live with your workaround. I would suggest to isolate your VNC.capture() into a global function, so you can easily adapt when changes are coming with 2.1.0. looks a bit odd, but this is a

Re: [Sikuli-driver] [Question #688872]: Get build number of .exe file

2020-02-20 Thread Asheru
Question #688872 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/688872 Asheru posted a new comment: @Manfred Hampl Hmm, i wanted to avoid the use of images for this. @RaiMan Ok then, it seems I have to to some research. -- You received this question notification because

Re: [Sikuli-driver] [Question #688883]: onAppear handler will be called again

2020-02-20 Thread larryli
Question #63 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/63 larryli posted a new comment: is there any API or method to control remove onAppear content for example, if image2 is appear, it can remove image1's observe? -- You received this question notification

Re: [Sikuli-driver] [Question #688883]: onAppear handler will be called again

2020-02-20 Thread RaiMan
Question #63 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/63 RaiMan proposed the following answer: yes, exists exits, when the given image appears. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #688883]: onAppear handler will be called again

2020-02-20 Thread larryli
Question #63 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/63 larryli posted a new comment: because, image2 will include same image like image1, so this is the reason I want to remove image1's observer, and also, maybe my image is not good. in fact, I want onAppear

[Sikuli-driver] [Bug 1863949] Re: [2.0.2] VNC: capture() returns ScreenImage instead of filename

2020-02-20 Thread RaiMan
** Summary changed: - capture is returning different data types depending on call + [2.0.2] VNC: capture() returns ScreenImage instead of filename ** Changed in: sikuli Status: New => In Progress ** Changed in: sikuli Importance: Undecided => Medium ** Changed in: sikuli

Re: [Sikuli-driver] [Question #688888]: Lenovo ThinkPad: Win 10 Enterprise: Click not working with Java 8 version 211 and 241

2020-02-20 Thread RaiMan
Question #68 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/68 Status: Open => Answered RaiMan proposed the following answer: Have you tried with Java 13? ... but this definitely is not a SikuliX problem. ... and use the latest stable SikuliX 2.0.2 -- You

Re: [Sikuli-driver] [Question #688888]: Lenovo ThinkPad: Win 10 Enterprise: Click not working with Java 8 version 211 and 241

2020-02-20 Thread RaiMan
Question #68 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/68 Summary changed to: Lenovo ThinkPad: Win 10 Enterprise: Click not working with Java 8 version 211 and 241 -- You received this question notification because your team Sikuli Drivers is an answer contact

Re: [Sikuli-driver] [Question #688886]: Defnition calling another Definition already declared.

2020-02-20 Thread RaiMan
Question #66 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/66 Status: Open => Answered RaiMan proposed the following answer: if a def() is defined with a positional parameter, it MUST be given when called. This is a variant using keyword arguments: def

Re: [Sikuli-driver] [Question #688887]: Click() Implementation in Code

2020-02-20 Thread RaiMan
Question #67 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/67 RaiMan proposed the following answer: ... addition to comment#1: org.sikuli.Script.Region::click -> org.sikuli.Script.Mouse::click ... and finally the real clicking is done via Java AWT Robot

Re: [Sikuli-driver] [Question #688883]: onAppear handler will be called again

2020-02-20 Thread RaiMan
Question #63 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/63 Status: Needs information => Answered RaiMan proposed the following answer: onXXX events are registered per Region (the screen object SCREEN in your case - the main screen). When using observe(), ALL

Re: [Sikuli-driver] [Question #688887]: Click() Implementation in Code

2020-02-20 Thread Manfred Hampl
Question #67 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/67 Status: Open => Answered Manfred Hampl proposed the following answer: The repository that you are referring to is outdated. See the README.md (bottom half of that page): !!!This Sikuli X-1.0rc3 IS NO

Re: [Sikuli-driver] [Question #688883]: onAppear handler will be called again

2020-02-20 Thread Manfred Hampl
Question #63 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/63 Status: Open => Needs information Manfred Hampl requested more information: Is there a typo error handlerX vs. handerX ? onAppear("image1", hander1) def handler1(event): -- You received this question