Re: [Sikuli-driver] [Question #253716]: Sikuli generates useless PNG files while running...

2014-08-28 Thread RaiMan
Question #253716 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253716

Status: Open => Answered

RaiMan proposed the following answer:
This only happens, if you use the with construct (which indeed has some
quirks).

In your case the usage does not really make sense anyway:
- you are not saving any typing
- and you get an additional indent

this works as expected:

app = App("gnome-calculator")
app.open()
for i in xrange(int(100500)):
  wnd = app.window()
  if wnd is not None:
region = Region(wnd)
if region.exists("1409168557236.png", 0):
  break

Nevertheless thanks for point in out. I take it as a bug.

-- 
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 #253716]: Sikuli generates useless PNG files while running...

2014-08-28 Thread RaiMan
Question #253716 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253716

Linked to bug: #1362461
https://bugs.launchpad.net/bugs/1362461
"[1.0.1] Jython scripting: exists() in with block generates screenshotfiles 
--- workaround: do not use it ;-)"

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #253716]: Status of bug #1362461 changed to 'Fix Committed' in Sikuli

2014-08-28 Thread RaiMan
Bug #1362461 status changed in Sikuli:

New => Fix Committed

https://bugs.launchpad.net/sikuli/+bug/1362461
"[1.0.1] Jython scripting: exists() in with block generates screenshotfiles --- 
workaround: do not use it ;-)"

This bug is linked to #253716.
Sikuli generates useless PNG files while running...
https://answers.launchpad.net/sikuli/+question/253716

-- 
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 1361985] Re: [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

2014-08-28 Thread pradeep
Tried to run by installing your given suggestions but didn't work

Got freezed with alert saying "starting..pls wait". Waited for long time
but didn't start. I have attached the alert image

** Attachment added: "Screen Shot 2014-08-28 at 12.33.03 PM.png"
   
https://bugs.launchpad.net/sikuli/+bug/1361985/+attachment/4188792/+files/Screen%20Shot%202014-08-28%20at%2012.33.03%20PM.png

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

Title:
  [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

Status in Sikuli:
  Won't Fix

Bug description:
  I was not able to launch sikuli r930 on Yosemite OS (Mac)
  Version-10.10(14A329f)

  Steps:

  1. Launched sikuli IDE r930 on Yosemite 10.10 OS
  2. An alert popped up which asked to install legacy JAVA SE 6 runtime
  3. Installed it and tried to launch sikuli, again another error popped up 
saying that:

  Cannot launch JAVA application
  Uncaught exception in main method:
  java.lang.IllegalArgumentException: cannot add to
  layout: unknown constraint: LEFT


  Pleas help me out...

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1361985/+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 1361985] Re: [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

2014-08-28 Thread pradeep
Please help me out.. its important.  Any another possible suggestions to
try out?

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

Title:
  [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

Status in Sikuli:
  Won't Fix

Bug description:
  I was not able to launch sikuli r930 on Yosemite OS (Mac)
  Version-10.10(14A329f)

  Steps:

  1. Launched sikuli IDE r930 on Yosemite 10.10 OS
  2. An alert popped up which asked to install legacy JAVA SE 6 runtime
  3. Installed it and tried to launch sikuli, again another error popped up 
saying that:

  Cannot launch JAVA application
  Uncaught exception in main method:
  java.lang.IllegalArgumentException: cannot add to
  layout: unknown constraint: LEFT


  Pleas help me out...

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1361985/+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 1362461] Re: [1.0.1] Jython scripting: exists() in with block generates screenshotfiles --- workaround: do not use it ; -)

2014-08-28 Thread RaiMan
in this special case:
this works as expected:

app = App("gnome-calculator")
app.open()
for i in xrange(int(100500)):
  wnd = app.window()
  if wnd is not None:
region = Region(wnd)
if region.exists("1409168557236.png", 0):
  break

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

Title:
  [1.0.1] Jython scripting: exists() in with block generates
  screenshotfiles --- workaround: do not use it ;-)

Status in Sikuli:
  Fix Committed

Bug description:
  Hi all!

  I faced the following problem. During running Sikuli script it
  generates useless PNG files in the test directory. Looks like it makes
  screenshot every time method exists() fails. I am using stable 1.0.1.
  There is simple script to reproduce this behavior below. IDE feature
  to remove useless PNG helps, but not when I run tests in batch mode
  using our cmake/ctest routine... Is there any setting to disable this?

  app = App("gnome-calculator")
  app.open()
  for i in xrange(int(100500)):
wnd = app.window()
if wnd is not None:
  with Region(wnd) as region:
if region.exists("1409168557236.png", 0):
  break

  Best regards and thanks in advance,
  Alexander.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362461/+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 1362461] [NEW] [1.0.1] Jython scripting: exists() in with block generates screenshotfiles --- workaround: do not use it ; -)

2014-08-28 Thread RaiMan
Public bug reported:

Hi all!

I faced the following problem. During running Sikuli script it generates
useless PNG files in the test directory. Looks like it makes screenshot
every time method exists() fails. I am using stable 1.0.1. There is
simple script to reproduce this behavior below. IDE feature to remove
useless PNG helps, but not when I run tests in batch mode using our
cmake/ctest routine... Is there any setting to disable this?

app = App("gnome-calculator")
app.open()
for i in xrange(int(100500)):
  wnd = app.window()
  if wnd is not None:
with Region(wnd) as region:
  if region.exists("1409168557236.png", 0):
break

Best regards and thanks in advance,
Alexander.

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: Fix Committed

** Changed in: sikuli
   Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

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

** Changed in: sikuli
Milestone: None => 1.1.0

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

Title:
  [1.0.1] Jython scripting: exists() in with block generates
  screenshotfiles --- workaround: do not use it ;-)

Status in Sikuli:
  Fix Committed

Bug description:
  Hi all!

  I faced the following problem. During running Sikuli script it
  generates useless PNG files in the test directory. Looks like it makes
  screenshot every time method exists() fails. I am using stable 1.0.1.
  There is simple script to reproduce this behavior below. IDE feature
  to remove useless PNG helps, but not when I run tests in batch mode
  using our cmake/ctest routine... Is there any setting to disable this?

  app = App("gnome-calculator")
  app.open()
  for i in xrange(int(100500)):
wnd = app.window()
if wnd is not None:
  with Region(wnd) as region:
if region.exists("1409168557236.png", 0):
  break

  Best regards and thanks in advance,
  Alexander.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362461/+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 1362465] [NEW] "dragDrop" method doesn't work in jython

2014-08-28 Thread Xiaokunhou
Public bug reported:


I use jython to implement keywords for robot framework.
When I create drag drop feature, it does't work at all.
Here is my code.

def findDragDrop(self, srcRegion, destRegion, similar=0.7):
# still region are three types  screen app  part of app.
src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
self.log.passed("Image found!") 
 
Settings.DelayAfterDrag = 1
Settings.DelayBeforeDrop = 1
Settings.MoveMouseDelay = 3
dragDrop(src, dest)

I also tried mouseMove() method, still doesn't work. It seems that when
execute dragDrop, the mouse just cannot get focus, then the window is
not moved.

Can you give me some suggestions?
I am using the sikuli-java.jar package

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

Title:
  "dragDrop" method doesn't work in jython

Status in Sikuli:
  New

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 #253723]: How to Create a Repeatable Loop

2014-08-28 Thread RaiMan
Question #253723 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253723

Status: Open => Answered

RaiMan proposed the following answer:
while True: # loop forever
if exists(image, 0):
click(some_image)
wait(5)

this will look every 5 seconds and click if popup is there

Since this runs forever, it has to be stopped with the abort key or by
killing the app manually.

If there is something on the screen while running, that identifies your
main app, then this would stop automatically:

while True: # loop forever
if not exists(imageMustBeThere, 0):
break # end loop
if exists(image, 0):
click(some_image)
wait(5)

or thinking positive ;-)

while True: # loop forever
if exists(imageMustBeThere, 0):
if exists(image, 0):
click(some_image)
wait(5)

-- 
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 1361985] Re: [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

2014-08-28 Thread RaiMan
see bug 1362011

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

Title:
  [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

Status in Sikuli:
  Won't Fix

Bug description:
  I was not able to launch sikuli r930 on Yosemite OS (Mac)
  Version-10.10(14A329f)

  Steps:

  1. Launched sikuli IDE r930 on Yosemite 10.10 OS
  2. An alert popped up which asked to install legacy JAVA SE 6 runtime
  3. Installed it and tried to launch sikuli, again another error popped up 
saying that:

  Cannot launch JAVA application
  Uncaught exception in main method:
  java.lang.IllegalArgumentException: cannot add to
  layout: unknown constraint: LEFT


  Pleas help me out...

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1361985/+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 1362465] Re: "dragDrop" method doesn't work in jython

2014-08-28 Thread RaiMan
What system?
What Jython?
What RFW?

Have you tried the basic workflow in the Sikuli IDE?

** Changed in: sikuli
   Status: New => Opinion

** Summary changed:

- "dragDrop" method doesn't work in jython
+ [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread Xiaokunhou
Can you explain a little about RFW?

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread Xiaokunhou
Thanks for the quick reply.
I am using windows server 2008 R2 64bit machine.
Jython version is 2.5.3

I am using sikuli APIs. While the IDE works perfectly..

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread RaiMan
RFW = RobotFrameWork ;-)

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread RaiMan
... While the IDE works perfectly
might be ;-)
... but does the above mentioned def does what it should, when run it in the 
IDE?

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread Xiaokunhou
oh, i see.. I am still write keywords and do unit test for this method.
But when I call above method, the application doesn't move at all :(

I am using eclipse now, when I call the above method like this way..

act = sikuliKeywords()
act.findDragDrop("calTitle.png", "btnEqual.png", 0.8)

The Calculator.exe doesn't move.

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread Xiaokunhou
How the IDE implement the drayDrop? Maybe I can check the code to see
what's wrong on my side..

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1361985] Re: [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

2014-08-28 Thread RaiMan
the shot does not help.

What exactly did you try?

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

Title:
  [X1.0rc3] IDE does not launch in OSX 10.10 --- will never do

Status in Sikuli:
  Won't Fix

Bug description:
  I was not able to launch sikuli r930 on Yosemite OS (Mac)
  Version-10.10(14A329f)

  Steps:

  1. Launched sikuli IDE r930 on Yosemite 10.10 OS
  2. An alert popped up which asked to install legacy JAVA SE 6 runtime
  3. Installed it and tried to launch sikuli, again another error popped up 
saying that:

  Cannot launch JAVA application
  Uncaught exception in main method:
  java.lang.IllegalArgumentException: cannot add to
  layout: unknown constraint: LEFT


  Pleas help me out...

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1361985/+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 #253729]: cannot find sikuli-script.jar

2014-08-28 Thread gary
New question #253729 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253729

Hi, 

I am trying to get sikuli up and running on Eclipse.
I have downloaded sikuli with option4.
Plus I have installed jython and PyDev and have them working on Eclipse.

So my problem is now importing the sikuli module. 
But I cannot follow the instructions given in this article - 

http://doc.sikuli.org/faq/040-other-ide.html 

because I cannot find the file sikuli-script.jar.
Has the standard setup recently changed?

Thanks
Gary

-- 
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 #253709]: Stopping main program flow while a handler is active

2014-08-28 Thread Ned
Question #253709 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253709

Status: Answered => Solved

Ned confirmed that the question is solved:
Thanks Raiman! A simple solution that I was too muddled up to see.

-- 
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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread Xiaokunhou
Let me try to execute it from robot framework, maybe this is a
environment specific issue.

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

Title:
  [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 #253729]: cannot find sikuli-script.jar

2014-08-28 Thread RaiMan
Question #253729 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253729

Status: Open => Answered

RaiMan proposed the following answer:
this is what you need to know for 1.0.1:
https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming

the mentioned faq is only for RC3

-- 
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 #253729]: [1.0.1] Eclipse / PyDev / Jython: cannot find sikuli-script.jar

2014-08-28 Thread RaiMan
Question #253729 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253729

Summary changed to:
[1.0.1] Eclipse / PyDev / Jython: cannot find sikuli-script.jar

-- 
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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread RaiMan
I guess, your problem is the wait before drag, which cannot be
customized with dragDrop().

try this:
hover(source)
wait(0.5) # might not be needed
mouseDown(Button.LEFT)
wait(0.5) # experiment with this value
mouseMove(target)
wait(0.5) # experiment with this value
mouseUp()

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

Title:
  [1.0.1] Jython/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work

2014-08-28 Thread RaiMan
BTW: 
- dragDrop() is always the same, since finally it is implemented on the Java 
level.
- Settings.MoveMouseDelay = 3 should only be used for testing (to see something 
;-). usually not needed and takes time.


** Summary changed:

- [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
+ [1.0.1] Jython/RFW: dragDrop method doesn't work

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

Title:
  [1.0.1] Jython/RFW: dragDrop method doesn't work

Status in Sikuli:
  Opinion

Bug description:
  
  I use jython to implement keywords for robot framework.
  When I create drag drop feature, it does't work at all.
  Here is my code.

  def findDragDrop(self, srcRegion, destRegion, similar=0.7):
  # still region are three types  screen app  part of app.
  src = find(Pattern(common.cfgImageLibrary + "/" + 
srcRegion).similar(similar)) 
  dest = find(Pattern(common.cfgImageLibrary + "/" + 
destRegion).similar(similar))
  self.log.passed("Image found!") 
   
  Settings.DelayAfterDrag = 1
  Settings.DelayBeforeDrop = 1
  Settings.MoveMouseDelay = 3
  dragDrop(src, dest)

  I also tried mouseMove() method, still doesn't work. It seems that
  when execute dragDrop, the mouse just cannot get focus, then the
  window is not moved.

  Can you give me some suggestions?
  I am using the sikuli-java.jar package

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+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 #253731]: List of changes between 1.0.1 and 1.1.0 for sikuli-java

2014-08-28 Thread Pathiyil
New question #253731 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253731

Hi,

Is there a list of changes between version 1.0.1 and 1.1.0 of sikuli-java ? 
Also, any non-backward compatible features / APIs for those who have 
implemented code using 1.0.1 ?

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 #253729]: [1.0.1] Eclipse / PyDev / Jython: cannot find sikuli-script.jar

2014-08-28 Thread gary
Question #253729 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253729

gary posted a new comment:
I am new to eclipse and am struggling with the instructions you sent.
How do I go about completing the following step - have a reference to 
sikuli-java.jar in your project's Java class path

-- 
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 #253731]: List of changes between 1.0.1 and 1.1.0 for sikuli-java

2014-08-28 Thread RaiMan
Question #253731 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253731

Status: Open => Answered

RaiMan proposed the following answer:
--- list of changes:
a compound list of changes/new features will only be available with the final 
release of 1.1.0.
Until then you have to follow the commit comments on github and the comments on 
the nightly build page

--- non-backward compatible features / APIs :
not by intention ;-)
I try to be backward compatible 99%
So things working with 1.0.1 should work with 1.1.0 too especially with respect 
to the Java API level.
so any not mentioned backward compatibility problem simply is a bug.

With respect to the planned availability of sikulixapi.jar (successor of
sikuli-java.jar) on MavenCentral the internal package/class structure
and the poms are not yet stable.

-- 
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 #253731]: [1.1.0] List of changes between 1.0.1 and 1.1.0 for sikuli-java

2014-08-28 Thread RaiMan
Question #253731 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253731

Summary changed to:
[1.1.0] List of changes between 1.0.1 and 1.1.0 for sikuli-java

-- 
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 #253731]: [1.1.0] List of changes between 1.0.1 and 1.1.0 for sikuli-java

2014-08-28 Thread Pathiyil
Question #253731 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253731

Pathiyil posted a new comment:
Thank you. Do you have a planned ETA to make this available ?

Would be happy to test out 1.1.0-beta/RC jar once it becomes available.

-- 
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 #253729]: [1.0.1] Eclipse / PyDev / Jython: cannot find sikuli-script.jar

2014-08-28 Thread RaiMan
Question #253729 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253729

RaiMan proposed the following answer:
Uuups, basic Eclipse knowhow - so you should read some tutorials ;-)

project -> properties -> tab Java Build Path -> add External Jars

-- 
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 #253731]: [1.1.0] List of changes between 1.0.1 and 1.1.0 for sikuli-java

2014-08-28 Thread RaiMan
Question #253731 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253731

RaiMan proposed the following answer:
1.1.0-Beta4 is available:
sikulix.com

-- 
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 #253729]: [1.0.1] Eclipse / PyDev / Jython: cannot find sikuli-script.jar

2014-08-28 Thread RaiMan
Question #253729 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253729

RaiMan proposed the following answer:
ok, you have PyDev projects:

project -> properties -> tab PYTHONPATH -> external libraries

-- 
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 #253737]: Find

2014-08-28 Thread Natanael Morais
New question #253737 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253737

What is the difference between the function Exists and Find?

I was using in my code the function Exists and I tried to use Find, but  the 
image I was looking for the Sikuli didn't find.
I'm writing my code in Java with Netbeans.
Cheers.

-- 
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 #253729]: [1.0.1] Eclipse / PyDev / Jython: cannot find sikuli-script.jar

2014-08-28 Thread gary
Question #253729 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253729

gary posted a new comment:
I have followed all the instructions but now get this problem.

this is my code:
print "hello"
import org.sikuli.basics.SikuliXforJython
from sikuli import *
print "success"

but when I run it I get the following error:
*sys-package-mgr*: processing new jar, 'C:\SikuliX\sikuli-java.jar'
hello
Aug 28, 2014 1:19:18 PM java.util.prefs.WindowsPreferences 
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 
0x8002. Windows RegCreateKeyEx(...) returned error code 5.
[error] SikuliXforJython: Fatal error: Jython not found on classpath or not 
accessible - Sikuli might not work
Traceback (innermost last):
  File "C:\Users\GAJA\workspace\test one\src\test\test.py", line 8, in ?
ImportError: no module named sikuli

I don't know if this helps but when I downloaded sikuli from this page
http://www.sikuli.org/download.html
I made a folder on my C drive called SikuliX and saved the download to this 
folder,
I then chose option 4 and followed the instructions from 
https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming.

-- 
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 #253737]: Find

2014-08-28 Thread Eugene S
Question #253737 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253737

Status: Open => Answered

Eugene S proposed the following answer:
Hi,

When using "exists":
1. You can specify the wait time (in seconds)
2. None is returned, if nothing is found within the specified waiting time
3. Does exactly the same as Region.wait(), but no exception is raised in case 
of FindFailed

When using "find":
1. FindFailed exception is returned if nothing was found
2. If autoWaitTimeout is set to a non-zero value, find() just acts as a wait()


All that described in the doco, you can find here:
http://doc.sikuli.org/region.html#Region.exists
http://doc.sikuli.org/region.html#Region.find


Cheers,
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 #250392]: [1.0.1] OSX 10.10: IDE doesn't work using Java 6, 7, 8 --- fixed in 1.1.0

2014-08-28 Thread UNCCheezy
Question #250392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250392

UNCCheezy requested more information:
@raiman
Do you know when the first 1.1.0 (somewhat stable build) will be available?

-- 
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 #250392]: [1.0.1] OSX 10.10: IDE doesn't work using Java 6, 7, 8 --- fixed in 1.1.0

2014-08-28 Thread RaiMan
Question #250392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250392

RaiMan posted a new comment:
@shawny
The next step is to freeze the Beta4.
Since I currently still have a serious problem, I guess this will be on Monday.

Then I will work towards the final version 1.1.0 for about mid September
again with nightly builds.

-- 
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 #250392]: [1.0.1] OSX 10.10: IDE doesn't work using Java 6, 7, 8 --- fixed in 1.1.0

2014-08-28 Thread lacanadaguy
Question #250392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250392

lacanadaguy posted a new comment:
@raiman, Thanks.

Really missing my personal automation scripts since upgrading to 10.10.

-- 
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 #253737]: Find

2014-08-28 Thread Natanael Morais
Question #253737 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253737

Status: Answered => Open

Natanael Morais is still having a problem:
Thank you for the answer, that is what I was thinking.
But Is there a reason for the function Find didn't find a image that I'm 
looking for? Because the function Exists worked correctly with the same image.

-- 
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 #253748]: Region

2014-08-28 Thread Natanael Morais
New question #253748 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253748

Match window = new Match();
Location posicao;
 

//window is the inicial imagem 
posicao = window.getCenter(); 

//the position that I want to clikc 
   
posicao.x = posicao.x - calculo;

//creating a new region with the correct position
Region botao = window.setLocation(posicao);   
botao.hover();
botao.highlight(5);



In this code, when I use botao.highlight() the mark stays in the center of the 
image that I want (variable posicao) , but when I use botao.hover() the mouse 
pointer goes to a different place (the center of the old image - variable 
window).
What is wrong?

-- 
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 #253716]: Sikuli generates useless PNG files while running...

2014-08-28 Thread prokher
Question #253716 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253716

prokher posted a new comment:
Dear RaiMan,

thank you very much for the workaround, looks like it works (though I need to 
check on the main project).
Actually I added 'as region' to 'with' because context manager did not work 
without it. I mean functions like 'exists' or 'wait' could not find image in 
the application's window. Possibly the reason is that I have 2 screens 
connected. So I had to add 'as region' and use 'region.exists' and 
'region.wait' which worked.

Best regards,
Alexander.

-- 
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 #253753]: import scripts written in active python to sikuli

2014-08-28 Thread Anunaya
New question #253753 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253753

I want to import scripts written in active python to sikuli. Can you please let 
me know if it is possible. 
If possible how can I do that 

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #253723]: How to Create a Repeatable Loop

2014-08-28 Thread max
Question #253723 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253723

Status: Answered => Solved

max confirmed that the question is solved:
Thank you this works

while True: # loop forever
if exists(image, 0):
click(some_image)
wait(5)

I will just open task manager and find the java process to manually
abort when I want it to stop.

Thanks a bunch

-- 
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 585342] Re: [request] IDE shortcut: comment/uncomment a whole block

2014-08-28 Thread UNCCheezy
putting in a request.

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

Title:
  [request] IDE shortcut: comment/uncomment a whole block

Status in Sikuli:
  In Progress

Bug description:
  If you want to test some code actions, you often have to comment out some 
lines in your code.
  It would be very nice if there was a key kombination for commenting out a 
whole selected code block.

  I also use the Eclipse editor for programming in Java, an there is a
  feature like that.

  Maybe this feature would increase the usability of SIKULI much.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/585342/+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 585342] Re: [request] IDE shortcut: comment/uncomment a whole block

2014-08-28 Thread UNCCheezy
not going to happen for 1.1?

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

Title:
  [request] IDE shortcut: comment/uncomment a whole block

Status in Sikuli:
  In Progress

Bug description:
  If you want to test some code actions, you often have to comment out some 
lines in your code.
  It would be very nice if there was a key kombination for commenting out a 
whole selected code block.

  I also use the Eclipse editor for programming in Java, an there is a
  feature like that.

  Maybe this feature would increase the usability of SIKULI much.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/585342/+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 1362864] [NEW] Sikuli should have a single application, not two

2014-08-28 Thread UNCCheezy
Public bug reported:

This is a feature request, that there should only be one active app for
the sikuli ide.  Or swap he images.  I always alt tab to the sikuli
logo, and you have to go to the java icon.  Can it be one icon only?

version: 1.0.1
os: mac 10.9

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

Title:
  Sikuli should have a single application, not two

Status in Sikuli:
  New

Bug description:
  This is a feature request, that there should only be one active app
  for the sikuli ide.  Or swap he images.  I always alt tab to the
  sikuli logo, and you have to go to the java icon.  Can it be one icon
  only?

  version: 1.0.1
  os: mac 10.9

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362864/+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 1202368] Re: [1.0.1] IDE: Renaming an image in Pattern Settings should change all occurrences in the file

2014-08-28 Thread UNCCheezy
Does this mean it will be available in 1.1.0?

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

Title:
  [1.0.1] IDE: Renaming an image in Pattern Settings should change all
  occurrences in the file

Status in Sikuli:
  Fix Committed

Bug description:
  Sikuli 1.0.0 Win7-64

  Use 'Take screenshot' to add an image in the IDE
  Copy and paste the image so that it appears twice in the script
  Save the script
  Click one of the images to open Pattern Settings
  Rename the image by changing the Filename field and click OK
  Save and close the script and reopen it

  When the script is reopened, the copy still refers to the original
  image filename which no longer exists.

  Best proposed fix would be to change the default behavior to making a
  copy of the image when renaming and only deleting the original when
  there are no references to it (which happens when the IDE is closed
  anway I think?) and adding an option to automatically change all
  references in a script when an image is renamed.

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

2014-08-28 Thread Eugene S
Question #253737 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253737

Status: Open => Answered

Eugene S proposed the following answer:
As much as I am aware, both - exists() and find() have a default wait time of 3 
sec. So I would expect them to work similarly. 
Are you using any of the below settings?

setAutoWaitTimeout()
or
setThrowException()

-- 
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 1362896] [NEW] type(Key.HOME, KeyModifier.SHIFT + KeyModifier.CTRL) fails

2014-08-28 Thread Joe White
Public bug reported:

in 1.0.1 IDE, neither

 type(Key.LEFT, KeyModifier.SHIFT + KeyModifier.CTRL) 
or
 type(Key.HOME, KeyModifier.SHIFT + KeyModifier.CTRL)

behave like CTRL+SHIFT+LEFT or CTRL+SHIFT+HOME (all keys pressed
together) which select text to the left of the cursor in FF, IE, Chrome,
Opera and Safari.  Shouldn't these commands work?  I can do these
manually, but in a script they do not work the same.

thanks
Joe

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

Title:
  type(Key.HOME, KeyModifier.SHIFT + KeyModifier.CTRL) fails

Status in Sikuli:
  New

Bug description:
  in 1.0.1 IDE, neither

   type(Key.LEFT, KeyModifier.SHIFT + KeyModifier.CTRL) 
  or
   type(Key.HOME, KeyModifier.SHIFT + KeyModifier.CTRL)

  behave like CTRL+SHIFT+LEFT or CTRL+SHIFT+HOME (all keys pressed
  together) which select text to the left of the cursor in FF, IE,
  Chrome, Opera and Safari.  Shouldn't these commands work?  I can do
  these manually, but in a script they do not work the same.

  thanks
  Joe

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362896/+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 #253753]: import scripts written in active python to sikuli

2014-08-28 Thread RaiMan
Question #253753 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253753

Status: Open => Answered

RaiMan proposed the following answer:
Since Sikuli works with Jython, the Java based Python interpreter
(language levels: 1.0.1: 2.5 and 1.1.0: 2.7), it is possible to import
scripts written in Python language (respective language level) as long
as these scripts do not contain/need any C-based stuff or modules, that
are not available in the Jython environment.

conclusion: it depends on the features of the ActivePython package, that
you are using in your scripts, wether your script will work in Jython
environment. You either have to try out, or evaluate, wether the used
ActivePython feature depends on C-based stuff.

-- 
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 1362896] Re: type(Key.HOME, KeyModifier.SHIFT + KeyModifier.CTRL) fails

2014-08-28 Thread RaiMan
** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

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

** Changed in: sikuli
Milestone: None => 1.2.0

** Summary changed:

- type(Key.HOME, KeyModifier.SHIFT + KeyModifier.CTRL) fails
+ [1.0.1] type(Key.HOME, Key.SHIFT + Key.CTRL) fails in browsers

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

Title:
  [1.0.1] type(Key.HOME, Key.SHIFT + Key.CTRL) fails in browsers

Status in Sikuli:
  In Progress

Bug description:
  in 1.0.1 IDE, neither

   type(Key.LEFT, KeyModifier.SHIFT + KeyModifier.CTRL) 
  or
   type(Key.HOME, KeyModifier.SHIFT + KeyModifier.CTRL)

  behave like CTRL+SHIFT+LEFT or CTRL+SHIFT+HOME (all keys pressed
  together) which select text to the left of the cursor in FF, IE,
  Chrome, Opera and Safari.  Shouldn't these commands work?  I can do
  these manually, but in a script they do not work the same.

  thanks
  Joe

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