Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?

2013-12-06 Thread RaiMan
Question #240375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240375

Status: Open = Answered

RaiMan proposed the following answer:
Which version of 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


Re: [Sikuli-driver] [Question #240375]: MinSimilarity setting is implemented incorrectly?

2013-12-06 Thread Eugene S
Question #240375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240375

Status: Answered = Open

Eugene S is still having a problem:
Sorry, forgot to mention.
This is 1.0.1.

Thanks,
Eugene

-- 
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 #240375]: MinSimilarity setting is implemented incorrectly?

2013-12-06 Thread RaiMan
Question #240375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240375

Status: Open = Answered

RaiMan proposed the following answer:
ok, I will check it later.

-- 
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 #240375]: MinSimilarity setting is implemented incorrectly?

2013-12-06 Thread RaiMan
Question #240375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240375

RaiMan proposed the following answer:
I am just busy with moving the OpenCV related features (find, findAll, 
onChange, ...), the related Java classes like Finder and the functions 
implemented on the C++ level completely to the Java level, which is possible 
now, since OpenCV 2.4.5+ has the option to generate a Java OpenCV API layer and 
the performance is the same.
So I will revise this similarity handling anyway to be consistent all over the 
place.

current situation with 1.0.1:
- internally similarity score from OpenCV match is a float number and this is 
never 1.0 or 0.0 exactly.
- What you see with the highlight message is a rounded number 
(s0.995000 is 1.00 and 0.985000...  s 0.995 is 0.99)
- the way, how the MinSimilarity setting is used internally is different for 
find() and findAll()

Recommendation:
Never use MinSimilarity as 1.0, always use a value 1.0 (usually 0.99 for exact 
matches is sufficient - but feel free to try other values with more digits like 
0.999).
The implementation of the Pattern class already assures this internally 
(exact() evaluates to 0.99).

-- 
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 #240396]: need help on how to Key.DOWN in x times from a list

2013-12-06 Thread Ninja Mustang
New question #240396 on Sikuli:
https://answers.launchpad.net/sikuli/+question/240396

Hello,

How do I Key.DOWN x number of times?

Here is the sample script which I'm stuck in the while loop.  Thanks!

import re, os

list_serial = 
['0001-clothing-all','0001-clothing-men','0001-clothing-women','0002-clothing-all','0002-clothing-men','0002-clothing-women']
list_item = 
['111-blouses','111-dresses','111-hats','111-pants','111-shirts','111-shoes','222-blouses','222-dresses','222-hats','222-pants','222-shirts','222-shoes']

myval1 = '0002'
myval2 = '222'

myserial = []
myarrow_down_serial = []

myitem = []
myarrow_down_item = []

for line in list_serial:
p = re.compile((%s)(.*)%myval1)
m = p.search(line)
if m:
sname = m.group(1)+m.group(2)  
myserial.append(sname)
myarrow_down_serial.append(list_serial.index(sname))

for line in list_item:
p = re.compile((%s)(.*)%myval2)
m = p.search(line)

if m:
   iname = m.group(1)+m.group(2)  
   myitem.append(iname)
   myarrow_down_item.append(list_item.index(iname))

# serial_list = [1,2,3,4,5,6,7]
# item_list = [1,2,3,4,5,6,7,8,9,10,11,12]

# myserial = [3,4,5]
# myitem = [6,7,8,9,10]

i = 0
while i  len(serial_list):

# 1st run
#   serial dropdown list has [1,2,3,4,5,6,7]
type(Key.TAB)   
#   tab down 3 times, which is first value in myserial
for line in myserial:
type(Key.DOWN*line, KeyModifier.CTRL)

type(Key.TAB)   
#   item download list has [1,2,3,4,5,6,7,8,9,10,11,12]

#   tab down to 6, hold on shift and go down to 10, to select all value in 
myitem

# 2nd run
#   tab down 4 times, which is 2nd value in myserial
type(Key.TAB)
#   tab down to 6, hold ctrl key, tab down to 8, so only 6 and 8 were selected 
only

# 3rd run
#   tab down 5 times, which is last vaue in myserial
#   tab down to 9, hold shift select 9, 10, 11

i += 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 #240396]: need help on how to Key.DOWN in x times from a list

2013-12-06 Thread Ninja Mustang
Question #240396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240396

Description changed to:
Hello,

How do I Key.DOWN x number of times?

Here is the sample script which I'm stuck in the while loop.  Thanks!

import re, os

list_serial = 
['0001-clothing-all','0001-clothing-men','0001-clothing-women','0002-clothing-all','0002-clothing-men','0002-clothing-women']
list_item = 
['111-blouses','111-dresses','111-hats','111-pants','111-shirts','111-shoes','222-blouses','222-dresses','222-hats','222-pants','222-shirts','222-shoes']

myval1 = '0002'
myval2 = '222'

myserial = []
myarrow_down_serial = []

myitem = []
myarrow_down_item = []

for line in list_serial:
p = re.compile((%s)(.*)%myval1)
m = p.search(line)
if m:
sname = m.group(1)+m.group(2)  
myserial.append(sname)
myarrow_down_serial.append(list_serial.index(sname))

for line in list_item:
p = re.compile((%s)(.*)%myval2)
m = p.search(line)

if m:
   iname = m.group(1)+m.group(2)  
   myitem.append(iname)
   myarrow_down_item.append(list_item.index(iname))

# serial_list = [1,2,3,4,5]
# item_list = [1,2,3,4,5,6,7,8,9,10]

# myserial = [3,4,5]
# myitem = [6,7,8,9,10]

i = 0
while i  len(serial_list):

# 1st run
#   serial dropdown list has [1,2,3,4,5]
type(Key.TAB)   
#   tab down 3 times, which is first value in myserial
for line in myserial:
type(Key.DOWN*line, KeyModifier.CTRL)

type(Key.TAB)   
#   item download list has [1,2,3,4,5,6,7,8,9,10]

#   tab down to 6, hold on shift and go down to 10, to select all value
in myitem

# 2nd run
#   tab down 4 times, which is 2nd value in myserial
type(Key.TAB)
#   tab down to 6, hold ctrl key, tab down to 8, so only 6 and 8 were selected 
only

# 3rd run
#   tab down 5 times, which is last vaue in myserial
#   tab down to 9, hold shift select 9, 10

i += 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 #240396]: need help on how to Key.DOWN in x times from a list

2013-12-06 Thread Ninja Mustang
Question #240396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240396

Description changed to:
Hello,

How do I Key.DOWN x number of times?

Here is the sample script which I'm stuck in the while loop.  Thanks!

import re, os

list_serial = 
['0001-clothing-all','0001-clothing-men','0001-clothing-women','0002-clothing-all','0002-clothing-men','0002-clothing-women']
list_item = 
['111-blouses','111-dresses','111-hats','111-pants','111-shirts','111-shoes','222-blouses','222-dresses','222-hats','222-pants','222-shirts','222-shoes']

myval1 = '0002'
myval2 = '222'

myserial = []
myarrow_down_serial = []

myitem = []
myarrow_down_item = []

for line in list_serial:
p = re.compile((%s)(.*)%myval1)
m = p.search(line)
if m:
sname = m.group(1)+m.group(2)  
myserial.append(sname)
myarrow_down_serial.append(list_serial.index(sname))

for line in list_item:
p = re.compile((%s)(.*)%myval2)
m = p.search(line)

if m:
   iname = m.group(1)+m.group(2)  
   myitem.append(iname)
   myarrow_down_item.append(list_item.index(iname))

# serial_list = [1,2,3,4,5]
# item_list = [1,2,3,4,5,6,7,8,9,10]

# myserial = [3,4,5]
# myitem = [6,7,8,9,10]

i = 0
while i  len(serial_list):

# 1st run
#   serial dropdown list has [1,2,3,4,5,6,7]
type(Key.TAB)   
#   tab down 3 times, which is first value in myserial
for line in myserial:
type(Key.DOWN*line, KeyModifier.CTRL)

type(Key.TAB)   
#   item download list has [1,2,3,4,5,6,7,8,9,10,11,12]

#   tab down to 6, hold on shift and go down to 10, to select all value
in myitem

# 2nd run
#   tab down 4 times, which is 2nd value in myserial
type(Key.TAB)
#   tab down to 6, hold ctrl key, tab down to 8, so only 6 and 8 were selected 
only

# 3rd run
#   tab down 5 times, which is last vaue in myserial
#   tab down to 9, hold shift select 9, 10, 11

i += 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 #240396]: need help on how to Key.DOWN in x times from a list

2013-12-06 Thread RaiMan
Question #240396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240396

Status: Open = Answered

RaiMan proposed the following answer:
  for line in myserial:
   type(Key.DOWN*line, KeyModifier.CTRL)

--- Key.DOWN*line
this is not a valid parameter for type()

if you want to repeat keys with type(), you have to repeat the type():

  for line in myserial:
   for nline in range(line): type(Key.DOWN, KeyModifier.CTRL)

-- 
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 #240396]: need help on how to Key.DOWN in x times from a list

2013-12-06 Thread Ninja Mustang
Question #240396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240396

Description changed to:
Hello,

How do I Key.DOWN x number of times?

Here is the sample script which I'm stuck in the while loop.  Thanks!

import re, os

list_serial = 
['0001-clothing-all','0001-clothing-men','0001-clothing-women','0002-clothing-all','0002-clothing-men','0002-clothing-women']
list_item = 
['111-blouses','111-dresses','111-hats','111-pants','111-shirts','111-shoes','222-blouses','222-dresses','222-hats','222-pants','222-shirts','222-shoes']

myval1 = '0002'
myval2 = '222'

myserial = []
myarrow_down_serial = []

myitem = []
myarrow_down_item = []

for line in list_serial:
p = re.compile((%s)(.*)%myval1)
m = p.search(line)
if m:
sname = m.group(1)+m.group(2)  
myserial.append(sname)
myarrow_down_serial.append(list_serial.index(sname))

for line in list_item:
p = re.compile((%s)(.*)%myval2)
m = p.search(line)

if m:
   iname = m.group(1)+m.group(2)  
   myitem.append(iname)
   myarrow_down_item.append(list_item.index(iname))


#['0002-clothing-all', '0002-clothing-men', '0002-clothing-women']
print myserial

#[3, 4, 5]
print myarrow_down_serial

#['222-blouses', '222-dresses', '222-hats', '222-pants', '222-shirts', 
'222-shoes']
print myitem

#[6, 7, 8, 9, 10, 11]
print myarrow_down_item

#comparelist = [x for x in list_serial if x in myserial]
#print comparelist

i = 0
while i  len(myserial):
# 1st run
#   serial dropdown list has [1,2,3,4,5]
type(Key.TAB)   
#   tab down 3 times, which is first value in myserial
for line in myserial:
   for nline in range(line): 
   #type(Key.DOWN, KeyModifier.CTRL)
   print nline


#type(Key.TAB)   
#   item dropdown list has [1,2,3,4,5,6,7,8,9,10]
#   tab down to 6, hold on shift and go down to 10, to select all value in 
myitem

# 2nd run
#   tab down 4 times, which is 2nd value in myserial
#type(Key.TAB)
#   tab down to 6, hold ctrl key, tab down to 8, so only 6 and 8 were selected 
only

# 3rd run
#   tab down 5 times, which is last vaue in myserial
#   tab down to 9, hold shift select 9, 10

i += 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 #240396]: need help on how to Key.DOWN in x times from a list

2013-12-06 Thread Ninja Mustang
Question #240396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240396

Status: Answered = Open

Ninja Mustang is still having a problem:
i got an error

for nline in range(line):
TypeError: range() integer end argument expected, got str.

also, i think i'm missing something since myserial list has 3,4,5 and
the serial_list has 0,1,2,3,4,5.  I need to key.DOWN 3 times to get to 3
and not sure what am I missing.

-- 
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 #240404]: Interfacing Sikuli with Python

2013-12-06 Thread K
New question #240404 on Sikuli:
https://answers.launchpad.net/sikuli/+question/240404

I would like to do something along the lines of from Sikuli import * in a 
Python script (similar to the way you would do with any library). I've looked 
around and heard this direct route isn't possible. Does anyone have examples of 
something that could accomplish this general task?

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 #236124]: Import Lib/site-packages the same way as -i option

2013-12-06 Thread Mark
Question #236124 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/236124

Mark requested more information:
Hey, what about for .pth files?  I am trying to register a file-system
path but haven't had any luck.

-- 
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 #233683]: Has anyone compiled Sikuli for RedHat EL 5?

2013-12-06 Thread p.elsie
Question #233683 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/233683

p.elsie posted a new comment:
I've tried.

http://pkgs.repoforge.org/wmctrl/wmctrl-1.07-1.el5.rf.x86_64.rpm
http://ftp.gnu.org/gnu/gcc/gcc-4.4.7/gcc-4.4.7.tar.bz2
http://leptonica.googlecode.com/files/leptonlib-1.67.tar.gz
http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz
http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.1/OpenCV-2.1.0.tar.bz2
http://downloads.sourceforge.net/project/jxgrabkey/jxgrabkey/0.3.2/jxgrabkey-0.3.2_src.tar.bz2
http://ftp.gnu.org/gnu/glibc/glibc-2.11.3.tar.gz

Presently I'm stuck on trying to get glibc to compile.  This has killed
a lot of time.  Each time I get past the latest dependency problem,
there's a new one.

RHEL6 is much easier.

-- 
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 #240396]: need help on how to Key.DOWN in x times from a list

2013-12-06 Thread Ninja Mustang
Question #240396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240396

Status: Open = Solved

Ninja Mustang confirmed that the question is solved:
i got it, i indexed it so it worked.

only thing is when the list is large, it has to compare and take long
time, i had to put wait(1) in between otherwise it just crashed.

-- 
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 1258696] [NEW] [1.0.1.] The behavior of pressing HOME or END button on a keyboard in the IDE seems wrong

2013-12-06 Thread Yen-Bor Lin
Public bug reported:

The cursor should move to the beginning of the editing line after
pressing HOME or END button on a keyboard in the IDE.

** Affects: sikuli
 Importance: Undecided
 Status: New


** Tags: ide sikuli sikulijavaapi

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

Title:
  [1.0.1.] The behavior of pressing HOME or END button on a keyboard in
  the IDE seems wrong

Status in Sikuli:
  New

Bug description:
  The cursor should move to the beginning of the editing line after
  pressing HOME or END button on a keyboard in the IDE.

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