[Sikuli-driver] [Bug 1463813] [NEW] Installation on Windows7 (Java 8) doesn't work

2015-06-10 Thread oana mihoc
Public bug reported:

1. SikuliX Version 1.0.1

2. OS: Windows7 Professional, 64-bit Operating System

3. Try to install Sikuli on Windows 7, following the instructions: 
http://www.sikuli.org/download.html
C:\SikuliXjava -version
java version 1.8.0_45
Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

C:\SikuliXdir
 Volume in drive C has no label.
 Volume Serial Number is A28E-6A27

 Directory of C:\SikuliX

06/10/2015  03:06 PMDIR  .
06/10/2015  03:06 PMDIR  ..
06/10/2015  03:06 PM 1,337 runSetup.cmd
06/10/2015  03:01 PM18,413,040 sikuli-setup.jar
06/10/2015  03:06 PM 3,170 SikuliX-1.0.1-SetupLog.txt
   3 File(s) 18,417,547 bytes
   2 Dir(s)  924,373,766,144 bytes free

C:\SikuliXrunSetup.cmd
'Files' is not recognized as an internal or external command,
operable program or batch file.
+++ Java not found in standard places C:\Program Files or C:\Program Files (x86)

+++ JAVA_HOME not specified
+++ ended with some errors

C:\SikuliX

** Affects: sikuli
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1463813

Title:
  Installation on Windows7 (Java 8) doesn't work

Status in Sikuli:
  New

Bug description:
  1. SikuliX Version 1.0.1

  2. OS: Windows7 Professional, 64-bit Operating System

  3. Try to install Sikuli on Windows 7, following the instructions: 
http://www.sikuli.org/download.html
  C:\SikuliXjava -version
  java version 1.8.0_45
  Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

  C:\SikuliXdir
   Volume in drive C has no label.
   Volume Serial Number is A28E-6A27

   Directory of C:\SikuliX

  06/10/2015  03:06 PMDIR  .
  06/10/2015  03:06 PMDIR  ..
  06/10/2015  03:06 PM 1,337 runSetup.cmd
  06/10/2015  03:01 PM18,413,040 sikuli-setup.jar
  06/10/2015  03:06 PM 3,170 SikuliX-1.0.1-SetupLog.txt
 3 File(s) 18,417,547 bytes
 2 Dir(s)  924,373,766,144 bytes free

  C:\SikuliXrunSetup.cmd
  'Files' is not recognized as an internal or external command,
  operable program or batch file.
  +++ Java not found in standard places C:\Program Files or C:\Program Files 
(x86)

  +++ JAVA_HOME not specified
  +++ ended with some errors

  C:\SikuliX

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1463813/+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] [Question #267983]: Build failure - failed to execute goal

2015-06-10 Thread Mike
New question #267983 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267983

I am on redhat.  I'm having the most difficult time trying to get SikuliX 
running.

I have OenCV and Tesseract, I also have resolved an issue with JXGrabKey.

I run mvn clean install this finishes and says successful for all the steps in 
it.

Then I got to the dir with all my SikuliX files and run:  mvn -pl Setup 
exec:exec.

The dialog box appears, I click package 1 then setup.  

then I get two lines of debug and it fails.

[debug (6/10/15 9:14:36 AM)] RunSetup: Copied from Downloads: sikulixlibslux
[debug (6/10/15 9:14:36 AM)] RunSetup: checking usability of bundled/provided 
libs
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 02:41 min
[INFO] Finished at: 2015-06-10T09:14:37-05:00
[INFO] Final Memory: 11M/224M
[INFO] 
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.1:exec 
(default-cli) on project sikulixsetup: Command execution failed. Process exited 
with an error: 1 (Exit value: 1) - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


Any help is appreciated.  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 #267983]: Build failure - failed to execute goal

2015-06-10 Thread RaiMan
Question #267983 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267983

Status: Open = Answered

RaiMan proposed the following answer:
could you please just try with the setup from the nightly build page
(http://sikulix.com).

According to the info on the quick start tab, you should have more setup
logs in the folder ~/.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 #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 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 1463813] Re: [1.0.1] Windows7 (Java 8): SikuliX command files do not work

2015-06-10 Thread RaiMan
** Summary changed:

- Installation on Windows7 (Java 8) doesn't work
+ [1.0.1] Windows7 (Java 8): SikuliX command files do not work

** Changed in: sikuli
   Status: New = Won't Fix

** Summary changed:

- [1.0.1] Windows7 (Java 8): SikuliX command files do not work
+ [1.0.1] Windows7 (Java 8): SikuliX command files do not work --- workaround

** Description changed:

+  workaround
+ make your own command file 
+ or use the plain java command like this:
+ 
+ java -jar sikuli-setup.jar
+ 
+ or other jars as needed.
+ 
+ recommendation: directly switch to version 1.1.0
+ 
+ --
+ 
  1. SikuliX Version 1.0.1
  
  2. OS: Windows7 Professional, 64-bit Operating System
  
  3. Try to install Sikuli on Windows 7, following the instructions: 
http://www.sikuli.org/download.html
  C:\SikuliXjava -version
  java version 1.8.0_45
  Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
  
  C:\SikuliXdir
-  Volume in drive C has no label.
-  Volume Serial Number is A28E-6A27
+  Volume in drive C has no label.
+  Volume Serial Number is A28E-6A27
  
-  Directory of C:\SikuliX
+  Directory of C:\SikuliX
  
  06/10/2015  03:06 PMDIR  .
  06/10/2015  03:06 PMDIR  ..
  06/10/2015  03:06 PM 1,337 runSetup.cmd
  06/10/2015  03:01 PM18,413,040 sikuli-setup.jar
  06/10/2015  03:06 PM 3,170 SikuliX-1.0.1-SetupLog.txt
-3 File(s) 18,417,547 bytes
-2 Dir(s)  924,373,766,144 bytes free
+    3 File(s) 18,417,547 bytes
+    2 Dir(s)  924,373,766,144 bytes free
  
  C:\SikuliXrunSetup.cmd
  'Files' is not recognized as an internal or external command,
  operable program or batch file.
  +++ Java not found in standard places C:\Program Files or C:\Program Files 
(x86)
  
  +++ JAVA_HOME not specified
  +++ ended with some errors
  
  C:\SikuliX

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1463813

Title:
  [1.0.1] Windows7 (Java 8): SikuliX command files do not work ---
  workaround

Status in Sikuli:
  Won't Fix

Bug description:
   workaround
  make your own command file 
  or use the plain java command like this:

  java -jar sikuli-setup.jar

  or other jars as needed.

  recommendation: directly switch to version 1.1.0

  --

  1. SikuliX Version 1.0.1

  2. OS: Windows7 Professional, 64-bit Operating System

  3. Try to install Sikuli on Windows 7, following the instructions: 
http://www.sikuli.org/download.html
  C:\SikuliXjava -version
  java version 1.8.0_45
  Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

  C:\SikuliXdir
   Volume in drive C has no label.
   Volume Serial Number is A28E-6A27

   Directory of C:\SikuliX

  06/10/2015  03:06 PMDIR  .
  06/10/2015  03:06 PMDIR  ..
  06/10/2015  03:06 PM 1,337 runSetup.cmd
  06/10/2015  03:01 PM18,413,040 sikuli-setup.jar
  06/10/2015  03:06 PM 3,170 SikuliX-1.0.1-SetupLog.txt
     3 File(s) 18,417,547 bytes
     2 Dir(s)  924,373,766,144 bytes free

  C:\SikuliXrunSetup.cmd
  'Files' is not recognized as an internal or external command,
  operable program or batch file.
  +++ Java not found in standard places C:\Program Files or C:\Program Files 
(x86)

  +++ JAVA_HOME not specified
  +++ ended with some errors

  C:\SikuliX

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1463813/+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 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 then tries to close. It only fails because IDEA
is configured to require confirmation before it will quit.

The reason I believe it's sikuli is the following messages which are
printed in the log:

[log] ( Alt )  TYPE #F4.
[error] App.close [-1:myapp.exe ( Y - [Zz Z 
Zz])] C:\subversion\Sikuli\Myapp\test.sikuli\myapp.exe did not work

** Affects: sikuli
 Importance: Undecided
 Status: New

-- 
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) 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 then tries to close. It only fails because
  IDEA is configured to require confirmation before it will quit.

  The reason I believe it's sikuli is the following messages which are
  printed in the log:

  [log] ( Alt )  TYPE #F4.
  [error] App.close [-1:myapp.exe ( Y - [Zz Z 
Zz])] C:\subversion\Sikuli\Myapp\test.sikuli\myapp.exe did not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1463866/+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 1462935] Re: [1.1.0] Only recognise two monitors --- fixed 2015-06-09+

2015-06-10 Thread Tangy
I don't know if you fix the bug. But when I try again the output is
different and still only the left and right monitor get highlighted. The
output from sikulixsetup-1.1.0-20150609.230942-99-forsetup.jar is now:


C:\Users\akr\Documents\sikuli_1.1runsikulix.cmd -d 3 -c
+++ running this Java
java version 1.7.0_71
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\Users\akr\Documents\sikuli_1.1\sikulix.jar -d 3 -c
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr\AppData\Roaming\Sikulix\Si
kulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 2 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: fSxBase: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: runs as sikulix.jar in: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: exists libs folder at: C:\Users\akr\AppData\Roaming\Sikulix
\SikulixLibs_201506020100
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\akr\AppData\Roaming\Sikulix\SikulixLibs_201506020100
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
* show environment for IDE (build 201506020100)
user.home: C:\Users\akr
user.dir (work dir): C:\Users\akr\Documents\sikuli_1.1
user.name: akr
java.io.tmpdir: C:\Users\akr\AppData\Local\Temp
running 64Bit on Windows (6.1) from a jar
java 7-64 version 1.7.0_71-b14 vm 24.71-b01 class 51.0 arch amd64
app data folder: C:\Users\akr\AppData\Roaming\Sikulix
libs folder: C:\Users\akr\AppData\Roaming\Sikulix\SikulixLibs_201506020100
executing jar: C:\Users\akr\Documents\sikuli_1.1\sikulix.jar
*** classpath dump sikulix
  0: /C:/Users/akr/Documents/sikuli_1.1/sikulix.jar
*** classpath dump end
* show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] init user preferences
[debug] IDE: running with Locale: de_DE
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[info] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[debug] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: * Jython sys.path
 0: C:\Users\akr\Documents\sikuli_1.1\Lib
 1: C:\Users\akr\Documents\sikuli_1.1\sikulix.jar\Lib
 2: __classpath__
 3: __pyclasspath__/
[debug] JythonSupport: * Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: VisionProxy.dll
[error] Location: outside any screen (-110, 453) - subsequent actions might not
work as expected
[error] Location: outside any screen (-110, 453) - subsequent actions might not
work as expected
[debug] Mouse: init
[debug] KeyBoard: init
[debug] Screen: initScreens: multi monitor mouse check
[error] Location: outside any screen (-110, 453) - subsequent actions might not
work as expected
[debug] Screen: *** checking: S(0)[0,0 1920x1200] center: (960, 600) --- OK
[debug] Screen: *** checking: S(1)[-3200,176 1280x1024] center: (-2560, 688) ---
 OK
[debug] Screen: *** checking: S(2)[-3200,176 1280x1024] center: (-2560, 688) ---
 OK
[error] Location: outside any screen (-110, 453) - subsequent actions might not
work as expected
[debug] RunTimeIDE: loadLib: WinUtil.dll
[debug] Jython: requested to use as default region: R[0,0 1920x1200]@S(0)
[debug] Jython: sikuli: Sikuli: ending init
[debug] JythonScriptRunner: running Jython 2.7.0
[debug] ScriptingSupport: initScriptingSupport: added: jython
[debug] ScriptingSupport: initScriptingSupport: warning: org.sikuli.scriptrunner
.IScriptRunner: Provider org.sikuli.scriptrunner.JRubyScriptRunner could not be
instantiated
[debug] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython
(py)
[debug] IDE: Adding components to window
[debug] [I18N] menuRecent
[debug] IDE: creating tabbed editor
[debug] IDE: creating message area
[debug] IDE: creating combined work window
[debug] IDE: Putting all together
[debug] restore session: C:\Users\akr\Documents\SikuliSkripte\ScreenTest.sikuli
[debug] IDE: doNew: create new tab at: -1
[debug] EditorPane: EditorPane: creating new pane (constructor)
[debug] EditorPane: loadfile: C:\Users\akr\Documents\SikuliSkripte\ScreenTest.si
kuli
[debug] ImagePath: new BundlePath:
/C:/Users/akr/Documents/SikuliSkripte/ScreenTest.sikuli/
[debug] EditorPane: initBeforeLoad: py
[debug] EditorPane: updateDocumentListeners from: initBeforeLoad
[debug] EditorPane: InitTab: (text/python)
[debug] 

Re: [Sikuli-driver] [Question #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread ravi
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

ravi posted a new comment:
Its client requirement to make test script on sikuli IDE.


PLease guide me through tough and advcance sikuli IDE functionality.


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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread Zeks
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

Zeks posted a new comment:
I am interested - what do you mean by project requirement? Is there
some policy in the company that makes sikuli scripts for any
functionality a must ? If so, why don't they give guidelines for it?

-- 
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 #267986]: Watch out for 4 different Images followed by 4 different Keyboard inputs. Scanning all images all the time.

2015-06-10 Thread Hashtag123
New question #267986 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267986

Hey,
I am new to Sikuli and think that I have a basic question.

I have 4 different images and want a different Keaboard action for each image 
that appears.

For example:
*image 1 appears* -- *klick left arrow*

but I want sikuli to check for the images all the time. They can appear 
multiple times in any possible order.

If you don't know the answer I would be glad if you could tell me where I find 
some sort of Tutorials to accomplish my task.

Thanks in advance =)

Greetings

-- 
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 #267983]: Build failure - failed to execute goal

2015-06-10 Thread Mike
Question #267983 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267983

Status: Answered = Open

Mike is still having a problem:
unfortunately this did not work.  The dialog box still appears but once
the install starts it breaks sooner than before.

--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
null (IDE/Scripting)
null (Java API)
 - with Jython
--- Additions ---
tessdata-eng (Tesseract)
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!

[debug (6/10/15 10:29:33 AM)] RunSetup: checking usability of bundled/provided 
libs

-- 
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 #267986]: Watch out for 4 different Images followed by 4 different Keyboard inputs. Scanning all images all the time.

2015-06-10 Thread Hashtag123
Question #267986 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267986

Description changed to:
Hey,
I am new to Sikuli and think that I have a basic question.

I have 4 different images and want a different Keyboard action for each
image that appears.

For example:
*image 1 appears* -- *klick left arrow*

but I want sikuli to check for the images all the time. They can appear
multiple times in any possible order.

If you don't know the answer I would be glad if you could tell me where
I find some sort of Tutorials to accomplish my task.

Thanks in advance =)

Greetings

-- 
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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread Zeks
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

Zeks posted a new comment:
well, I don't really know any advanced tutorial, but here is what I've
learned so far:

1) turn off automatic image naming. you'd want to work outside sikuli IDE for 
any serious testing and file' names should make sense cause you will not see 
images anywhere else
2) reuse screenshots when possible. try to place them outside top level sikuli 
test scripts if there is a chance that they will be needed  elsewhere
3) Modularize test scripts. Some operations are inevitably going to be shared 
between scripts and copy pasting them is a big no. Modularization helps code 
reuse as you only have ONE place to fix the code in.
4) Limit the scope the application has to search to find a match. For most 
windows I split them into named subregions and only perform matches within 
them, not a global window. If a split is made at runtime it can even compensate 
for small interface changes. Split is done by anchor points which really are 
elements that define corners of a particular region.
5) Do not debug scripts in sikuli IDE. it wastes a lot of time as it is clearly 
not suited for the task
6) You will most likely need to automate scripts. Learn how to use robot 
framework early. It really is not that hard and helps a lot
7) keep scripts in source control repository. in the end test scripts are code, 
same as project code and deserve same treatment
8) Sikuli currently has no error reporting on operations such as click(). 
Prepare to check the sanity of operations such as click(None) yourself

Keep in mind that I am a total Sikuli noob myself and I am still
learning too. Maybe someone can give better guidelines.

-- 
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 #267986]: Watch out for 4 different Images followed by 4 different Keyboard inputs. Scanning all images all the time.

2015-06-10 Thread Zeks
Question #267986 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267986

Zeks posted a new comment:
There is an observer functionality in Sikuli, I think this is what you need:
http://doc.sikuli.org/region.html
look for: Observing Visual Events in a 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


Re: [Sikuli-driver] [Question #267953]: Sikuli 1.1 new folder structure

2015-06-10 Thread RaiMan
Question #267953 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267953

RaiMan proposed the following answer:
Depending on what options you selected, the setup will produce a
sikulix.jar and/or sikulixapi.jar for the system the setup is running
on.

These are the only stuff you need (besides the command files if you
need them).

-- 
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 #267983]: Build failure - failed to execute goal

2015-06-10 Thread RaiMan
Question #267983 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267983

Status: Open = Answered

RaiMan proposed the following answer:
ok, I will check on Linux tomorrow.

-- 
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 #267953]: Sikuli 1.1 new folder structure

2015-06-10 Thread dinev
Question #267953 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267953

Status: Answered = Solved

dinev confirmed that the question is solved:
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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread ravi
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

ravi posted a new comment:
Thanks A LOT

Please also guide me which languages i should learn to get best use of
Sikuli

python or anything more.

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 1463866] Re: Sikuli 1.1.0 tries to close my IDE

2015-06-10 Thread RaiMan
could you please try with the latest build.

-- 
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) 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 then tries to close. It only fails because
  IDEA is configured to require confirmation before it will quit.

  The reason I believe it's sikuli is the following messages which are
  printed in the log:

  [log] ( Alt )  TYPE #F4.
  [error] App.close [-1:myapp.exe ( Y - [Zz Z 
Zz])] C:\subversion\Sikuli\Myapp\test.sikuli\myapp.exe did not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1463866/+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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread RaiMan
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

RaiMan posted a new comment:
@Zeks
Very good points. Thanks. Will use them for some doc section Best Practices.
question at 6: what does automate scripts mean together with Robot Framework?

-- 
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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread Zeks
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

Zeks posted a new comment:
If there are a bunch of test scripts for some application, chances are -
you'd want to run them in succession, preferably not startng each one by
hand and , ideally, getting a combined report. Robot framework does just
that.

-- 
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 #267986]: Watch out for 4 different Images followed by 4 different Keyboard inputs. Scanning all images all the time.

2015-06-10 Thread RaiMan
Question #267986 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267986

RaiMan posted a new comment:
Zeks talked about the observe feature:
http://sikulix-2014.readthedocs.org/en/latest/region.html#observing-visual-events-in-a-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


Re: [Sikuli-driver] [Question #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread Zeks
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

Zeks posted a new comment:
9) Abstract away interface elements such as buttons and table cells
When you write 
click(Pattern('send.png'))
what you really want is to click on button, not on screenshot. And buttons have 
states.
A button can be pressed, hovered or cleaned, same with table cells. Instead 
what will save you time is:
clickEntity('button')
the clickEntity function you will have to write yourself. It needs to match not 
one, but 3 screenshots and give/click the best match.
How it will do that is debatable. I, at the moment, do stuff like this
buttons = ['send', {name = 'send', states = ['clean', 'hovered', 
'pressed']}]
In the folder there are files send_clean.png, send_hovered.png... 
So if I have a send window it is implemented in Send module and used as
Send.clickEntity('send')
The function iterates over buttons dictionary, creating names as it goes and 
tries to find each one.

The result? Where you'd likely have to write in the main script(each
time):

click(Pattern('send_clean.png'))
if not 
click(Pattern('send_hovered.png'))
if not
click(Pattern('send_.png'))

it becomes simple   
Module.click('entity')

this helps both readability and abstraction and will likely save you a lot 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 #267986]: Watch out for 4 different Images followed by 4 different Keyboard inputs. Scanning all images all the time.

2015-06-10 Thread Hashtag123
Question #267986 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267986

Hashtag123 posted a new comment:
Thanks for the tipp. I found the Regions but I am not sure how to use
them.

This is my code:

   while True: #I want this to loop forever
   if not exists(GO_RIGHT.png): #This is the image I'm searching for
   type(Key.LEFT) #If the image is not there I want the left 
arrow key to be pressed indefinite times
   else type(Key.RIGHT) #If the image appears I want the right 
arrow key to be pressed once
   while True: #I want this to loop forever
   if not exists(GO_LEFT.png): #This is the new image I'm 
searching for
   type(Key.RIGHT) #If the image is not there I want 
the left arrow key to be pressed indefinite times   
   else type(Key.LEFT) #If the image appears I want the 
right arrow key to be pressed once
   break#I want the script to start at the 
beginning in line 1

First of all. would this work?
And second. I know how I can define a Region:

def Region_with():
   reg = Region(596,406,63,85)   #This is the region I would like Sikuli to scan
   reg.highlight(5)#This confirms it is looking at the area

Image GO_RIGHT.png will always appear in the same region and image
GO_LEFT.png will always appear in the an other region. How can I add
the regions to my script - which I can't test right 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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread RaiMan
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

Status: Open = Answered

RaiMan proposed the following answer:
@Zeks
ok, understood.
with version 1.1.0 you can do that now in a script as well:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other

-- 
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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website

2015-06-10 Thread Zeks
Question #267957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267957

Zeks posted a new comment:
cleaned = clean in the previous post. meaning button without any state
changing its appearance

-- 
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 #267998]: Push/Pop and addImagePath

2015-06-10 Thread Zeks
New question #267998 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267998

To avoid name clashes and simplify development all of my screenshots are 
organized as Project/Module/Window/Name1.png ...

Sometines there can be intersection as in 
Project/Module/Window/Name1.png 
Project/Module2/Window/Name1.png 

therefore I use a pattern everywhere:
A module.py contains a part of the path to add while searching for its images 
and invokes search function as

findEntity(globalProjectPath + moduleImagePath)
which is in the function used as:
addImagePath(path)

remove imagePath(path)

repeated everywhere. This does resolve any possible name clashes but this 
removeImagePath seems excessive. 
I kinda remember OpenGL programming where you could glPushContext/glPopContext.

Can we have stuff like that for imagePath in sikuli? 

   

-- 
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 1464105] [NEW] when I use Python package to post some message, it'll throw exception

2015-06-10 Thread R_Richie
Public bug reported:

I use SikliX 1.1.0 
Code like this:

import urllib
opener = urllib.FancyURLopener({})
f = opener.open(http://www.python.org/;)
print f.read()


六月 11, 2015 11:29:24 上午 org.python.netty.channel.AbstractChannel$AbstractUnsafe 
register
警告: Force-closing a channel whose registration task was not accepted by an 
event loop: [id: 0x1d496cfb]
java.util.concurrent.RejectedExecutionException: event executor terminated
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:745)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:322)
at 
org.python.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:728)
at 
org.python.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:420)
at 
org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:60)
at 
org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:48)
at 
org.python.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:64)
at org.python.netty.bootstrap.Abstrac

tBootstrap.initAndRegister(AbstractBootstrap.java:317)
at 
org.python.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:273)
at org.python.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
at org.python.core.PyObject.__call__(PyObject.java:478)
at org.python.core.PyObject.__call__(PyObject.java:482)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at _socket$py._connect$77(E:\sikuli\sikulix.jar\Lib\_socket.py:864)
at _socket$py.call_function(E:\sikuli\sikulix.jar\Lib\_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.c

ore.PyBaseCode.call(PyBaseCode.java:153)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at _socket$py.connect$80(E:\sikuli\sikulix.jar\Lib\_socket.py:888)
at _socket$py.call_function(E:\sikuli\sikulix.jar\Lib\_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
at org.python.core.PyBaseCode.call(PyBaseCode.java:198)
at org.python.core.PyFunction.__call__(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.__call__(PyMethod.java:228)
at org.python.core.PyMethod.__call__(PyMethod.java:223)
at org.python.core.PyObject._callextra(PyObject.java:601)
at _socket$py.meth$117(E:\sikuli\sikulix.jar\Lib\_socket.py:1367)
at _socket$py.call_function(E:\sikuli\sikulix.jar\Lib\_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBase

Code.java:307)
at org.python.core.PyFunction.function___call__(PyFunction.java:471)
at org.python.core.PyFunction.__call__(PyFunction.java:466)
at org.python.core.PyFunction.__call__(PyFunction.java:461)
at org.python.modules._functools.PyPartial.partial___call__(PyPartial.java:124)
at org.python.modules._functools.PyPartial.__call__(PyPartial.java:79)
at org.python.core.PyObject.__call__(PyObject.java:478)
at org.python.core.PyObject.__call__(PyObject.java:482)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at _socket$py.create_connection$131(E:\sikuli\sikulix.jar\Lib\_socket.py:1507)
at _socket$py.call_function(E:\sikuli\sikulix.jar\Lib\_socket.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:170)
at org.python.core.PyFunction.__call__(PyFunction.java:434)
at httplib$py.connect$24(E:\sikuli\sikulix.jar\Lib\httplib.py:796)
at httplib$py.call_function(E:\sikuli\sikulix.jar\Lib\httplib.py)
at org.python.cor

e.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:138)
at org.python.core.PyFunction.__call__(PyFunction.java:413)
at org.python.core.PyMethod.__call__(PyMethod.java:126)
at httplib$py.send$26(E:\sikuli\sikulix.jar\Lib\httplib.py:826)
at httplib$py.call_function(E:\sikuli\sikulix.jar\Lib\httplib.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at httplib$py._send_output$28(E:\sikuli\sikulix.jar\Lib\httplib.py:854)
at httplib$py.call_function(E:\sikuli\sikulix.jar\Lib\httplib.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
at