Re: [Sikuli-driver] [Question #214146]: About Guide: spotlight doesn't work in rectangle?

2012-11-14 Thread RaiMan
Question #214146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214146

RaiMan proposed the following answer:
done: https://github.com/RaiMan/SikuliGuide2012

-- 
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 1078321] Re: Sikuli IDE: Help Menu: Links not valid anymore temporarily

2012-11-14 Thread Stuber Thomas
Also menu Werkzeuge - Erweiterungen (Tools - extensions?) does not function 
as well.
Also links on homepage (for instance on 
http://doc.sikuli.org/faq/020-unit-test.html there is a link for Here is a 
complete example which points 
tohttp://www.sikuli.org/examples/TestJEdit.sikuli/TestJEdit.html) are not valid 
any more...

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

Title:
  Sikuli IDE: Help Menu: Links not valid anymore temporarily

Status in Sikuli:
  Fix Committed

Bug description:
  Sikuli r930,  Windows7, 64-Bit
  Open in menu Help second and third point
  -- 404 - Page Not Found 

  In german the menus are: 
  Hilfe - Der umfassende Leitfaden zu Sikuli Script -- 
http://www.sikuli.org/guide-x
  Hilfe - Tutorials, Beispiele, How-To's -- 
http://www.sikuli.org/documentation.shtml

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078321/+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 1078321] Re: Sikuli IDE: Help Menu: Links not valid anymore temporarily

2012-11-14 Thread RaiMan
--- Extensions are not supported currently (known for many month now)
(see faq 2136 for extension Guide)

--- the above mentioned broken link is known too already (and will not be 
restored again, since the unittest feature will no longer be supported in IDE 
with the final X-1.0) see faq 1804 for the options you have
all links starting with sikuli.org/examples are not available any more. 
See the tutorial section in the docs instead and the many, many videos on the 
new homage (sikuli.org).

anyway: thanks for posting.

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

Title:
  Sikuli IDE: Help Menu: Links not valid anymore temporarily

Status in Sikuli:
  Fix Committed

Bug description:
  Sikuli r930,  Windows7, 64-Bit
  Open in menu Help second and third point
  -- 404 - Page Not Found 

  In german the menus are: 
  Hilfe - Der umfassende Leitfaden zu Sikuli Script -- 
http://www.sikuli.org/guide-x
  Hilfe - Tutorials, Beispiele, How-To's -- 
http://www.sikuli.org/documentation.shtml

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

2012-11-14 Thread Hasham
New question #214163 on Sikuli:
https://answers.launchpad.net/sikuli/+question/214163

Need an explanation on how the setting ObserveScanRate works, say if the 
setting is set to 1 will it be applied when I do a find operation or only 
region.wait, region.exists etc?

-- 
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 #214163]: ObserveScanRate

2012-11-14 Thread RaiMan
Question #214163 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214163

Status: Open = Answered

RaiMan proposed the following answer:
ObserveScanRate is for observe() only.

for all other explicit (find, wait, exists, ..) and implicit (click,
...) we have the WaitScanRate.

It simply said, how often per second a search is repeated until found or
waiting time exceeded.

So specifying 1 means one per second (standard is 3 - means max 3 per second - 
searching the whole screen means constantly searching, since 0.5 to 1 second 
per search ;-).
and values like 
0.5 means every 2 seconds
0.2 means every 5 seconds

so values 0.3 ands lower leaving the standard waiting time of 3 seconds
would mean 1 search only (same as exists(image, 0) )

hope it helps. see docs for more information (doc.sikuli.org).

-- 
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 #214110]: Linking To Postgres

2012-11-14 Thread James
Question #214110 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214110

Status: Answered = Solved

James confirmed that the question is solved:
Hi RaiMan,

Found Guide here. I dont know if its one you helped with previously.

http://www.codingourweb.com/read-and-write-to-a-mysql-database-from-
sikuli/

Followed the guide had to paste in an extra file msvcr100.dll (Search on hard 
drive find it and just paste into jbdc)
 
commands run in dos box

C:\JBDCjar xf mysql-connector-java-5.1.18-bin.jar (I didnt know how to
extract a jar untill I went and looked it up)

C:\JBDCjar uf sikuli-script.jar com

C:\JBDCjar uf sikuli-script.jar org

Rename the correct sikuli-script.jar in c:\program files\sikuli x\ and paste in 
the new one. One connection to the data base and was able to read it. Very 
excited now.
 
Other links used
http://docs.oracle.com/javase/tutorial/deployment/jar/unpack.html

To get round windows 7 issues I cheated.
 Installed virtual box(open source) - installed xp on it using my old key. 
(Virtual machines believe require licenses to run, if you dont have one check a 
version of linux that is known to work with sikuli).

Xamp - Installs apache web server  mysql for you. 
http://www.apachefriends.org/en/xampp.html (Open source product)
 
As you can tell from this I am not a programmer but was able to muddle through. 
I am not sure what damage I have done to sikuli in doing this I will await the 
shouting. Dont think I broke any laws in the process of this.

Thank you for you help am still giving this a try out but thought I cant
be the only one looking at things like this.

-- 
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 #214125]: Last part of script not running when called from another script.

2012-11-14 Thread Shawn Robertson
Question #214125 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214125

Status: Needs information = Open

Shawn Robertson gave more information on the question:
my main path for scripts is:

C:\Sikuli Scripts

and in this folder are all my script folders including:

CreateCalendarEntry.sikuli
SlipsExpandedFunctionality.sikuli

both scripts contain the line:

from sikuli import *

and the script folder SlipsExpandedFunctionality.sikuli contains the
line:

import CreateCalendarEntry
# some stuff
def ts_expanded_functions():
CreateCalendarEntry.create_calendar_entry()
# more stuff
ts_expanded_functions()


and yes confirming the rest of what you said.

there are no errors.

when i go to the

SlipsExpandedFunctionality.sikuli script and run it as above...

it calls the create_calendar_entry() function just fine but just ignores
the final part that says to close the dialog window it was in.

when that happens the rest of the script that occurs after that fails
because it was expecting that dialog to be closed.

when i go back to the create_calendar_entry() function on its own and
run it by itself it runs fine the the dialog closes no problem, only
fails to close that dialog when its being called from another script.


and yes saved all work and closed and restarted both IDE and my program i am 
working in.

-- 
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 #214110]: Linking To Postgres

2012-11-14 Thread RaiMan
Question #214110 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214110

RaiMan posted a new comment:
Congratulations. It is ok, if it works for you.

You did not do any damage to Sikuli, you only added some additional
class files to the existing sikuli-script.jar (which is only a special
compressed version of some Java stuff).

Usually one would have done the mysql-connector-java-5.1.18-bin.jar somewhere 
on the java class path (that's what it is for).
So you now have a modified sikuli-script.jar and you have to repeat the whole 
procedure if you either want to use a new sikuli-script.jar or another 
db-driver.

I do not know, what problems the guy from the mentioned post had with the java 
class path, that he had to invent this strange way.
But if it is ok for you  ;-)

-- 
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 #214125]: Last part of script not running when called from another script.

2012-11-14 Thread RaiMan
Question #214125 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214125

Status: Open = Needs information

RaiMan requested more information:
... and what about the question in comment #2:

In the not-working case:
Is the type reported in the message area?

-- 
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 #214125]: Last part of script not running when called from another script.

2012-11-14 Thread Shawn Robertson
Question #214125 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214125

Status: Needs information = Solved

Shawn Robertson confirmed that the question is solved:
ok never mind. not sure why but this morning now i cant reproduce it but
yesterday i could reproduce this consistently even after closing and
reopening IDE.

just tried right noe 3 times and it is now working.

so for now it looks like I am no longer having the issue and i apologize
for taking up the space here.

in the future i will make sure to close and reopen IDE and my program
after i commit and save changes to make sure.

-- 
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 1078806] [NEW] not exists doesn't do anything

2012-11-14 Thread Nicole Demers
Public bug reported:

I am using a patched version of Sikuli X 1.0rc Maltipoo on 32-bit
Windows XP.

Here is the offending code:

i = 0
if(not exists(HEWLETTPACKA.png)):
click(1352827765773.png)
while (i  10):
type(Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN)
if(exists(HEWLETTPACKA-1.png)):
break
i = i + 1

doubleClick(HEWLETTPACKA-1.png)

Basically, I'm trying to check for the existence of an HP order in a
list of orders that need to be filled.  If it doesn't exist, click the
beginning of the list and scroll down until a new page of orders is on
the screen and search again. If it appears on the screen, break out and
double click the order to open it.

For some reason when the script is running the if not
exists(HEWLETTPACKA.png)): is either evaluating to it's opposite or
not being evaluated at all. But then when I get to the double click it
can't find the HP order because it doesn't exist! The exact same code
was working just fine yesterday, which is really weird.

I looked at the matching preview and fiddled with similarity but that
didn't help. The preview says it's finding the matches it should be
finding. I also tried saving the value returned from exists outside of
the if statement and comparing it to None but that didn't work either.

I do notice that when I comment the line out, the HP image and following
parenthesis and colon aren't greyed out. I tried retyping the line and
taking a new screenshot but it didn't help the commenting or the failing
code.

I put it in a try: Except FindFailed: statement and it seems that when I
try to find HEWLETTPACKA.png it doesn't actually throw an exception or
go into the code within the except statement. However, when I try to
doubleClick the image after the except code block, it does throw the
exception. When I run the code block from the except statement by itself
it works great and scrolls until it finds an HP order with no issues.

Here's the offending try/except code:

i = 0
try:
find(HEWLETTPACKA.png)
except FindFailed:
click(1352827765773.png)
#... same as before...

doubleClick(HEWLETTPACKA-1.png)

Breakpoints in the sikuli IDE would make my life, guys. :) I have no
idea what's going on here.

** Affects: sikuli
 Importance: Undecided
 Status: New


** Tags: exists find if not

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

Title:
  not exists doesn't do anything

Status in Sikuli:
  New

Bug description:
  I am using a patched version of Sikuli X 1.0rc Maltipoo on 32-bit
  Windows XP.

  Here is the offending code:

  i = 0
  if(not exists(HEWLETTPACKA.png)):
  click(1352827765773.png)
  while (i  10):
  type(Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN)
  if(exists(HEWLETTPACKA-1.png)):
  break
  i = i + 1

  doubleClick(HEWLETTPACKA-1.png)

  Basically, I'm trying to check for the existence of an HP order in a
  list of orders that need to be filled.  If it doesn't exist, click the
  beginning of the list and scroll down until a new page of orders is on
  the screen and search again. If it appears on the screen, break out
  and double click the order to open it.

  For some reason when the script is running the if not
  exists(HEWLETTPACKA.png)): is either evaluating to it's opposite or
  not being evaluated at all. But then when I get to the double click it
  can't find the HP order because it doesn't exist! The exact same code
  was working just fine yesterday, which is really weird.

  I looked at the matching preview and fiddled with similarity but that
  didn't help. The preview says it's finding the matches it should be
  finding. I also tried saving the value returned from exists outside of
  the if statement and comparing it to None but that didn't work either.

  I do notice that when I comment the line out, the HP image and
  following parenthesis and colon aren't greyed out. I tried retyping
  the line and taking a new screenshot but it didn't help the commenting
  or the failing code.

  I put it in a try: Except FindFailed: statement and it seems that when
  I try to find HEWLETTPACKA.png it doesn't actually throw 

[Sikuli-driver] [Bug 1078812] [NEW] Break points

2012-11-14 Thread Nicole Demers
Public bug reported:

This isn't really a bug, it's more of a request. I would love to see
breakpoints in the Sikuli IDE (please). When I run into errors in loops
and things it can get really tough to debug without breakpoints.

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

Title:
  Break points

Status in Sikuli:
  New

Bug description:
  This isn't really a bug, it's more of a request. I would love to see
  breakpoints in the Sikuli IDE (please). When I run into errors in
  loops and things it can get really tough to debug without breakpoints.

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

2012-11-14 Thread RaiMan
I understand your frustration.

But Sikuli IDE (in its current shape) will never have a debugger built
in.

If you want breakpoints, watches and other things to support real
debugging, you have to switch your development to a IDE with a Jython
Support including a debugger like Netbeans 6.9 or Eclipse.

Nevertheless I have set it on the wish list.

** Summary changed:

- Break points
+ [request] IDE: want break points to support some debugging

** Changed in: sikuli
   Importance: Undecided = Wishlist

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

Title:
  [request] IDE: want break points to support some debugging

Status in Sikuli:
  New

Bug description:
  This isn't really a bug, it's more of a request. I would love to see
  breakpoints in the Sikuli IDE (please). When I run into errors in
  loops and things it can get really tough to debug without breakpoints.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078812/+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 1078822] [NEW] 'How to get involved' link at bottom of download page 404s

2012-11-14 Thread Caleb Smith
Public bug reported:

This is an issue with the Sikuli website.

The 'How to get involved' link at the bottom of
http://www.sikuli.org/download.html 404s.

** Affects: sikuli
 Importance: Undecided
 Status: New

** Attachment added: SikuliHowToGetInvolved.PNG
   
https://bugs.launchpad.net/bugs/1078822/+attachment/3433375/+files/SikuliHowToGetInvolved.PNG

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

Title:
  'How to get involved' link at bottom of download page 404s

Status in Sikuli:
  New

Bug description:
  This is an issue with the Sikuli website.

  The 'How to get involved' link at the bottom of
  http://www.sikuli.org/download.html 404s.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078822/+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 1078806] Re: not exists doesn't do anything

2012-11-14 Thread RaiMan
Using not exists() in this form (searching the whole screen) is always
risky, since you might get false positives, that look like the exists()
is not working.

To make this robust, you need a shot, that gets a score (when found) of 0.95 
and more.
Next you should restrict the search region to an area as small as possible, so 
you get something like this:

m = reg.exists(Pattern(HEWLETTPACKA.png).similar(0.95))
if m: reg.getLastMatch().highlight(2); exit()

run this until the region reg and the image are optimized.

reg can be evaluated relative to something else, that can be found with
a score of 0.95.

one more thing:
It seems, that you are using 2 different shots for the same visual content 
(HEWLETTPACKA and HEWLETTPACKA-1), this should be avoided in any case:
img = Pattern(HEWLETTPACKA.png).similar(0.95) # the optimized shot see above

and then
if not reg.exists(img):

and later
if reg.exists(img): break

and finally
doubleClick(reg.getLastMatch()) # use what already was found before

BTW:
breakpoints especially on windows can easily be implemented using input().

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

Title:
  not exists doesn't do anything

Status in Sikuli:
  New

Bug description:
  I am using a patched version of Sikuli X 1.0rc Maltipoo on 32-bit
  Windows XP.

  Here is the offending code:

  i = 0
  if(not exists(HEWLETTPACKA.png)):
  click(1352827765773.png)
  while (i  10):
  type(Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN)
  if(exists(HEWLETTPACKA-1.png)):
  break
  i = i + 1

  doubleClick(HEWLETTPACKA-1.png)

  Basically, I'm trying to check for the existence of an HP order in a
  list of orders that need to be filled.  If it doesn't exist, click the
  beginning of the list and scroll down until a new page of orders is on
  the screen and search again. If it appears on the screen, break out
  and double click the order to open it.

  For some reason when the script is running the if not
  exists(HEWLETTPACKA.png)): is either evaluating to it's opposite or
  not being evaluated at all. But then when I get to the double click it
  can't find the HP order because it doesn't exist! The exact same code
  was working just fine yesterday, which is really weird.

  I looked at the matching preview and fiddled with similarity but that
  didn't help. The preview says it's finding the matches it should be
  finding. I also tried saving the value returned from exists outside of
  the if statement and comparing it to None but that didn't work either.

  I do notice that when I comment the line out, the HP image and
  following parenthesis and colon aren't greyed out. I tried retyping
  the line and taking a new screenshot but it didn't help the commenting
  or the failing code.

  I put it in a try: Except FindFailed: statement and it seems that when
  I try to find HEWLETTPACKA.png it doesn't actually throw an
  exception or go into the code within the except statement. However,
  when I try to doubleClick the image after the except code block, it
  does throw the exception. When I run the code block from the except
  statement by itself it works great and scrolls until it finds an HP
  order with no issues.

  Here's the offending try/except code:

  i = 0
  try:
  find(HEWLETTPACKA.png)
  except FindFailed:
  click(1352827765773.png)
  #... same as before...

  doubleClick(HEWLETTPACKA-1.png)

  Breakpoints in the sikuli IDE would make my life, guys. :) I have no
  idea what's going on here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078806/+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 1078812] Re: [request] IDE: want break points to support some debugging

2012-11-14 Thread Nicole Demers
Thank you! I'll look into Eclipse in the meantime.

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

Title:
  [request] IDE: want break points to support some debugging

Status in Sikuli:
  New

Bug description:
  This isn't really a bug, it's more of a request. I would love to see
  breakpoints in the Sikuli IDE (please). When I run into errors in
  loops and things it can get really tough to debug without breakpoints.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078812/+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 878864] Re: [request] want Pattern.anySize() and Pattern.anyColor()

2012-11-14 Thread Nicole Demers
I know this is a bit late, but here it goes:

There is an algorithm for image stretching that generates a larger image
pattern from a smaller one that could then be used to match from for
anySize(). The pixels in the smaller image are sent to their relative
positions in the larger version of the image.

Imagine each [value] is a pixel:

Image pixels are pulled from (Source):
[red] [red]
[red] [blu]


Larger image pixels are drawn into:
[red] [red] [red]
[red] [red] [red]
[red] [red] [blu]
[red] [red] [blu]

or

[red] [red] [red] [red]
[red] [red] [red] [red]
[red] [red] [blu] [blu]
[red] [red] [blu] [blu]

The most important thing is to consistently round up or down every time
when calculating the pixel to get your colour from.

Algorithm Steps:
1. Generate a new image, the destination, in the size you require 
2. Iterate over destination's pixels, calculating the source pixel to get your 
colour value from
3. Set the colour value in destination based on the source calculation

This would generate an image that can be used to match whatever size you
need.

If you don't know the size it might be possible to use template matching
to find similar patterns to your search image on the screen then
generate images in the correct size based on the template matches and
try to find using a differently sized version of the pattern to match.
The processing time might be a bit slow. (Very, very slow)

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

Title:
  [request] want Pattern.anySize() and Pattern.anyColor()

Status in Sikuli:
  New

Bug description:
  based on the original description of the planned Sikuli features:

  anySize() was supossed to solve different resolutions problems.

  But it is not yet available in Sikuli script.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/878864/+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 #214200]: Class Paths

2012-11-14 Thread James
New question #214200 on Sikuli:
https://answers.launchpad.net/sikuli/+question/214200

I am having trouble setting a class path to import. Relates to previous 
question. https://answers.launchpad.net/sikuli/+question/214110

Now having had a play around I have tried putting the folder JBDC into the .ini 
for sikuli , path variable in windows and even appending it to the paths in use.

Tried working through
http://doc.sikuli.org/globals.html#load

But doesnt seem to be working always says im missing the driver. Doesnt fail to 
load or import but always on attempt to load driver.

Line failing on.
con = zxJDBC.connect(jdbc:mysql://localhost/your-db-name-here, root, None, 
com.mysql.jdbc.Driver)

Sorry this is probably a really boring question for most of you. I can the 
folder c:\jbdc in the sys path when I print it out.

Thanks for any help you are able to provide.



-- 
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 1078806] Re: not exists doesn't do anything

2012-11-14 Thread Nicole Demers
Thank you! It works well now.

If I have all other windows closed and a simple background I would think
it would take longer to execute, but not necessarily throw a false
positive. Why is it that false positives are returned if you search the
whole screen?

How are matches found in Sikuli?

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

Title:
  not exists doesn't do anything

Status in Sikuli:
  New

Bug description:
  I am using a patched version of Sikuli X 1.0rc Maltipoo on 32-bit
  Windows XP.

  Here is the offending code:

  i = 0
  if(not exists(HEWLETTPACKA.png)):
  click(1352827765773.png)
  while (i  10):
  type(Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN)
  if(exists(HEWLETTPACKA-1.png)):
  break
  i = i + 1

  doubleClick(HEWLETTPACKA-1.png)

  Basically, I'm trying to check for the existence of an HP order in a
  list of orders that need to be filled.  If it doesn't exist, click the
  beginning of the list and scroll down until a new page of orders is on
  the screen and search again. If it appears on the screen, break out
  and double click the order to open it.

  For some reason when the script is running the if not
  exists(HEWLETTPACKA.png)): is either evaluating to it's opposite or
  not being evaluated at all. But then when I get to the double click it
  can't find the HP order because it doesn't exist! The exact same code
  was working just fine yesterday, which is really weird.

  I looked at the matching preview and fiddled with similarity but that
  didn't help. The preview says it's finding the matches it should be
  finding. I also tried saving the value returned from exists outside of
  the if statement and comparing it to None but that didn't work either.

  I do notice that when I comment the line out, the HP image and
  following parenthesis and colon aren't greyed out. I tried retyping
  the line and taking a new screenshot but it didn't help the commenting
  or the failing code.

  I put it in a try: Except FindFailed: statement and it seems that when
  I try to find HEWLETTPACKA.png it doesn't actually throw an
  exception or go into the code within the except statement. However,
  when I try to doubleClick the image after the except code block, it
  does throw the exception. When I run the code block from the except
  statement by itself it works great and scrolls until it finds an HP
  order with no issues.

  Here's the offending try/except code:

  i = 0
  try:
  find(HEWLETTPACKA.png)
  except FindFailed:
  click(1352827765773.png)
  #... same as before...

  doubleClick(HEWLETTPACKA-1.png)

  Breakpoints in the sikuli IDE would make my life, guys. :) I have no
  idea what's going on here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078806/+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 #214146]: About Guide: spotlight doesn't work in rectangle?

2012-11-14 Thread Calvin
Question #214146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214146

Status: Answered = Solved

Calvin 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 1071597] Re: Sikuli IDE window doesn't open in Ubuntu

2012-11-14 Thread franzcai
There is a workaround.

Download 64bit version or 32bit veriosn of sikuli from offical website

http://www.sikuli.org/download.html

Then download and install the following packages from oneiric

http://packages.ubuntu.com/en/oneiric/amd64/libcv2.1/download

http://packages.ubuntu.com/en/oneiric/amd64/libcvaux2.1/download

http://packages.ubuntu.com/en/oneiric/amd64/libhighgui2.1/download

Finally, run the sikuli-ide

~/Sikuli-X/Sikuli-IDE/sikuli-ide.sh

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

Title:
  Sikuli IDE window doesn't open in Ubuntu

Status in Sikuli:
  In Progress

Bug description:
  Hi,
  I am working on Ubuntu 11.10 32-bit and the sikuli version is sikuli X 1.0rc3.
  I have dowloaded the bundle from sikuli.org.

  Sikuli is working fine but at times the following problem occurs :

  After I type sh sikuli-ide.sh from the path containing sikuli-IDE, I get :
  [info] locale: en_US

  But the IDE window doesn't come...

  - Sahil

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1071597/+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 #214146]: About Guide: spotlight doesn't work in rectangle?

2012-11-14 Thread Calvin
Question #214146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214146

Status: Solved = Open

Calvin is still having a problem:
It seems I met the same block road as Steffen (steffen-be).
I do not have the option Java project from existing sources (only java 
project and java project from existing ant buildfile).
How should i go with 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


[Sikuli-driver] [Bug 1078822] Re: 'How to get involved' link at bottom of download page 404s

2012-11-14 Thread RaiMan
** Changed in: sikuli
   Status: New = Fix Released

** Summary changed:

- 'How to get involved' link at bottom of download page 404s
+ 'How to get involved' link at bottom of download page  --- fixed

** Changed in: sikuli
 Assignee: (unassigned) = RaiMan (raimund-hocke)

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

Title:
  'How to get involved' link at bottom of download page  --- fixed

Status in Sikuli:
  Fix Released

Bug description:
  This is an issue with the Sikuli website.

  The 'How to get involved' link at the bottom of
  http://www.sikuli.org/download.html 404s.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078822/+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 #214146]: About Guide: spotlight doesn't work in rectangle?

2012-11-14 Thread RaiMan
Question #214146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214146

Status: Open = Answered

RaiMan proposed the following answer:
Ok, then we are talking about Eclipse:
- new Java project
- give it a name and click next
- in the source tab below you find Link additional sources
- in the dialog coming up you can select a source folder in the file system and 
give it a name for your Eclipse project view

-- 
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 #214200]: Class Paths

2012-11-14 Thread RaiMan
Question #214200 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214200

Status: Open = Answered

RaiMan proposed the following answer:
LOL, now I understand the burdensome way you found in the net.

Normal classpath settings does not work, as long as you use the Sikuli
internal script runner.

A workaround can be found here:
https://answers.launchpad.net/sikuli/+question/202408

You have to run your script from command line using Jython (either the 
standalone or the Sikuli-bundled one) as mentioned there.
In parallel you can develop and save your script in the IDE and you might even 
run it, to be sure to not have any syntax errors.
But in the current IDE you will always get the mentioned runtime error.

-- 
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 #214233]: not exists doesn't do anything

2012-11-14 Thread Nicole Demers
New question #214233 on Sikuli:
https://answers.launchpad.net/sikuli/+question/214233

I am using a patched version of Sikuli X 1.0rc Maltipoo on 32-bit Windows XP.

Here is the offending code:

i = 0
if(not exists(HEWLETTPACKA.png)):
click(1352827765773.png)
while (i  10):
type(Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
 + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN)
if(exists(HEWLETTPACKA-1.png)):
break
i = i + 1

doubleClick(HEWLETTPACKA-1.png)

Basically, I'm trying to check for the existence of an HP order in a list of 
orders that need to be filled.  If it doesn't exist, click the beginning of the 
list and scroll down until a new page of orders is on the screen and search 
again. If it appears on the screen, break out and double click the order to 
open it.

For some reason when the script is running the if not 
exists(HEWLETTPACKA.png)): is either evaluating to it's opposite or not being 
evaluated at all. But then when I get to the double click it can't find the HP 
order because it doesn't exist! The exact same code was working just fine 
yesterday, which is really weird.

I looked at the matching preview and fiddled with similarity but that didn't 
help. The preview says it's finding the matches it should be finding. I also 
tried saving the value returned from exists outside of the if statement and 
comparing it to None but that didn't work either.

I do notice that when I comment the line out, the HP image and following 
parenthesis and colon aren't greyed out. I tried retyping the line and taking a 
new screenshot but it didn't help the commenting or the failing code.

I put it in a try: Except FindFailed: statement and it seems that when I try to 
find HEWLETTPACKA.png it doesn't actually throw an exception or go into the 
code within the except statement. However, when I try to doubleClick the image 
after the except code block, it does throw the exception. When I run the code 
block from the except statement by itself it works great and scrolls until it 
finds an HP order with no issues.

Here's the offending try/except code:

i = 0
try:
find(HEWLETTPACKA.png)
except FindFailed:
click(1352827765773.png)
#... same as before...

doubleClick(HEWLETTPACKA-1.png)

Breakpoints in the sikuli IDE would make my life, guys. :) I have no idea 
what's going on here.

-- 
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 #214233]: not exists doesn't do anything

2012-11-14 Thread RaiMan
Question #214233 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214233

RaiMan posted a new comment:
make it a question to save the comments instead of setting as invalid

-- 
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 1078806] Re: not exists doesn't do anything

2012-11-14 Thread RaiMan
internally the OpenCV feature matchTemplate() is used.
The theoretical basics: 
http://docs.opencv.org/modules/imgproc/doc/object_detection.html#matchtemplate

... and some info on how Sikuli works when searching images:
https://answers.launchpad.net/sikuli/+question/213048

In general: the lower the minimum similarity requested for a search, the higher 
the probability for false positives.
The consequence for robust scripts:
- good screenshots (as little background as possible, concentrate on the key 
visual aspects)
- ask for high min similarity ( 0.9)
- restrict the search region as much as possible (which on top makes your 
scripts faster)

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

Title:
  not exists doesn't do anything

Status in Sikuli:
  Invalid

Bug description:
  I am using a patched version of Sikuli X 1.0rc Maltipoo on 32-bit
  Windows XP.

  Here is the offending code:

  i = 0
  if(not exists(HEWLETTPACKA.png)):
  click(1352827765773.png)
  while (i  10):
  type(Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN 
   + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN + Key.DOWN)
  if(exists(HEWLETTPACKA-1.png)):
  break
  i = i + 1

  doubleClick(HEWLETTPACKA-1.png)

  Basically, I'm trying to check for the existence of an HP order in a
  list of orders that need to be filled.  If it doesn't exist, click the
  beginning of the list and scroll down until a new page of orders is on
  the screen and search again. If it appears on the screen, break out
  and double click the order to open it.

  For some reason when the script is running the if not
  exists(HEWLETTPACKA.png)): is either evaluating to it's opposite or
  not being evaluated at all. But then when I get to the double click it
  can't find the HP order because it doesn't exist! The exact same code
  was working just fine yesterday, which is really weird.

  I looked at the matching preview and fiddled with similarity but that
  didn't help. The preview says it's finding the matches it should be
  finding. I also tried saving the value returned from exists outside of
  the if statement and comparing it to None but that didn't work either.

  I do notice that when I comment the line out, the HP image and
  following parenthesis and colon aren't greyed out. I tried retyping
  the line and taking a new screenshot but it didn't help the commenting
  or the failing code.

  I put it in a try: Except FindFailed: statement and it seems that when
  I try to find HEWLETTPACKA.png it doesn't actually throw an
  exception or go into the code within the except statement. However,
  when I try to doubleClick the image after the except code block, it
  does throw the exception. When I run the code block from the except
  statement by itself it works great and scrolls until it finds an HP
  order with no issues.

  Here's the offending try/except code:

  i = 0
  try:
  find(HEWLETTPACKA.png)
  except FindFailed:
  click(1352827765773.png)
  #... same as before...

  doubleClick(HEWLETTPACKA-1.png)

  Breakpoints in the sikuli IDE would make my life, guys. :) I have no
  idea what's going on here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1078806/+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 1071597] Re: Sikuli IDE window doesn't open in Ubuntu

2012-11-14 Thread RaiMan
@franzcai
With what Ubuntu did you test it?

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

Title:
  Sikuli IDE window doesn't open in Ubuntu

Status in Sikuli:
  In Progress

Bug description:
  Hi,
  I am working on Ubuntu 11.10 32-bit and the sikuli version is sikuli X 1.0rc3.
  I have dowloaded the bundle from sikuli.org.

  Sikuli is working fine but at times the following problem occurs :

  After I type sh sikuli-ide.sh from the path containing sikuli-IDE, I get :
  [info] locale: en_US

  But the IDE window doesn't come...

  - Sahil

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1071597/+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 #214146]: About Guide: spotlight doesn't work in rectangle?

2012-11-14 Thread Calvin
Question #214146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214146

Calvin posted a new comment:
Hmm, doesn't seem to work. Maybe i'll try out with netbeans.

-- 
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 #214146]: About Guide: spotlight doesn't work in rectangle?

2012-11-14 Thread RaiMan
Question #214146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214146

RaiMan requested more information:
what is the problem?

-- 
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 #214146]: About Guide: spotlight doesn't work in rectangle?

2012-11-14 Thread RaiMan
Question #214146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214146

RaiMan proposed the following answer:
just checked again, this works:
- make an empty java project
- delete the existing src folder from the project view
- go to project properties - java build path
- again the tab source
- button: Link source
- select the src folder in the guide sources and finish
- click ok in the source tab

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