Re: [Sikuli-driver] [Question #189258]: Basic numeric captcha recognizing

2012-03-01 Thread RaiMan
Question #189258 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189258

Status: Open = Answered

RaiMan proposed the following answer:
--- forwarding it to Tesseract
already tested Region.text(), that might return the digits directly as a string 
(but look bug 710586)?

--- And I actually don't know, what to do next
Use a shot of the pad before start, store the match, so you have the reference 
region for the pad.
With Preview feature evaluate the target offset of the first key and further 
evaluate the positions of the other keys based on the regular pixel distances 
between the rows/columns of the buttons. Store these click positions in a list.

pad = find(image-of-pad.png)
first = pad.getTargetOffset()
dist = 35 # measured pixels between two button centers

# Example for all buttons in one row 
for d in fourDigits:
 click(first.offset(int(d)*dist, 0))
 wait(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


Re: [Sikuli-driver] [Question #189266]: multiple type(img, txt) statements all put text into the first textfield

2012-03-01 Thread RaiMan
Question #189266 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189266

Status: Open = Answered

RaiMan proposed the following answer:
Try putting a wait(1) after each type()

-- 
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 #189062]: make libVisionProxy.so error

2012-03-01 Thread RaiMan
Question #189062 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189062

RaiMan posted a new comment:
Uuups, that I should have remembered from my own trials a year ago :-(
Sorry about this, but thanks for the feedback that and how you solved 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


Re: [Sikuli-driver] [Question #189258]: Basic numeric captcha recognizing

2012-03-01 Thread Nidere
Question #189258 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189258

Status: Answered = Solved

Nidere 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


Re: [Sikuli-driver] [Question #189290]: Multiple line Input

2012-03-01 Thread RaiMan
Question #189290 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189290

Status: Open = Answered

RaiMan proposed the following answer:
Have a look at question
https://answers.launchpad.net/sikuli/+question/189203

There you can find the principal approach to build your own message
boxes.

-- 
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 #189054]: how to generate sequential numbers as my script saves screen grabs

2012-03-01 Thread RaiMan
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054

RaiMan posted a new comment:
look faq 1858

-- 
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 #189309]: For my second script, URL is not pasted properly

2012-03-01 Thread Apoorv Gupta
Question #189309 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189309

Description changed to:
Hi,

I started using Sikuli some time back and with the help of this site
(Launchpad) I have been able to create 2 scripts which are running
successfully when ran indivually. I have been trying to run both scripts
one after another using a Master script.

Master.script :
import os
dir = F:\\Sikuli\\ALL_Test
scripts = [Script1, Script2]
isPassAll = {}

for script in scripts:
isPass = True
scriptPath = os.path.join(dir, script+.sikuli)
setBundlePath(scriptPath)
execfile(os.path.join(scriptPath, script+.py))
isPassAll[script] = isPass
print isPassAll

Script1:

from sikuli import *
openApp(C:\\Program Files\\Mozilla Firefox\\firefox.exe); wait(2)
paste(server_URL)
type(Key.ENTER); wait(25)
type(wtadmin + Key.TAB)
type(wtadmin + Key.ENTER); wait(20)
click(New-1.png); wait(20)
click(Pattern(Name-1.png).similar(0.92))
type(mylife)
click(Pattern(1330346365484-1.png).similar(0.93))
click(Pattern(State-1.png).targetOffset(92,2))
type(Key.DOWN)
type(Key.DOWN); wait(2)
click(Pattern(Empty space.png).similar(0.98).targetOffset(21,6))
find(Approved is OK.png); wait(5)
click(1330346752390-1.png); wait(10)
click(Lifecycle_created.png); wait(5)
click(Pattern(checkin.png).similar(0.92)); wait(7)
click(Pattern(Checkin_OK.png).targetOffset(-9,117)); wait(10)
click(Lifecycle_created.png);
click(CheckOut-1.png); wait(5)
click(Lifecycle_created.png);
click(Undocheckout.png); wait(5)
click(Lifecycle_created.png);
click(Pattern(Ddete.png).similar(0.81)); wait(5)
click(Pattern(Delete_Notice.png).targetOffset(58,77)); wait(5)
App.close(Firefox)
App.close(cmd)

Script2:

from sikuli import *
openApp(C:\\Program Files\\Mozilla Firefox\\firefox.exe); wait(2); isPass = 
True
paste(server_URL); isPass = True
type(Key.ENTER); wait(5)
type(wtadmin + Key.TAB)
type(wtadmin + Key.ENTER); wait(5)
type(wtadmin + Key.TAB)
type(wtadmin + Key.ENTER); wait(10)
find(Panel.png); wait(5); isPass = True
App.close(Firefox)
App.close(cmd)

I am running following command from CMD : java -jar C:\Program
Files\Sikuli X\sikuli-script.jar F:\Sikuli\ALL_Test\MASTER.sikuli

My Script1.sikuli and Script2.sikuli are in same folder as
MASTER.sikuli. The first test is running without ant issue, but for 2nd
script when firefox is launched, Sikuli tries to paste the server URL
but not in address bar and continues with rest of the script. I tried
inserting image of address bar with click, but still failing. Any
suggestions??

I am using Sikuli X 1.0rc3 (r905) on windows 7, 32 bit.

Thanks in Advance.

-- 
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 #189309]: For my second script, URL is not pasted properly

2012-03-01 Thread Apoorv Gupta
New question #189309 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189309

Hi,

I started using Sikuli some time back and with the help of this site 
(Launchpad) I have been able to create 2 scripts which are running successfully 
when ran indivually. I have been trying to run both scripts one after another 
using a Master script.

Master.script :
import os
dir = F:\\Sikuli\\ALL_Test
scripts = [Script1, Script2]
isPassAll = {}

for script in scripts:
isPass = True
scriptPath = os.path.join(dir, script+.sikuli)
setBundlePath(scriptPath)
execfile(os.path.join(scriptPath, script+.py))
isPassAll[script] = isPass
print isPassAll

Script1:

from sikuli import *
openApp(C:\\Program Files\\Mozilla Firefox\\firefox.exe); wait(2)
paste(server_URL)
type(Key.ENTER); wait(25)
type(wtadmin + Key.TAB)
type(wtadmin + Key.ENTER); wait(20)
click(New-1.png); wait(20)
click(Pattern(Name-1.png).similar(0.92))
type(mylife)
click(Pattern(1330346365484-1.png).similar(0.93))
click(Pattern(State-1.png).targetOffset(92,2))
type(Key.DOWN)
type(Key.DOWN); wait(2)
click(Pattern(Empty space.png).similar(0.98).targetOffset(21,6))
find(Approved is OK.png); wait(5)
click(1330346752390-1.png); wait(10)
click(Lifecycle_created.png); wait(5)
click(Pattern(checkin.png).similar(0.92)); wait(7)
click(Pattern(Checkin_OK.png).targetOffset(-9,117)); wait(10)
click(Lifecycle_created.png);
click(CheckOut-1.png); wait(5)
click(Lifecycle_created.png);
click(Undocheckout.png); wait(5)
click(Lifecycle_created.png);
click(Pattern(Ddete.png).similar(0.81)); wait(5)
click(Pattern(Delete_Notice.png).targetOffset(58,77)); wait(5)
App.close(Firefox)
App.close(cmd)

Script2:

from sikuli import *
openApp(C:\\Program Files\\Mozilla Firefox\\firefox.exe); wait(2); isPass = 
True
paste(server_URL); isPass = True
type(Key.ENTER); wait(5)
type(wtadmin + Key.TAB)
type(wtadmin + Key.ENTER); wait(5)
type(wtadmin + Key.TAB)
type(wtadmin + Key.ENTER); wait(10)
find(Panel.png); wait(5); isPass = True
App.close(Firefox)
App.close(cmd)

I am running following command from CMD : java -jar C:\Program Files\Sikuli 
X\sikuli-script.jar F:\Sikuli\ALL_Test\MASTER.sikuli

My Script1.sikuli and Script2.sikuli are in same folder as MASTER.sikuli. The 
first test is running without ant issue, but for 2nd script when firefox is 
launched, Sikuli tries to paste the server URL but not in address bar and 
continues with rest of the script. I tried inserting image of address bar with 
click, but still failing. Any suggestions??

Thanks in Advance.

-- 
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 #189310]: Environment Settings

2012-03-01 Thread Fritz Doetzkies
New question #189310 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189310

Hello,
I'm using an older
Linux 2.6.25.20-0.7-default x86_64
openSUSE 11.0 (x86_64)
4.0.4 (KDE 4.0.4 = 20080505) release 15.4

-- 
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 #189310]: Environment Settings

2012-03-01 Thread Fritz Doetzkies
Question #189310 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189310

Status: Open = Solved

Fritz Doetzkies confirmed that the question is solved:
sorry, that wasn't finished... try it again...

-- 
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 #189310]: Environment Settings

2012-03-01 Thread RaiMan
Question #189310 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189310

Status: Solved = Invalid

RaiMan changed the question status:
stated by user

-- 
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 #189312]: Environment Settings

2012-03-01 Thread Fritz Doetzkies
New question #189312 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189312

Hello,

I'm using an older Linux system: Linux 2.6.25.20-0.7-default x86_64 / openSUSE 
11.0 (x86_64) / 4.0.4 (KDE 4.0.4 = 20080505) release 15.4 and wants to try 
working with SIKULI.
There were many problems to install the required components (till compiling a 
cmake...) - but I think, I've solved them all:
- installing cmake
- installing jython
- building and install opencv
- install wmctrl (1.07)
- integrate PyDev into Eclipse (3.7)

But: Neighter the IDE nor the Eclipse integration works. I think, there may be 
something wrong. But I don't know, what. And I don't know, how to check it...

First I try to use the Sikuli-IDE:

fritz@jupiter:~/workspace/TestSikuli echo $SIKULI_HOME
/home/fritz/Software/sikuli/Sikuli-IDE/
fritz@jupiter:~/workspace/TestSikuli echo $PATH
/home/fritz/android/sdk/tools:/home/fritz/android/sdk/platform-tools:/home/fritz/Software/sikuli/Sikuli-IDE/:/opt/kde3/bin:/usr/bin:/home/fritz/android/sdk/tools:/home/fritz/android/sdk/platform-tools:/home/fritz/bin:/usr/local/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
fritz@jupiter:~/workspace/TestSikuli sikuli-ide.sh
[info] locale: de_DE
fritz@jupiter:~/workspace/TestSikuli

Nothing happens. Sometimes I start it and it doesn't return until ^C...

There is a script (probably wrong :-) I've created by copiying some examples. 
If I try to use it, I get:

fritz@jupiter:~/workspace/TestSikuli sikuli-ide.sh -sr Test.sikuli
[info] locale: de_DE
Laufzeitfehler beim Ausführen von /home/fritz/workspace/TestSikuli/Test.sikuli
Traceback (most recent call last):
  File string, line 1, in module
  File /home/fritz/Software/Sikuli-X-1.0rc3 
(r905)-linux-x86_64/Sikuli-IDE/sikuli-script.jar/Lib/sikuli/__init__.py, line 
3, in module
  File /home/fritz/Software/Sikuli-X-1.0rc3 
(r905)-linux-x86_64/Sikuli-IDE/sikuli-script.jar/Lib/sikuli/Sikuli.py, line 
22, in module
java.lang.UnsatisfiedLinkError: /home/fritz/Software/Sikuli-X-1.0rc3 
(r905)-linux-x86_64/Sikuli-IDE/libs/libVisionProxy.so: libml.so.2.1: cannot 
open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
...
at org.sikuli.ide.SikuliIDE.runSikuli(SikuliIDE.java:856)
at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:944)

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: 
/home/fritz/Software/Sikuli-X-1.0rc3 
(r905)-linux-x86_64/Sikuli-IDE/libs/libVisionProxy.so: libml.so.2.1: cannot 
open shared object file: No such file or directory



Yes, I can read: There is a file or directory missing. And it seems it has to 
do with OpenCV. But the make/make install of OpenCV didn't report an error. So 
I think, the problem depends on environment settings.

Unfortunately the Sikuli documentation says only: Linux: you generally have to 
take care for the environment yourself. but it didn't say, which variables to 
set and which values are expected.

So I ask here for hints to make Sikuli working - stand-alone and with 
eclipse... Thanks in advance

F




-- 
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 #189309]: For my second script, URL is not pasted properly

2012-03-01 Thread RaiMan
Question #189309 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189309

Status: Open = Answered

RaiMan proposed the following answer:
--1. I think,

App.close(cmd)

does not make any sense if used in the master/sub configuration, because
this will close the command window, that the master is running in.

BTW 1:
from sikuli import *
is not needed in subs, if exec file is used.

--- Better solution:
If you decide to run master generally from command line and having all related 
.sikuli in one folder, this is better with current Sikuli X (the subs NEED from 
sikuli import * in this case):

*** master.sikuli
import script1
import script2

this will simply run both scripts one after the other.

might make sense, to insert a wait, after a script has run:
import script1
wait(3) # to give Firefox time to close
import script2

--- passing variables back and force is no longer possible using just 
variables. with this solution You might use for example Sikuli's Settings class 
to define and access variables in master and all subs
# e.g. in master
Settings.myValue = True

# and in sub:
if Settings.myValue:
print myValue is set

--- So it is possible to decide, wether the sub is run as sub or standalone:
# in master:
Settings.runningAsSub = True

# and in sub
from sikuli import *
try:
isSub = Settings.runningAsSub
except:
isSub = False

if not isSub:
 pass # start Firefox
else:
 pass # supposing FF already running 

--- One more thing:
With newer versions of Firefox, closing a FF window might not close the FF 
process.
To access the address field you might use
type(l, KeyModifier.CTRL) # lowercase L

-- 
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 #189312]: Environment Settings

2012-03-01 Thread RaiMan
Question #189312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189312

RaiMan proposed the following answer:
Sorry forgot to mention:

Information on Eclipse/PyDev:
http://sikuli.org/docx/faq/040-other-ide.html

-- 
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 #189312]: Environment Settings

2012-03-01 Thread Fritz Doetzkies
Question #189312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189312

Fritz Doetzkies posted a new comment:
again... :-(((

No. this didn't help. 
Your comment took me to the idea, that I should set the LD_LIBRARY_PATH to this 
value... but it doesn't work too. So I read the error message again and 
again... libml.so.2.1 is missing - and: JUPITER is right:

13:30:29 doetz@jupiter:~ find / -name 'libml*' 2/dev/null
/usr/java/jdk1.5.0_17/jre/lib/amd64/libmlib_image.so
/usr/java/jre1.6.0_25/lib/amd64/libmlib_image.so
/usr/java/jre1.6.0_11/lib/amd64/libmlib_image.so
/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64/libmlib_image.so
/usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre/lib/amd64/libmlib_image.so
/home/doetz/app/doetz/product/11.2.0/client_1/jdk/jre/lib/i386/libmlib_image.so
/home/doetz/app/doetz/product/11.2.0/client_1/jdk/jre/lib/i386/libmlib_image_g.so

So - at next I will search for that library using google... maybe I get
some information.

F

BTW.: noch ist es nix mit deutscher Sikuli-Benutzer

-- 
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 #189312]: Environment Settings

2012-03-01 Thread Fritz Doetzkies
Question #189312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189312

Status: Solved = Open

Fritz Doetzkies is still having a problem:
Das stimmt nicht, mit dem Solved. Auf der Webseite stand, dass ich zum
Absenden meines Comments den Button oben drücken soll...

-- 
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 #189312]: Environment Settings

2012-03-01 Thread Fritz Doetzkies
Question #189312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189312

Status: Answered = Solved

Fritz Doetzkies 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


Re: [Sikuli-driver] [Question #189312]: Environment Settings

2012-03-01 Thread RaiMan
Question #189312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189312

RaiMan posted a new comment:
--- noch ist es nix mit deutscher Sikuli-Benutzer
wird schon noch viele andere Linux'er haben es auch geschafft.

--- find / -name 'libml*'
So if you think the problem is with libml.so.2.1 (belongs to OpenCV), then this 
should find a libml.so.2.1 somewhere in usr/local/lib or wherever you installed 
OpenCV. so have a look at the installation directories and check what your 
installation of OpenCV (it should be 2.1) really did.

-- 
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 #189203]: Input password : Is there an hidden input method ?

2012-03-01 Thread Sephyroth69
Question #189203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189203

Sephyroth69 posted a new comment:
Yes yes, I know java ;) I realised the link afterward.
Here is my working piece for anyone looking for that :

import java.awt.GridLayout as GridLayout
from javax.swing import JOptionPane, JPanel, JLabel, JPasswordField, JTextField
from java.lang import String, Object
from jarray import array

panel = JPanel()
panel.setLayout(GridLayout(2,2))
loginLabel = JLabel(Login : )
loginField = JTextField()
pwdLabel = JLabel(Password : )
passwordField = JPasswordField()
panel.add(loginLabel)
panel.add(loginField)
panel.add(pwdLabel)
panel.add(passwordField)
fields = array([panel], Object)
action = JOptionPane.showConfirmDialog(None, fields, Enter Login and 
Password, JOptionPane.OK_CANCEL_OPTION) 
while (action  0):
action = JOptionPane.showConfirmDialog(None, fields, Enter Login and 
Password, JOptionPane.OK_CANCEL_OPTION) 

loginValue = String(loginField.getText())
passwordValue = String(passwordField.getPassword())

-- 
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 #189312]: Environment Settings

2012-03-01 Thread RaiMan
Question #189312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189312

Status: Open = Answered

RaiMan proposed the following answer:
Yes, the libraries changed from OpenCV 2.1 to OpenCV 2.2+

So you have 2 options:
-- go back to openCV 2.1
or
-- build Sikuli from source (which would then (hopefully ;-) use the installed 
OpenCV 2.3)

Since I do not know the situation with the prereqs on your system, I cannot 
give any recommendation.
But I know, that it is not a big thing to build Sikuli from source (cmake is 
already there ;-)

come back if you need more hints.

At least for my Mac environment I have now managed to successfully build
sikuli-script.jar (which is the critical part, since it contains/needs
all this native stuff) completely from within Eclipse Indigo.

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 #189203]: Input password : Is there an hidden input method ?

2012-03-01 Thread RaiMan
Question #189203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189203

RaiMan posted a new comment:
Thanks a lot.
I will post it as a HowTo faq.

-- 
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 #189312]: Environment Settings

2012-03-01 Thread Fritz Doetzkies
Question #189312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189312

Status: Answered = Solved

Fritz Doetzkies confirmed that the question is solved:
There were a third option: a parallel installation of opencv 2.1 - I've
found the sources at the opencv home page, build it and installed it
according to the instructions on
http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.1/.

It works.

After this I had the known libtiff problem. At first the solution from
the web:

sudo ln -s /usr/lib/libtiff.so.3 /usr/lib/libtiff.so.4

didn't work. After recognizing that my system searches /usr/lib64
(instead of /usr/lib) for that library the solution was quite easy. :-)

Now my first tests were running... Thanks for helping, Maybe there will
be more questions.

F

-- 
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 944044] [NEW] sikuli-script Pattern.similar does not work with images

2012-03-01 Thread Ola Sundin
Public bug reported:

If the Pattern is contructed with a BufferedImage instead of an URL the
methods similar, targetOffset and exact does not work since the
Pattern(Pattern p) contructor does not copy the image.

Add:
image = p.image;

in the method.

This is valid for the 0.10.2 version of the jar.

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

Title:
  sikuli-script Pattern.similar does not work with images

Status in Sikuli:
  New

Bug description:
  If the Pattern is contructed with a BufferedImage instead of an URL
  the methods similar, targetOffset and exact does not work since the
  Pattern(Pattern p) contructor does not copy the image.

  Add:
  image = p.image;

  in the method.

  This is valid for the 0.10.2 version of the jar.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/944044/+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 #189266]: multiple type(img, txt) statements all put text into the first textfield

2012-03-01 Thread Steve Brown
Question #189266 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189266

Status: Answered = Open

Steve Brown is still having a problem:
wait(1) did not work 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


Re: [Sikuli-driver] [Question #189054]: how to generate sequential numbers as my script saves screen grabs

2012-03-01 Thread grey grey
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054

grey grey posted a new comment:
Thanks for all your help.

GG

-- 
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 #189351]: Pass Return as Argument

2012-03-01 Thread Ryan Raines
Question #189351 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189351

Status: Open = Solved

Ryan Raines confirmed that the question is solved:
Needed to instantiate the variables first, then use global var, var in
each function that needs to use 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


[Sikuli-driver] [Question #189403]: Opencv installation error

2012-03-01 Thread Sunil
New question #189403 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189403

Hi,

I'm sorry that I'm posting  question related to opencv installation in this 
forum.
I thought I could get some hint on this since opencv is a dependent package for 
Sikuli.

My aim is to work with sikuli, but I got suck with opencv installation on my 
linux machine.
I'm trying to compile opencv-2.1.0 on my Centos 5.4 (64 bit) machine. Below is 
the error I'm getting 

==
In file included from /usr/include/glib-2.0/glib.h:52,
 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
 from /usr/include/gtk-2.0/gdk/gdk.h:30,
 from /usr/include/gtk-2.0/gtk/gtk.h:31,
 from 
/home/Suni/tools/Sikuli-Tool/packages/OpenCV-2.1.0/src/highgui/window_gtk.cpp:48:
/usr/include/glib-2.0/glib/gmessages.h:109: error: expected initializer before 
G_GNUC_INTERNAL
In file included from /usr/include/glib-2.0/gobject/gboxed.h:26,
 from /usr/include/glib-2.0/glib-object.h:25,
 from /usr/include/pango-1.0/pango/pango-types.h:26,
 from /usr/include/pango-1.0/pango/pango-font.h:26,
 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
 from /usr/include/pango-1.0/pango/pango.h:25,
 from /usr/include/gtk-2.0/gdk/gdktypes.h:33,
 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
 from /usr/include/gtk-2.0/gdk/gdk.h:30,
 from /usr/include/gtk-2.0/gtk/gtk.h:31,
 from 
/home/Sunil/tools/Sikuli-Tool/packages/OpenCV-2.1.0/src/highgui/window_gtk.cpp:48:
/usr/include/glib-2.0/gobject/gtype.h:431: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:432: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:433: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:434: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:435: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:436: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:437: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:438: error: expected initializer before 
G_GNUC_INTERNAL
/usr/include/glib-2.0/gobject/gtype.h:439: error: expected initializer before 
G_GNUC_INTERNAL
make[2]: *** [src/highgui/CMakeFiles/highgui.dir/window_gtk.o] Error 1
make[1]: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2
make: *** [all] Error 2

===


Thanks,
Sunil

-- 
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