Re: [Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0

2015-07-13 Thread Pierre Best
Question #269048 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269048 Pierre Best posted a new comment: try: import org.sikuli.basics.SikuliXforJython except ImportError: import org.sikuli.basics.SikulixForJython from sikuli import * -- You received this question

[Sikuli-driver] [Bug 1463866] Re: Sikuli 1.1.0 tries to close my IDE

2015-07-10 Thread Pierre Best
Sorry but constructing the App object before calling open() doesn't work. Creating an App object starts the application. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1463866 Title: Sikuli

[Sikuli-driver] [Bug 1463866] Re: Sikuli 1.1.0 tries to close my IDE

2015-07-10 Thread Pierre Best
And it still send the Alt-F4 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1463866 Title: Sikuli 1.1.0 tries to close my IDE Status in Sikuli: New Bug description: IntelliJ IDEA

Re: [Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0

2015-07-09 Thread Pierre Best
Question #269048 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269048 Description changed to: I've got a script which has to work in 1.0.1 and 1.1.0. My problem is that the import org.sikuli.basics.SikuliXforJython statement in 1.0.1 has changed to import

[Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0

2015-07-09 Thread Pierre Best
New question #269048 on Sikuli: https://answers.launchpad.net/sikuli/+question/269048 I've got a script which has to work in 1.0.1 and 1.1.0. My problem is that the import org.sikuli.basics.SikuliXforJython statement in 1.0.1 has changed to import org.sikuli.basics.SikulixForJython in 1.0.1 (Xf

Re: [Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0

2015-07-09 Thread Pierre Best
Question #269048 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269048 Status: Open = Solved Pierre Best confirmed that the question is solved: Ignore this question. I'm just going to do each import inside try: except: statements -- You received this question

[Sikuli-driver] [Bug 1463866] Re: Sikuli 1.1.0 tries to close my IDE

2015-07-01 Thread Pierre Best
Any progress with this? -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1463866 Title: Sikuli 1.1.0 tries to close my IDE Status in Sikuli: New Bug description: IntelliJ IDEA (Cassiopeia)

[Sikuli-driver] [Bug 1463866] Re: Sikuli 1.1.0 tries to close my IDE

2015-06-11 Thread Pierre Best
Reproduces with 1.1.0-20150610 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1463866 Title: Sikuli 1.1.0 tries to close my IDE Status in Sikuli: New Bug description: IntelliJ IDEA

[Sikuli-driver] [Bug 1463866] Re: Sikuli 1.1.0 tries to close my IDE

2015-06-11 Thread Pierre Best
def start_app(path_to_app, window_title): p = os.path.normpath(path_to_app) if not os.path.exists(p): die('cannot find %s: expected - %s' % (window_title, p)) app = App.open(p) if not app: die('cannot start %s' % window_title) ... then more stuff that waits for the

Re: [Sikuli-driver] [Question #267905]: Can't make PyCharm run sikuli scripts

2015-06-10 Thread Pierre Best
Question #267905 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267905 Pierre Best posted a new comment: As another datapoint, I'm running IntelliJ IDEA Ultimate + Python plugin and setting CLASSPATH to point at sikulixapi.jar works for me. -- You received this question

[Sikuli-driver] [Bug 1463866] [NEW] Sikuli 1.1.0 tries to close my IDE

2015-06-10 Thread Pierre Best
Public bug reported: IntelliJ IDEA (Cassiopeia) IU-141.1383.1 JRE: 1.8.0_40-b26 x86 sikuli 1.1.0-20150602 Windows 8.1 Pro (x64) When my program calls close on an App object, it appears that sikuli is type Alt-F4. Unfortunately this isn't going to the application, its going to the IDE, which

Re: [Sikuli-driver] [Question #261426]: Region.observe(60, True) is throwing an exception

2015-02-02 Thread Pierre Best
Question #261426 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/261426 Pierre Best posted a new comment: import org.sikuli.basics.SikulixForJython from sikuli import * Settings.OcrTextSearch = True Settings.OcrTextRead = True _changes = [] def change_handler(event

Re: [Sikuli-driver] [Question #261426]: Region.observe(60, True) is throwing an exception

2015-02-02 Thread Pierre Best
Question #261426 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/261426 Pierre Best posted a new comment: Configuration Information: == Adding sys.__stdout__.write('[X] python version: %s\n' % platform.python_version()) sys.__stdout__.write('[X] java

[Sikuli-driver] [Question #261426]: Region.observe(60, True) is throwing an exception

2015-01-30 Thread Pierre Best
New question #261426 on Sikuli: https://answers.launchpad.net/sikuli/+question/261426 Sikuli 1.1.0 I'm trying to track the sub-menu that appears when you click on a menu name. I've set up the handler and assigned it with onChange() but when I call r.observe(60, True) an exception is thrown.

[Sikuli-driver] [Question #255035]: I can't get 1.1.0 nightly sikulixapi working within PyCharm

2014-09-26 Thread Pierre Best
New question #255035 on Sikuli: https://answers.launchpad.net/sikuli/+question/255035 I'm trying to use PyCharm for the latest build of 1.1.0. I've got a small program which highlights an area of the screen which executes properly in the Sikuli IDE. (I'm only dumping the environment, path,

Re: [Sikuli-driver] [Question #255035]: [1.1.0] PyCharm: sikulixapi not working

2014-09-26 Thread Pierre Best
Question #255035 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255035 Pierre Best posted a new comment: Do we no longer have to put a guard around the import SikulixForJython? -- You received this question notification because you are a member of Sikuli Drivers, which

Re: [Sikuli-driver] [Question #255035]: [1.1.0] PyCharm: sikulixapi not working

2014-09-26 Thread Pierre Best
Question #255035 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255035 Status: Answered = Solved Pierre Best confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli

Re: [Sikuli-driver] [Question #255035]: [1.1.0] PyCharm: sikulixapi not working

2014-09-26 Thread Pierre Best
Question #255035 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255035 Pierre Best posted a new comment: Previously we had to do if __name__ == '__main__': import org.sikuli.basics.SikulixForJython Sorry if I was unclear. -- You received this question notification

Re: [Sikuli-driver] [Question #236725]: Why does onChange() work with a sikuli.Region and not with a org.sikuli.script.Region

2014-09-26 Thread Pierre Best
Question #236725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236725 Pierre Best posted a new comment: My PyCharm/Sikuli configuration Installed Apps == Java: JDK 1.8.0_20 in default installation dir Jython: 2.7b3 Pycharm: 3.4.1 (also seems to work with 4.0 EAP

Re: [Sikuli-driver] [Question #255035]: [1.1.0] PyCharm: sikulixapi not working

2014-09-26 Thread Pierre Best
Question #255035 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255035 Pierre Best posted a new comment: FYI My PyCharm/Sikuli configuration Installed Apps == Java: JDK 1.8.0_20 in default installation dir Jython: 2.7b3 Pycharm: 3.4.1 (also seems to work with 4.0

Re: [Sikuli-driver] [Question #236725]: Why does onChange() work with a sikuli.Region and not with a org.sikuli.script.Region

2013-10-07 Thread Pierre Best
Question #236725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236725 Status: Answered = Solved Pierre Best confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli

Re: [Sikuli-driver] [Question #236725]: Why does onChange() work with a sikuli.Region and not with a org.sikuli.script.Region

2013-10-03 Thread Pierre Best
Question #236725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236725 Status: Answered = Open Pierre Best is still having a problem: I've followed your instructions in steps 1, 2, 3 and 4. When I try to debug the program I get the following output: pydev debugger

[Sikuli-driver] [Question #236725]: Why does onChange() work with a sikuli.Region and not with a org.sikuli.script.Region

2013-10-02 Thread Pierre Best
New question #236725 on Sikuli: https://answers.launchpad.net/sikuli/+question/236725 I'm using Eclipse, Sikuli-API-1.0.0-Win32 and jython 2.7b1 to script some tests. I wanted to set up an observer but everytime I tried to set up the handler with Region.onChange() it would fail with the error