[Sikuli-driver] [Question #679003]: [1.1.4] IDE: OCR Tuning

2019-03-06 Thread Jan
New question #679003 on Sikuli:
https://answers.launchpad.net/sikuli/+question/679003

I am not a developer and absolute new to Tesseract. I tried to understand the 
Tesseract Documentation on GizHub, but it is not clear for me what 
functionality of Tesseract can(should be imported/used in SikuliX  (e.g. "copy 
only the traineddata-files of your language into Sikulix AppData folder").
Now I want to read some foldernames in my Windows 10 Explorer when storing the 
output of a Web-App locally and, based on the OCR-result, change the folder or 
create a new subfolder. I assume that Windows 10 uses Segoe fonts. I have a 
German special sign in my root-folder path, the OCR-Result is: "Dieser PC > 
Lokaler Datentréger(Cz) > ..."), This can also be a Sikulix Issue, but I can 
use a workaroud for this.  

My Issue:
When embedded between a meaningless mixture of numbers and characters a lower 
"l" ( like Lima) allways(100%!!!) gets recognized as a pipe symbol ( | ). In 
addition more than 70% of upper "O" ( like "Oscar") in same scenario gets 
recognized as "0" (Zero) and vice versa the zero.
Zooming the size of characters in Windows Explorer to 150% didn't help. I am 
assuming the root cause in use different fonts.

My questions:
1. How can I tell Tesseract-OCR that it should try to recognize Segoe-fonts.
2. Until now I just added German traindata-files to the Tesseract folder. Are 
there some font sets to add?
3. Can I provide a blacklist of characters to Tesseract-OCR, saying that there 
will never be a pipe-symbol in the text.
4. What are the standard fonts of the current version of Tesseract wich is 
embedded in SikuliX 114. My idea is to switch (and switch back) the standard 
fonts of Windows Explorer compliant to Tesseract.

Thanks a lot in advance!


-- 
You received this question notification because your team Sikuli Drivers
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 #678863]: [1.1.4 ] collectWords dosn't find a word --- fixed build #216

2019-03-05 Thread Jan
Question #678863 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678863

Status: Answered => Solved

Jan confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
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 #678863]: [1.1.4 ] collectWords dosn't find a word

2019-02-28 Thread Jan
New question #678863 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678863

I am new to Sikuli and I am not a developer, but I did my best to read the 
docs. Probably I missed anyway something  for OCR-setup. I already did some 
successfull scipts for Html/Javascipts Apps and for some Windows-Apps. Now I 
want to get the text and the position of new and unknown Objects, e.g. 
usernames, wich I can't click/mark, because they are starting a function or a 
hyperlink. So collectWords() would be the best method.
This is my code:
...
Settings.OcrTextRead = True
#tr = TextOCR.start() 
#tr.setLanguage("eng")
#logger.warning('tr = %s', tr)
words =  Region(38,381,282,28).text() 
logger.warning('words = %s', words)
#words = SCREEN.getWords() #Screen object has no attribute getWords
words = SCREEN.collectWords()
logger.warning('words = %s', words)
words = Region(19,323,675,268).findAllText("Administrator") 
logger.warning('words = %s', words)
#firstWordMatch = words[0].getText() 
#firstWord = firstWordMatch.getText() 

Region.text() and Region.findAllText("mySearch") works fine, but this is not 
the function I need.
Region. collectWords(), Region. collectWordsText(), Region. collectLines(), ... 
don't throw an error, but find nothing: Result is [0]
When enabled getText() throws an error and color of this method call in SikuliX 
IDE keeps black. Color of collectWords() is not blue/green like findAllText(), 
but keeps black,too. ?!?
I tested this code with all kind of apps/texts and got allways the same result.

My Environment:
Windows 10, latest Java 64, Folder of Sikulix 1.1.3 installation got renamed, 
old Appdata-Folder of 1.1.3 got renamed.
I did same for the 1.1.4 installation wich i used until today. This 
Installation had both, Jython and JRuby support and some Tesseract-files. 
Now I did a new installation of last night version of 1.1.4 and only Jython, 
nothing else. No additional configuration, only the 
Settings.OcrTextRead statement in the script.
Resul of new installationt:
Nothing changed

By the way:
Do I need the tr = TextOCR.start() stuff?


-- 
You received this question notification because your team Sikuli Drivers
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 #402573]: Compile Issue with Jython, java context

2016-09-30 Thread Jan
Question #402573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402573

Jan posted a new comment:
One more note:

In the classpath I also added sikuli.jar/Lib , I had inconsistency with
finding sikuli if this was not included

-- 
You received this question notification because your team Sikuli Drivers
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 #402573]: Compile Issue with Jython, java context

2016-09-30 Thread Jan
Question #402573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402573

Status: Answered => Solved

Jan confirmed that the question is solved:
Thank you for the quick response.

I removed the sys.environ commands from my module additionally I noticed
that the variables on the computer I am using had some issues.

This fixed my issue, it seem like:

set classpath = ... 
did not pull through the values, I ran a setx script setting a blank classpath 
and then set classpath = sikuli path

-I had to run two seperate scripts for the set, as the environment does
not update the variables once set, it only found sikuli after doing it
this way.

There is a bug with jython where if the java paths are mixed up, this
error will occur:

-This seems to happen if Sikuli is added in PATH rather than CLASSPATH,
this is just some additional info I picked up while solving this issue.

File "", line 444, inFile "", line 435, in
main   File
"Z:\jythondev\jython27\src\shell\build\jython\out00-PYZ.pyz\subprocess",
line 522, in call   File
"Z:\jythondev\jython27\src\shell\build\jython\out00-PYZ.pyz\subprocess",
line 710, in __init__   File
"Z:\jythondev\jython27\src\shell\build\jython\out00-PYZ.pyz\subprocess",
line 958, in _execute_child


I haven't tried this with PYTHONPATH yet, but my scripts are running now.

Thank you once again for the advice

-- 
You received this question notification because your team Sikuli Drivers
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 #402573]: Compile Issue with Jython, java context

2016-09-29 Thread Jan
Question #402573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402573

Description changed to:
Hi, could you please assist.

When using


I tried  from sikuli import * and did not get any errors, however as I want to 
use Sikuli in a jython program I used, as recommended:

import org.sikuli.script.SikulixForJython
from sikuli import *

I receive the following error:
[error] RunTimeINIT:  *** terminating: no valid Java context for SikuliX 
available (java.security.CodeSource.getLocation() is null


I set the path to sikuliapi with 
sys.append

The program works flawlessly in Eclipse, however after moving to command line I 
started getting this error.
When I put the sikuliapi on the classpath, Sikuli is not found. My Java also 
seems to be working correctly as java -jar is recognized when I type it into 
command prompt.

I am using jython mymodule.py currently when compiling as I am trying to
test my modules. I am compiling non sikuli modules flawlessly, only
modules  with import org.sikuli are giving me this issue. I have tried
it on multiple computers.

I am not sure what I am doing wrong, I have run through the forum, but
changing the class path isn't working, I even tried dropping Sikulixapi
into the java and later on jythonpaths.

This was also attempted

os.environ['classpath'] =  path to sikuli

os.environ['CLASSPATH'] =  path to sikuli

os.environ['JYTHONPATH'] = path to sikuli

os.environ['PYTHONPATH'] = path to sikuli

-D.python = path to sikuli also didn't do the trick.

os.environ['JAVAPATH'] = path to sikuli could not be done as a result of
key errors

*I am using Windows 7 & 8
Regards

-- 
You received this question notification because your team Sikuli Drivers
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 #402573]: Compile Issue with Jython, java context

2016-09-29 Thread Jan
Question #402573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402573

Description changed to:
Hi, could you please assist.

When using


I tried  from sikuli import * and did not get any errors, however as I want to 
use Sikuli in a jython program I used, as recommended:

import org.sikuli.script.SikulixForJython
from sikuli import *

I receive the following error:
[error] RunTimeINIT:  *** terminating: no valid Java context for SikuliX 
available (java.security.CodeSource.getLocation() is null


I set the path to sikuliapi with 
sys.append

The program works flawlessly in Eclipse, however after moving to command line I 
started getting this error.
When I put the sikuliapi on the classpath, Sikuli is not found. My Java also 
seems to be working correctly as java -jar is recognized when I type it into 
command prompt.

I am using jython mymodule.py currently when compiling as I am trying to
test my modules. I am compiling non sikuli modules flawlessly, only
modules  with import org.sikuli are giving me this issue. I have tried
it on multiple computers.

I am not sure what I am doing wrong, I have run through the forum, but
changing the class path isn't working, I even tried dropping Sikulixapi
into the java and later on jythonpaths.

This was also attempted

os.environ['classpath'] =  path to sikuli


os.environ['JYTHONPATH'] = path to sikuli

os.environ['PYTHONPATH'] = path to sikuli

-D.python = path to sikuli also didn't do the trick.


*I am using Windows 7 & 8
Regards

-- 
You received this question notification because your team Sikuli Drivers
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 #402573]: Compile Issue with Jython, java context

2016-09-29 Thread Jan
Question #402573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402573

Description changed to:
Hi, could you please assist.

When using


I tried  from sikuli import * and did not get any errors, however as I want to 
use Sikuli in a jython program I used, as recommended:

import org.sikuli.script.SikulixForJython
from sikuli import *

I receive the following error:
[error] RunTimeINIT:  *** terminating: no valid Java context for SikuliX 
available (java.security.CodeSource.getLocation() is null


I set the path to sikuliapi with 
sys.append

The program works flawlessly in Eclipse, however after moving to command line I 
started getting this error.
When I put the sikuliapi on the classpath, Sikuli is not found. My Java also 
seems to be working correctly as java -jar is recognized when I type it into 
command prompt.

I am using jython mymodule.py currently when compiling as I am trying to
test my modules. I am compiling non sikuli modules flawlessly, only
modules  with import org.sikuli are giving me this issue. I have tried
it on multiple computers.

I am not sure what I am doing wrong, I have run through the forum, but
changing the class path isn't working, I even tried dropping Sikulixapi
into the java and later on jythonpaths.

This was also attempted

os.environ['classpath'] =  path to sikuli

os.environ['CLASSPATH'] =  path to sikuli

os.environ['JYTHONPATH'] = path to sikuli

os.environ['PYTHONPATH'] = path to sikuli

-D.python = path to sikuli also didn't do the trick.

Javapath isn't recognized'

*I am using Windows 7 & 8
Regards

-- 
You received this question notification because your team Sikuli Drivers
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 #402573]: Compile Issue with Jython, java context

2016-09-29 Thread Jan
New question #402573 on Sikuli:
https://answers.launchpad.net/sikuli/+question/402573

When using


I tried  from sikuli import * and did not get any errors, however as I want to 
use Sikuli in a jython program I used, as recommended:

import org.sikuli.script.SikulixForJython
from sikuli import *

I receive the following error:
[error] RunTimeINIT:  *** terminating: no valid Java context for SikuliX 
available (java.security.CodeSource.getLocation() is null


I set the path to sikuliapi with 
sys.append

The program works flawlessly in Eclipse, however after moving to command line I 
started getting this error.
When I put the sikuliapi on the classpath, Sikuli is not found. My Java also 
seems to be working correctly as java -jar is recognized when I type it into 
command prompt.

I am using jython mymodule.py currently when compiling as I am trying to test 
my modules. I am compiling non sikuli modules flawlessly, only modules  with 
import org.sikuli are giving me this issue. I have tried it on multiple 
computers.

I am not sure what I am doing wrong, I have run through the forum, but changing 
the class path isn't working, I even tried dropping Sikulixapi into the java 
and later on jythonpaths. 

This was also attempted

os.environ['classpath'] =  path to sikuli


os.environ['JYTHONPATH'] = path to sikuli

os.environ['PYTHONPATH'] = path to sikuli

-D.python = path to sikuli also didn't do the trick.





-- 
You received this question notification because your team Sikuli Drivers
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 #268735]: IDE not starting in 10.11

2015-07-01 Thread Jan W.
New question #268735 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268735

Hi, 

i tried to start sikuli in OS X 10.11 beta and after its starts the splash 
screen stays on Init window
I reinstalled Java 8 update 45 on the machine and installed the latest nightly 
available.

any idea ? 

-- 
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 #268735]: [1.1.0] IDE not starting in OS X 10.11

2015-07-01 Thread Jan W.
Question #268735 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268735

Jan W. posted a new comment:
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 #268735]: [1.0.1] IDE not starting in OS X 10.11 --- use version 1.1.0+

2015-07-01 Thread Jan W.
Question #268735 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268735

Status: Answered = Open

Jan W. is still having a problem:
its the latest sikulix 1.1 nightly avaiable, it worked fine in 10.10.4
but not anymore in 10.11 Beta

-- 
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 #268735]: [1.1.0] IDE not starting in OS X 10.11

2015-07-01 Thread Jan W.
Question #268735 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268735

Jan W. posted a new comment:
Hi Raimund, thanks for the fast repsone.

output is as following:

Jans-MacBook-Air:~ JanWesbuer$ /Applications/Sikuli/runsikulix -d 3 -c
running SikuliX: /Applications/Sikuli/SikuliX.app/Contents/Java/sikulix.jar -d 
3 -c
[debug] RunTimeINIT: loadOptions: check: /Users/JanWesbuer
[debug] RunTimeINIT: loadOptions: check: /Users/JanWesbuer
[debug] RunTimeINIT: loadOptions: check: /Users/JanWesbuer/Library/Application 
Support/Sikulix/SikulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1366 x 768
[debug] RunTimeINIT: fSxBase: /Applications/Sikuli/SikuliX.app/Contents/Java
[debug] RunTimeINIT: runs as sikulix.jar in: 
/Applications/Sikuli/SikuliX.app/Contents/Java
[debug] RunTimeINIT: exists libs folder at: 
/Users/JanWesbuer/Library/Application Support/Sikulix/SikulixLibs_201506301349
* show environment for IDE (build 201506301349)
user.home: /Users/JanWesbuer
user.dir (work dir): /Users/JanWesbuer
user.name: JanWesbuer
java.io.tmpdir: /var/folders/kc/64vx494d7r7b9y88v3v8tvp0gn/T
running 64Bit on Mac OSX (10.11) as application .app
java 8-64 version 1.8.0_40-b27 vm 25.40-b25 class 52.0 arch x86_64
app data folder: /Users/JanWesbuer/Library/Application Support/Sikulix
libs folder: /Users/JanWesbuer/Library/Application 
Support/Sikulix/SikulixLibs_201506301349
executing jar: /Applications/Sikuli/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump sikulix
  0: /Applications/Sikuli/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump end
* show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] RunTimeIDE: initAPI: entering
[debug] RunTimeIDE: initAPI: leaving
[debug] init user preferences
[debug] IDE: running with Locale: en_US
[debug] IDE: initNativeSupport: starting
[debug] IDE: initNativeSupport: success
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[debug] RunTimeIDE: loadLib: libMacHotkeyManager.dylib
[info] HotkeyManager: add Capture Hotkey: ⌘+⇧ 2 (50, 5)
[debug] HotkeyManager: add Capture Hotkey: ⌘+⇧ 2 (50, 5)
[info] HotkeyManager: add Abort Hotkey: ⌘+⇧ C (67, 5)
[debug] HotkeyManager: add Abort Hotkey: ⌘+⇧ C (67, 5)
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: * Jython sys.path
 0: /Applications/Sikuli/SikuliX.app/Contents/Java/Lib
 1: /Applications/Sikuli/SikuliX.app/Contents/Java/sikulix.jar/Lib
 2: __classpath__
 3: __pyclasspath__/
[debug] JythonSupport: * Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: libVisionProxy.dylib
[debug] Mouse: init
[debug] KeyBoard: init
[debug] RunTimeIDE: loadLib: libMacUtil.dylib
[debug] Jython: requested to use as default region: R[0,0 1366x768]@S(0)
[debug] Jython: sikuli: Sikuli: ending init
[debug] JythonScriptRunner: running Jython 2.7.0 
[debug] ScriptingSupport: initScriptingSupport: added: jython
[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
Exception in thread main java.lang.IllegalArgumentException: cannot add to 
layout: unknown constraint: LEFT
at java.awt.BorderLayout.addLayoutComponent(BorderLayout.java:463)
at java.awt.BorderLayout.addLayoutComponent(BorderLayout.java:424)
at java.awt.Container.addImpl(Container.java:1125)
at java.awt.Container.add(Container.java:971)
at 
org.jdesktop.swingx.prompt.BuddySupport.addToComponentHierarchy(BuddySupport.java:72)
at 
org.jdesktop.swingx.prompt.BuddySupport.ensureBuddiesAreInComponentHierarchy(BuddySupport.java:139)
at 
org.jdesktop.swingx.plaf.TextUIWrapper$DefaultWrapper.replaceUIIfNeeded(TextUIWrapper.java:163)
at org.jdesktop.swingx.plaf.TextUIWrapper.install(TextUIWrapper.java:49)
at 
org.jdesktop.swingx.JXSearchField.setUseNativeSearchFieldIfPossible(JXSearchField.java:528)
at org.jdesktop.swingx.JXSearchField.init(JXSearchField.java:178)
at org.sikuli.ide.SikuliIDE.createSearchField(SikuliIDE.java:2472)
at org.sikuli.ide.SikuliIDE.initToolbar(SikuliIDE.java:2023)
at org.sikuli.ide.SikuliIDE.initSikuliIDE(SikuliIDE.java:332)
at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:266)
at org.sikuli.ide.Sikulix.main(Sikulix.java:21)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli

[Sikuli-driver] [Question #267039]: [1.1.0] getWindow() OS X

2015-05-17 Thread Jan W.
New question #267039 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267039

Hi, 

i tried many ways to use the new getWindow() introduced in Build: 2015-05-08

Is that a windows only or am i doing something completely wrong?

i tried (dfor me the mots obvious)
print myapp.getWindow() 
for example and expected it to print the current focused window title.

a small code snippet would be nice.

Best regads
Jan

-- 
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 #267039]: [1.1.0] getWindow() OS X

2015-05-17 Thread Jan W.
Question #267039 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267039

Description changed to:
Hi,

i tried many ways to use the new getWindow() introduced in Build:
2015-05-08

Is that a windows only or am i doing something completely wrong?

i tried (for me the most obvious)
print myapp.getWindow() 
for example and expected it to print the current focused window title or an 
object.

a small code snippet would be nice.

Best regads
Jan

-- 
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 #267039]: [1.1.0] getWindow() OS X

2015-05-17 Thread Jan W.
Question #267039 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267039

Description changed to:
Hi,

i tried many ways to use the new getWindow() introduced in Build:
2015-05-08

Is that a windows only or am i doing something completely wrong?

i tried (for me the most obvious)
print myapp.getWindow() 
for example and expected it to print the current focused window title.

a small code snippet would be nice.

Best regads
Jan

-- 
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 #266129]: App.focus on OS X only lets app jump once in dock

2015-04-30 Thread Jan W.
Question #266129 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266129

Status: Answered = Solved

Jan W. confirmed that the question is solved:
Oh ok, thanks. 
That sounds great. will update asap.

-- 
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 #266129]: App.focus on OS X only lets app jump once in dock

2015-04-30 Thread Jan W.
Question #266129 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266129

Jan W. confirmed that the question is solved:
Thanks Cisum4, that solved my 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] [Question #266129]: App.focus on OS X only lets app jump once in dock

2015-04-29 Thread Jan W.
New question #266129 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266129

Hi, using SikuliX 1.1 here:

if i try to open terminal.app or another app with e.g:
terminalapp = App.focus (/Applications/Utilities/Terminal.app)

the terminal icon only jumps once in the dock and then nothing happens. is this 
a permission thing or am i doing something wrong?

Regards
Jan

-- 
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 #221025]: X-1.0? How to import all Sikuli scripts from a folder

2015-04-26 Thread Jan W.
Question #221025 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/221025

Jan W. posted a new comment:
Sorry, not Python-like currently (as from sikuli import * works)

Hi RaiMan, will this still valid for Siluli X 1.1?

-- 
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 #210536]: Error message when using import: 'with' will become a reserved keyword in Python

2012-10-06 Thread Jan
New question #210536 on Sikuli:
https://answers.launchpad.net/sikuli/+question/210536

Hi,

I get this error when using 'import' and 'with':
ImportError: Errors in loading sikuli module: lib_base_Init
'with' will become a reserved keyword in Python 2.6 (lib_base_Init.py, line 11)
 - HOW TO FIX? Try adding from sikuli import * in the module.

Environment:
- Mac OS X 10.7.4
- Sikuli X-1.0rc3 (r905)
- When typing python in the console:
  Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) [GCC 4.2.1 (Based on Apple 
Inc. build 5658) (LLVM build 2335.15.00)] on darwin

My code:
--
MyTest.sikuli:
import MyLib

MyLib.sikuli:
def initApp(self):
anyapp = App.open(/../AnyApp.app)
with Region(lookapp.window()):
# do something
--

I've run the code from the IDE and from commandline. Always the same error 
message.
When using the 'with' statement within the same file (MyTest.sikuli in my case) 
then the code works fine. The import works fine without using 'with'.

I've made some tests on my code (unsuccessfully):
MyTest.sikuli:
from __future__ import with_statement
from sikuli.Sikuli import *
from sikuli import *
import MyLib

I've found those two directories, but I'm not sure if Sikuli uses them:
/Developer/Applications/Utilities/Python 2.6
/Developer/Applications/Utilities/MacPython 2.5


Any ideas?

Thanks in advance,
Jan


-- 
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 #210536]: Error message when using import: 'with' will become a reserved keyword in Python

2012-10-06 Thread Jan
Question #210536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/210536

Status: Answered = Solved

Jan confirmed that the question is solved:
Hi RaiMan,

thanks for the quick answer! Sorry, I forgot to mention that I've tried
that too.

But I've implemented your suggestions and removed the 'self' AND I added
from __future__ import with_statement in the included file
(MyLib.sikuli in my case).

That worked!

Source:

MyTest.sikuli:
import MyLib
MyLib.initApp()

MyLib.sikuli:
from __future__ import with_statement
from sikuli import *

def initApp():
anyapp = App.open(/Applications/TextEdit.app)
with Region(anyapp.window()):
popup('it worked')


As I don't know anything about python, I have no clue if the additional
statement from __future__ import with_statement comes with any
drawbacks ...


Jan

-- 
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 #210536]: Error message when using import: 'with' will become a reserved keyword in Python

2012-10-06 Thread Jan
Question #210536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/210536

Status: Solved = Open

Jan is still having a problem:
But ... running it as test-case does not work (IDE and commandoline)

Sourcecode:

MyTest.sikuli:
import MyLib

def setUp(self):
print setUp

def tearDown(self):
print tearDown

def testMy(self):
print testMy
MyLib.initApp()


MyLib.sikuli:
#from __future__ import with_statement # same result with or without that line
from sikuli import *

def initApp():
anyapp = App.open(/Applications/TextEdit.app)
with Region(anyapp.window()):
print('it works')


Output from commandoline:
localhost$ /Applications/Sikuli-IDE.app/sikuli-ide.sh --stderr --test 
/.../Tests/Sikuli/en/MyTest.sikuli
[info] Sikuli vision engine loaded.
[info] Mac OS X utilities loaded.
[info] VDictProxy loaded.
[error] null

Running the test-case from IDE crashes the IDE.

Any ideas?

Thanks,
Jan

-- 
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 #210536]: Error message when using import: 'with' will become a reserved keyword in Python

2012-10-06 Thread Jan
Question #210536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/210536

Status: Answered = Solved

Jan confirmed that the question is solved:
Thanks RaiMan, that solved my 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 511740] Re: [request] type() should work with different keymap (e.g. dvorak)

2012-10-03 Thread Jan
Mac OS X v10.7.4
Sikuli X-1.0rc3 (r905)

Still problems with my keyboard mappings:

German keyboard: - becomes ß

Chinese keyboard: 你好“ throws even an exception:
[log] TYPE 你好
[error] Abgebrochen
[error] Ein Fehler in Zeile 25
[error] Fehlermeldung:
Traceback (most recent call last):
 File 
/var/folders/zw/y3s7246958s6_vvpdp50shscgn/T/sikuli-tmp7966794094571103423.py,
 line 25, in 
 type(你好)
 at org.sikuli.script.Key.toJavaKeyCode(Key.java:284)
 at org.sikuli.script.DesktopRobot.typeChar(DesktopRobot.java:118)
 at org.sikuli.script.Region.type(Region.java:809)
 at org.sikuli.script.Region.type(Region.java:789)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:
Cannot convert character �

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

Title:
  [request] type() should work with different keymap (e.g. dvorak)

Status in Sikuli:
  In Progress

Bug description:
  reported by gugod, Matthew Schinckel.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/511740/+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 1016017] [NEW] image capture doesn't (win vista)

2012-06-21 Thread jan Bogaerts
Public bug reported:


Exception in thread capture java.lang.UnsatisfiedLinkError: C:\Program 
Files\Sikuli X\libs\Win32Util.dll: Can't find dependent libraries
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(Unknown Source)
 at java.lang.ClassLoader.loadLibrary(Unknown Source)
 at java.lang.Runtime.load0(Unknown Source)
 at java.lang.System.load(Unknown Source)
 at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
 at org.sikuli.script.Win32Util.(Win32Util.java:19)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at org.sikuli.script.Env.getOSUtil(Env.java:91)
 at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:180)
 at org.sikuli.script.ScreenHighlighter.(ScreenHighlighter.java:293)
 at org.sikuli.script.Screen.initBounds(Screen.java:105)
 at org.sikuli.script.Screen.(Screen.java:117)
 at org.sikuli.script.CapturePrompt.(CapturePrompt.java:336)
 at org.s

ikuli.script.CapturePrompt.(CapturePrompt.java:327)
 at org.sikuli.ide.CaptureButton$1.run(CaptureButton.java:189)

** 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/1016017

Title:
  image capture doesn't (win vista)

Status in Sikuli:
  New

Bug description:
  
  Exception in thread capture java.lang.UnsatisfiedLinkError: C:\Program 
Files\Sikuli X\libs\Win32Util.dll: Can't find dependent libraries
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(Unknown Source)
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.load0(Unknown Source)
   at java.lang.System.load(Unknown Source)
   at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
   at org.sikuli.script.Win32Util.(Win32Util.java:19)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at org.sikuli.script.Env.getOSUtil(Env.java:91)
   at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:180)
   at org.sikuli.script.ScreenHighlighter.(ScreenHighlighter.java:293)
   at org.sikuli.script.Screen.initBounds(Screen.java:105)
   at org.sikuli.script.Screen.(Screen.java:117)
   at org.sikuli.script.CapturePrompt.(CapturePrompt.java:336)
   at org.s

  ikuli.script.CapturePrompt.(CapturePrompt.java:327)
   at org.sikuli.ide.CaptureButton$1.run(CaptureButton.java:189)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1016017/+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