[Sikuli-driver] [Bug 1189990] Re: Windows 8: IDE quick png screenshot does not work

2013-06-12 Thread RaiMan
*** This bug is a duplicate of bug 1183017 ***
https://bugs.launchpad.net/bugs/1183017

Look bug 1183017

** Tags removed: png windows8
** Tags added: idestartup

** This bug has been marked a duplicate of bug 1183017
   [1.0 tempFix] IDE: captured images might be lost in UNTITLED tab

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

Title:
  Windows 8: IDE quick png screenshot does not work

Status in Sikuli:
  New

Bug description:
  In Windows 8, the left pain quick Actions do not work properly.

  Steps to replicate:

  1. Open IDE in Windows 8

  2. Click any of the actions in the left pane, click() for instance
  (this issue occurs for many, if not all these actions)

  3. Capture the screenshot. Capture thumbnail shows in the main script
  window pane properly.

  4. Save .sikuli, close file.

  5. Reopen file.

  6. Result: In main script window, thumbnails are replaced with png filenames 
like:
  find(1370971145124.png)

  Windows explorer of the save directory shows that no pngs were saved. When 
sikuli script is run, this error message results:
  [error] 1370971145124.png looks like a file, but not on disk. Assume it's 
text.
  [error] Region.find(text): text search is currently switched off
  [error] script [ test2 ] stopped with error in line 1
  [error] FindFailed ( Text search currently switched off )

  
  Environment Info
  Sikuli IDE 1.0.0
  Windows 8 Enterprise, 64 bit.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1189990/+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 #230612]: .skl file is not working

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

RaiMan proposed the following answer:
The error image is not complete.

You say, you get the same error, when using the suggestion to run the
.skl using Sikuli-IDE.bat.

You get some Java exception at startup. The error message and stacktrace
is displayed in a popup, that does not show all lines and is not
scrollable.

To get the complete information, you have tell the IDE, to print
everything to the command line window.

This is how you tell it:
- open a copy of Sikuli-IDE.bat in an editor 
- on the line, that calls java and has the -X, -D, -jar options add the 
following option (before the -jar option)
   -Dsikuli.console=false
- take care, that this modified Sikuli-IDE.bat (use a different name ;-) is 
available in the Sikuli X program folder 
- use it to run your .skl the same way you did with the original SIKULI-IDE.bat

This should print the complete error/stack trace information in the command 
line window.
Pls. make it somehow available in the net for inspection.

-- 
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 #230612]: .skl file is not working

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

Status: Open = Answered

RaiMan proposed the following answer:
The error image is not complete.

You say, you get the same error, when using the suggestion to run the
.skl using Sikuli-IDE.bat.

You get some Java exception at startup. The error message and stacktrace
is displayed in a popup, that does not show all lines and is not
scrollable.

To get the complete information, you have tell the IDE, to print
everything to the command line window.

This is how you tell it:
- open a copy of Sikuli-IDE.bat in an editor 
- on the line, that calls java and has the -X, -D, -jar options add the 
following option (before the -jar option)
   -Dsikuli.console=false
- take care, that this modified Sikuli-IDE.bat (use a different name ;-) is 
available in the Sikuli X program folder 
- use it to run your .skl the same way you did with the original SIKULI-IDE.bat

This should print the complete error/stack trace information in the command 
line window.
Pls. make it somehow available in the net for inspection.

-- 
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 1188186] Re: [1.0] IDE: Importing doesn't work when imported file changes: Requires Sikuli restart

2013-06-12 Thread Aki Sivula
workaround seems to work, thanks.

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

Title:
  [1.0] IDE: Importing doesn't work when imported file changes: Requires
  Sikuli restart

Status in Sikuli:
  Confirmed

Bug description:
  *** possible workaround -
  use 
  import functions
  reload(functions)

  ... but this only works if the module is fully reloadable (means: does not 
contain code, that should only run once)
  --

  Sikuli cannot import changes from another sikuli project to main
  sikuli project without restarting Sikuli.

  Let say we have main.sikuli and some functions on separate sikuli
  project (let say functions.sikuli).  Importing works fine but doesn't
  work when doing changes on the imported Functions.sikuli. Both
  projects are open simultaneously and I do quite often changes to
  functions when developing because on test automation chains can be
  very long and reusable code is needed.

  This is very annoying to shut down Sikuli always when changing other
  project and then restarting it. It causes sometimes really strange
  errors if forgot to restart...

  Basically this happens always for me. Below is import part of the main.sikuli.
  # coding: utf-8
  from sikuli import *
  import os
  import Functions

  OS: Windows 7 SP1 64 bit
  Sikuli v1.0.0 32bit on 64bit platform because Java is forced 32bit

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1188186/+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 1190150] [NEW] Sikuli should have possibility to see location of file

2013-06-12 Thread Aki Sivula
Public bug reported:

Found out problem when using same name for Sikuli file but both are on
separate folders. When Sikuli restarts it opens previously opened files
automatically. Problem is that you cannot know where from the file was
loaded if you don't remember it or check it separately.

Example of locations:
1. C:\FirstFolder\SikuliTest
2. C:\SecondFolder\SikuliTest

Request is to add location of file to title bar or some other place as
it helps to keep track of place where file is saved or loaded.

Sikuli version: Sikuli 1.0.0 32bit
Operating system: Windows 7 64bit + SP1

** Affects: sikuli
 Importance: Undecided
 Status: New

** Description changed:

  Found out problem when using same name for Sikuli file but both are on
  separate folders. When Sikuli restarts it opens previously opened files
  automatically. Problem is that you cannot know where from the file was
  loaded if you don't remember it or check it separately.
  
- 1.  C:\FirstFolder\SikuliTest
- 2. C:\SecondFolder\SikuliTet
+ Example of locations:
+ 1. C:\FirstFolder\SikuliTest
+ 2. C:\SecondFolder\SikuliTest
  
  Request is to add location of file to title bar or some other place as
  it helps to keep track of place where file is saved or loaded.
  
  Sikuli version: Sikuli 1.0.0 32bit
  Operating system: Windows 7 64bit + SP1

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

Title:
  Sikuli should have possibility to see location of file

Status in Sikuli:
  New

Bug description:
  Found out problem when using same name for Sikuli file but both are on
  separate folders. When Sikuli restarts it opens previously opened
  files automatically. Problem is that you cannot know where from the
  file was loaded if you don't remember it or check it separately.

  Example of locations:
  1. C:\FirstFolder\SikuliTest
  2. C:\SecondFolder\SikuliTest

  Request is to add location of file to title bar or some other place as
  it helps to keep track of place where file is saved or loaded.

  Sikuli version: Sikuli 1.0.0 32bit
  Operating system: Windows 7 64bit + SP1

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1190150/+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 #227960]: How to make sikuli detect motions within a specific region?

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

Aravind requested more information:
Hi Raiman,

Sorry to reopen this thread but I have a small doubt regarding the 
r.isChanged in Comment#3.
The same might have turned out to be really helpful for report generation if 
that r.isChanged worked fine.
Now while running the script, it says
AttributeError: 'Region' object has no attribute 'isChanged'

Here goes the code snippet which I've tried based on your logic:

bigScreenReg = Region(278,155,718,397)
bigScreenReg.highlight(3)
print Checking bigScreen Video Region
r = bigScreenReg
r.onChange(100, changed)
r.observe(5,background=False)
Settings.isChanged = False
for i in range(5):
   if r.isChanged:
print Something changed
Settings.isChanged = False
   else:
print Nothing changed 
r.stopObserver()

And the following is the handler:

def changed(event):
print something changed in , event.region
for ch in event.changes:
ch.highlight() # highlight all changes
sleep(1)
for ch in event.changes:
ch.highlight() # turn off the highlights
Settings.isChanged = True

Or is there any other work around to get the 'Video stopped streaming' message 
in the report by sticking on with the onChange event handler itself?
 
Thanks a lot Raiman.

-- 
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 #230529]: Region subclass inheritance loop

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

Status: Open = Answered

RaiMan proposed the following answer:
I made some tests even with plain Jython:
There seem to be some problems with using super(), like it should be used with 
Python versions  3.0 (the way you use it).

I did not get simple basic inheritance running with overwritten methods (I did 
not any Sikuli features). 
The problem only arises when overwriting methods.

So if you want to overwrite Region methods, this is how it works:

class Sub(Region):
n = 0
def __init__(self, reg):
print Sub:init
Region.__init__(self, reg)
print Sub:, self

def find(self, ps):
print Sub:find, ps   
return Region.find(self, ps)

r = Region(0,0,300,300)
r.highlight(2)
y = Sub(r)
print y.find(e4.png) # my test case ;-)

This fulfills all your aspects the same way as super() would do and is
acceptable, since your sub class is specifically written to inherit from
Sikuli's class Region.

super() is only really of value, if you want to write a class template,
that might inherit from different super classes.

-- 
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 #230529]: Jython: subclassing Region, overwriting Region methods and using super(): crashes with stack overflow caused by inheritance loop

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

Summary changed to:
Jython: subclassing Region, overwriting Region methods and using super(): 
crashes with stack overflow caused by inheritance loop

-- 
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 #230529]: Status of bug #1190167 changed to 'Confirmed' in Sikuli

2013-06-12 Thread RaiMan
Bug #1190167 status changed in Sikuli:

New = Confirmed

https://bugs.launchpad.net/sikuli/+bug/1190167
Jython: subclassing Region, overwriting Region methods and using super(): 
crashes with stack overflow caused by inheritance loop

This bug is linked to #230529.
Jython: subclassing Region, overwriting Region methods and using super(): 
crashes with stack overflow caused by inheritance loop
https://answers.launchpad.net/sikuli/+question/230529

-- 
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 #230529]: Jython: subclassing Region, overwriting Region methods and using super(): crashes with stack overflow caused by inheritance loop

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

Status: Answered = Solved

RaiMan changed the question status:
This is a bug with a possible workaround.

-- 
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 1190167] Re: Jython: subclassing Region, overwriting Region methods and using super(): crashes with stack overflow caused by inheritance loop --- workaround

2013-06-12 Thread RaiMan
There seem to be some problems in Jython 2.5 with using super(), like it
should be used with Python versions  3.0.

I did not get even simple basic inheritance running with overwritten methods (I 
did not use any Sikuli features).
The problem only arises when overwriting methods.

So if you want to overwrite methods in sub classes, this is how it works
(this example is for Sikuli's class Region):

class Sub(Region):
def __init__(self, reg):
Region.__init__(self, reg)

def find(self, ps):
return Region.find(self, ps)

r = Region(0,0,300,300)
y = Sub(r)
print y.find(e4.png) # my test case ;-)

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

Title:
  Jython: subclassing Region, overwriting Region methods and using
  super(): crashes with stack overflow caused by inheritance loop ---
  workaround

Status in Sikuli:
  Confirmed

Bug description:
  *** workaround: see comment #1

  ---

  I'm trying to make a subclass of Region. Here's the relevant code:

  class MyRegion(Region):
  def __init__(self, region, regionName = noNameDefined):
  super(MyRegion, self).__init__(region)
  self.name = regionName

  (...)

  def find(self, ps):
  popup(about to find something)
  return super(MyRegion, self).find(ps)
  popup(found something)
  def dupeFind(self, ps):
  popup(about to find something in dupe)
  return super(MyRegion, self).find(ps)
  popup(found something in dupe)

  When I call my dupeFind method, I expect it to pass the call on to the
  superclass and return a match. What happens instead is that execution
  goes to the find method above it, which then calls itself indefinitely
  until I get a RuntimeError ( maximum recursion depth exceeded )
  since the recursion has busted the stack.

  What's going wrong?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1190167/+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 #230148]: Pass command line argument with Sikuli Standard Commandline Option characters

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

Summary changed to:
Pass command line argument with Sikuli Standard Commandline Option characters

-- 
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 #230148]: [?1.0?] Pass command line argument with Sikuli Standard Commandline Option characters

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

Status: Open = Solved

RaiMan changed the question status:
This is a bug (I created one) and there is no workaround currently.

-- 
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 #230148]: [?1.0?] Pass command line argument with Sikuli Standard Commandline Option characters

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

Linked to bug: #1190176
https://bugs.launchpad.net/bugs/1190176
[1.0] command line arguments with Sikuli Standard Commandline Option 
characters (-r, -s, -t, ...) are ignored or give errors

-- 
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 #230148]: Status of bug #1190176 changed to 'Fix Committed' in Sikuli

2013-06-12 Thread RaiMan
Bug #1190176 status changed in Sikuli:

New = Fix Committed

https://bugs.launchpad.net/sikuli/+bug/1190176
[1.0] command line arguments with Sikuli Standard Commandline Option 
characters (-r, -s, -t, ...) are ignored or give errors

This bug is linked to #230148.
[?1.0?] Pass command line argument with Sikuli Standard Commandline Option 
characters
https://answers.launchpad.net/sikuli/+question/230148

-- 
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 #230597]: Issues opening Sikuli files on Mac

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

RaiMan requested more information:
what Java version are you running?

did you have Sikuli X-1.0rc3 running before?

-- 
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 1190176] [NEW] [1.0] command line arguments with Sikuli Standard Commandline Option characters (-r, -s, -t, ...) are ignored or give errors

2013-06-12 Thread RaiMan
Public bug reported:

Hello,

I'm passing command line argument(s) with sys.argv[1:] and for most of
them it works. There were 3-4 args which when used immediately
failed/aborted the Sikuli run, without any error. On analyzing, I
observed that all these arguments are starting with either of -r,
-s or -t.  There appear a conflict with the Sikuli standard
command line arguments (-r, -s, -t) and those I used, although I'm using
a string (e.g. -report, -test) rather than a single  character.

The question is, how to pass such arguments that start with standard
command line arguments (-r, -s. -t)?

Thanks.

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

Title:
  [1.0] command line arguments with Sikuli Standard Commandline Option
  characters (-r, -s, -t, ...) are ignored or give errors

Status in Sikuli:
  Fix Committed

Bug description:
  Hello,

  I'm passing command line argument(s) with sys.argv[1:] and for most of
  them it works. There were 3-4 args which when used immediately
  failed/aborted the Sikuli run, without any error. On analyzing, I
  observed that all these arguments are starting with either of
  -r, -s or -t.  There appear a conflict with the
  Sikuli standard command line arguments (-r, -s, -t) and those I used,
  although I'm using a string (e.g. -report, -test) rather than a
  single  character.

  The question is, how to pass such arguments that start with standard
  command line arguments (-r, -s. -t)?

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1190176/+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 #230597]: Issues opening Sikuli files on Mac

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

Status: Open = Needs information

RaiMan requested more information:
what Java version are you running?

did you have Sikuli X-1.0rc3 running before?

-- 
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 #230597]: [1.0] Issues opening Sikuli files on Mac

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

Assignee: None = RaiMan

Summary changed to:
[1.0] Issues opening Sikuli files on Mac

-- 
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 #227960]: How to make sikuli detect motions within a specific region?

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

RaiMan proposed the following answer:
Uuups, I did some crap in the above mentioned code - sorry.

this should do it:

Here goes the code snippet which I've tried based on your logic:
(modified ;-)

bigScreenReg = Region(278,155,718,397)
bigScreenReg.highlight(3)
print Checking bigScreen Video Region
r = bigScreenReg
r.onChange(100, changed)
Settings.isChanged = False

r.observe(5) # observing for 5 seconds (script pauses here)

if Settings.isChanged: # check wether the handler was called (because there 
where changes)
print there where changes
else:
print there haven't  been any changes

And the following is the handler:

def changed(event):
print something changed in , event.region
for ch in event.changes:
ch.highlight() # highlight all changes
sleep(1)
for ch in event.changes:
ch.highlight() # turn off the highlights
Settings.isChanged = True
event.region.stopObserver()


--- comment
You are using the foreground observe in this case, the you should stop the 
observation in the handler.

hope it helps

-- 
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 #230599]: How to import Sikuli in Jython?

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

Status: Open = Answered

Roman Podolyan proposed the following answer:
Please check thread

https://answers.launchpad.net/sikuli/+question/141302
Sikuli X: Want to use Jython 2.5.2 with sikuli-script.jar 

also you may want to look into other answered Jython questions: 
https://answers.launchpad.net/sikuli/+questions?field.search_text=Jythonfield.sort=RELEVANCYfield.sort-empty-marker=1field.actions.search=Searchfield.language=enfield.language=rufield.language-empty-marker=1field.status=OPENfield.status=NEEDSINFOfield.status=ANSWEREDfield.status=SOLVEDfield.status-empty-marker=1

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

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


Re: [Sikuli-driver] [Question #230599]: How to import Sikuli in Jython?

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

Roman Podolyan posted a new comment:
It seems that you don't have env variables set up properly. When I ran
Sikuli with Jython, I used Jybot.bat, modified with env variables
settings :

=
@echo off

set sikuli_jar=C:\Program Files (x86)\Sikuli X\sikuli-script.jar

set CLASSPATH=%sikuli_jar%
set JYTHONPATH=%sikuli_jar%/Lib

jybot --pythonpath=. ^
  --outputdir=results ^
  --loglevel=TRACE ^
  %*
=

-- 
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 #230612]: .skl file is not working

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

PRAVEEN KUMAR posted a new comment:
@RaiMan The below was the first 22 line :-

Runtime Error when running 
C:\DOCUME~1\t6-test\LOCALS~1\Temp\tmp-664999291.sikuli\test.sikuli
Traceback (most recent call last):
File string,line 1,in module
File C:\Program Files\Sikuli 
X\sikuli-script.jar\Lib\sikuli\_init_.py,line 3, in module 
File C:\Program Files\Sikuli 
X\sikuli-script.jar\Lib\sikuli\sikuli.py, line 26, in module
java.lang.UnsatisfiedLinkError:C:\Program Files\Sikuli 
X\libs\Win32Util.dll:Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
at org.sikuli.script.Win32Util.clinit(Win32Util.java:19)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.sikuli.script.Env.getOSUtil(Env.java:91)
at org.sikuli.script.App.clinit(App.java:9)
at java.lang.class.forName0(Native Method)
at java.lang.class.forName(Unknown Source)
at org.python.core.Py.loadAndInitClass(Py.java:895)
at org.python.core.Py.findClassInternal(Py.java:830)
at org.python.core.Py.findClassEx(Py.java:881)


I have update the first 22 lines. I tried your option, but rather than 
appearing on cmd, a message box poped up. This time I was able to move the 
message box. I couldn't copy it but I've typed it line by line.

-- 
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 #230599]: How to import Sikuli in Jython?

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

RaiMan proposed the following answer:
Based on the mentioned configuration I suppose you are using Sikuli-API
1.0.0

Roman's suggestion should work if you want to use jython from command
line (besides the fact, that you have to have a ref to Sikuli's libs
folder in system path at runtime)

If you want to setup a project in Netbeans 7.3 with the Python plugin,
you have to first add a ref to sikuli-script.jar TO THE END of the class
path of your used Jython config (project props - Python tab - manage
... button)

Second you need a ref to .../sikuli-script.jar/Lib in your sys.path at
runtime.

1. option (in the script):
import sys
lib = ... path-to-your... /sikuli-script.jar/Lib
sys.path.append(lib)
from sikuli import *
popup(hallo)

2. option (copy folder .../sikuli-script.jar/Lib/sikuli to Jython's 
Lib/site-packages)
for this you have to unjar sikuli-script.jar, to get to the mentioned folder
since site-packages is in the standard sys.path, this should work:
from sikuli import *
popup(hallo)

3. option (add ... path-to-your... /sikuli-script.jar/Lib to the Netbeans 
property file)
Since it is still not possible to do this in the properties dialog (not 
possible to step inside a jar), you can do this trick:
- add ... path-to-your... /sikuli-script.jar TO THE END of the Jython's config 
PythonPath
- close Netbeans
- edit Netbeans config file and add /Lib to the existing line
- restart Netbeans and check the properties

again this should work then:
from sikuli import *
popup(hallo)

BE AWARE: in all cases you need the ref to Sikuli's libs folder in the
system path at runtime.

-- 
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 #230599]: How to import Sikuli in Jython?

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

RaiMan proposed the following answer:
LOL, just realized, that I already outlined the solution steps here:
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 #230612]: .skl file is not working

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

RaiMan proposed the following answer:
Uuups this is really an easy one ;-)

java.lang.UnsatisfiedLinkError:C:\Program Files\Sikuli
X\libs\Win32Util.dll:Can't find dependent libraries

This is really a problem known since the beginning of the Sikuli world:
look faq 2005

-- 
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 #230619]: Sikuli unable to operate in command line eclipse.

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

So, I have configured Eclipse and Selenium Webdriver for my automation in Java. 
But for flast contents I have planned to use Sikuli with screenshots. so I have 
configured Webdriver and Sikuli JARs in Eclipse .  It works perfect when I 
execute the java code with the play button or (Run) in eclipse GUI.  The Sikuli 
is able to click on button, type etc. 

Later I moved and configured Apache Ant to execute this code in command line. I 
wrote Build.xml and also included  sikuli-script.jar in classpath in build.xml 
file.  The xml file compiles and also Runs,  But when the flash part comes, 
where the sikuli code begins , It is unable to work and does nothing, the 
execution stops throwing below error in command prompt.

 [java] [error] org.sikuli.script.FileManager.loadLibrary: Native library co
uld not be loaded: VisionProxy
 [java] [error] Since native library was found, it might be a problem with n
eeded dependent libraries
 [java] java.lang.UnsatisfiedLinkError: G:\Documents and Settings\Administra
tor\eworkspace\Sample\SikuliX\libs\VisionProxy.dll: Can't find dependent librari
es
 [java] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 [java] at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
 [java] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
 [java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
 [java] at java.lang.Runtime.load0(Runtime.java:792)
 [java] at java.lang.System.load(System.java:1059)
 [java] at org.sikuli.script.FileManager.loadLibrary(Unknown Source)
 [java] at org.sikuli.script.Finder.clinit(Unknown Source)
 [java] at org.sikuli.script.Region.doFind(Unknown Source)
 [java] at org.sikuli.script.Region.access$100(Unknown Source)
 [java] at org.sikuli.script.Region$RepeatableFind.run(Unknown Source)
 [java] at org.sikuli.script.Region$Repeatable.repeat(Unknown Source)
 [java] at org.sikuli.script.Region.wait(Unknown Source)
 [java] at org.sikuli.script.Region.find(Unknown Source)
 [java] at org.sikuli.script.Region.getLocationFromTarget(Unknown Source
)
 [java] at org.sikuli.script.Region.click(Unknown Source)
 [java] at lib_files.Login.Add(Unknown Source)
 [java] at lib_files.Login.Test(Unknown Source)
 [java] at lib_files.Open.main(Unknown Source)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:57)
 [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
 [java] at java.lang.reflect.Method.invoke(Method.java:601)
 [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:217)
 [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:152)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
 [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)

 [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)

 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
 [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:292)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:57)
 [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
 [java] at java.lang.reflect.Method.invoke(Method.java:601)
 [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
 [java] at org.apache.tools.ant.Task.perform(Task.java:348)
 [java] at org.apache.tools.ant.Target.execute(Target.java:435)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:456)
 [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1393)
 [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)

 [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
 [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1248
)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:851)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:235)
 [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
 [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
 [java] java.lang.ExceptionInInitializerError
 [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:194)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
 [java] at 

Re: [Sikuli-driver] [Question #230619]: Sikuli unable to operate in command line eclipse.

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

Description changed to:
So, I have configured Eclipse and Selenium Webdriver for my automation
in Java. But for flast contents I have planned to use Sikuli with
screenshots. so I have configured Webdriver and Sikuli JARs in Eclipse .
It works perfect when I execute the java code with the play button or
(Run) in eclipse GUI.  The Sikuli is able to click on button, type etc.

Later I moved and configured Apache Ant to execute this code in command
line. I wrote Build.xml and also included  sikuli-script.jar in
classpath in build.xml file.  The xml file compiles and also Runs,  But
when the flash part comes, where the sikuli code begins , It is unable
to work and does nothing, the execution stops throwing below error in
command prompt.

 [java] [error] org.sikuli.script.FileManager.loadLibrary: Native library co
uld not be loaded: VisionProxy
 [java] [error] Since native library was found, it might be a problem with n
eeded dependent libraries
 [java] java.lang.UnsatisfiedLinkError: G:\Documents and Settings\Administra
tor\eworkspace\Sample\SikuliX\libs\VisionProxy.dll: Can't find dependent librari
es
 more stack trace 


Can someone help me on this ?  I remember I got the same error 
 java.lang.UnsatisfiedLinkError: G:\Documents and Settings\Administra
tor\eworkspace\Sample\SikuliX\libs\VisionProxy.dll: Can't find dependent librari
es

when configuring SIkuli in Eclipse GUI and  I resolved it by getting the
64-bit version of JRE and Sikuli. Now how can it come back ? Please
help, I'm using  windows server 2003 64-bit (x86)

Thank 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 #230619]: [1.0] Works in Eclipse, but not from commandline using Ant build file to run it

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

Assignee: None = RaiMan

Summary changed to:
[1.0] Works in Eclipse, but not from commandline using Ant build file to run it

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

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


Re: [Sikuli-driver] [Question #230619]: Sikuli unable to operate in command line eclipse.

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

Status: Open = Needs information

RaiMan requested more information:
What java version do you use when running Ant?
pls. be as accuarate as possible.

What is your system path when running Ant?
What is your system path in the moment, the jvm is started in the build.xml to 
run your artifact?

-- 
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 #227960]: How to make sikuli detect motions within a specific region?

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

Aravind posted a new comment:
Thanks very much Raiman...That solved my 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 #230237]: [1.0 ]Sometimes wait hangs in sikuli 1.0

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

dinev gave more information on the question:
I have new doubt now. In the console log i see the Type and Click
written. Is there any possibility that click fail. Because the condition
I saw today make me believe click was not performed. But it may be the
AUT bug...

Another thing. The click is performed on button that changes its color
on mouse over

-- 
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 #230619]: [1.0] Works in Eclipse, but not from commandline using Ant build file to run it

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

Status: Needs information = Open

srijith gave more information on the question:
This is my Java version output 
java version 1.7.0_13
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

I execute the ant command in my project work space. 
ie run the ant command here
G:\Documents and Settings\Administrator\eworkspace\Sample
where Sample in my project name.
Here is my system path for ant and sikuli JAR file
G:\Program Files (x86)\apache-ant-1.9.1\bin;G:\eclipse\sikuli-script.jar;

Here is my build.xml file
?xml version=1.0 encoding=UTF-8?

project default=run name=DMM Automation -srijith
path id=classpath 
pathelement location=G:\eclipse\selenium-2.33.0\selenium-java-2.33.0.jar/ 
pathelement location=G:\eclipse\selenium-server-standalone-2.33.0.jar/
pathelement 
location=G:\eclipse\selenium-2.33.0\selenium-java-2.33.0-srcs.jar/ 
pathelement location=G:\eclipse\selenium-2.33.0\libs\*.jar/
pathelement location=G:\eclipse\sikuli-script.jar/ 
pathelement location=G:\Program Files (x86)\SikuliX\*.jar/
/path

target name=run depends=compile
java classname =lib_files.Open classpathref=classpath

classpath path=staging/

/java
/target
target name=compile
javac includeantruntime=false srcdir=./src destdir=staging 
classpathref=classpath/
/target
/project

Not sure if these are the information you are looking for

-- 
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 #230597]: [1.0] Issues opening Sikuli files on Mac

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

Status: Needs information = Open

king123 gave more information on the question:
Java Version 7, Update 21 (build 1.7.0_21-b12)

I did not have Sikuli X-1.0rc3 running beofre.

I also have Sikuli-IDE 1.0.0 installed. I was trying to use that version
previously, but had the same issue of not being able to save and re-open
Sikuli files.

-- 
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 #230597]: [1.0] Issues opening Sikuli files on Mac

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

Status: Open = Needs information

RaiMan requested more information:
Stepping back to the Beta does not make sense.

You should use Sikuli-IDE 1.0.0

pls. start the IDE from commandline using:

sikuli-script d:5 -c

- try to open a script
- close the IDE

and paste the output here, that you get on command line.

-- 
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 #230619]: [1.0] Works in Eclipse, but not from commandline using Ant build file to run it

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

Status: Open = Answered

RaiMan proposed the following answer:
-- 1. system path: G:\Program Files 
(x86)\apache-ant-1.9.1\bin;G:\eclipse\sikuli-script.jar;
to have G:\eclipse\sikuli-script.jar in the system path does not make any 
sense. No executables to load from there.

--2. why is sikuli-script.jar in G:\eclipse\ ?
You should work with references and not with copies! In your eclipse project 
properties you can set up a ref to G:\Program Files 
(x86)\SikuliX\sikuli-script.jar
Copying Sikuli stuff around is a big risk for future big problems.

--3. G:\Documents and Settings\Administrator\eworkspace\Sample\SikuliX\libs\
furthermore you seem to copy around the Sikuli libs folder. leave it in place 
at G:\Program Files (x86)\SikuliX\ and add in your global Windows environment 
settings to the system path: G:\Program Files (x86)\SikuliX\libs
So you have it one for all.

If you have all this, then the last thing to do is to specify in the global 
Windows environment settings:
SIKULI_HOME=G:\Program Files (x86)\SikuliX\
trailing slash mandatory with  Sikuli X-1.0rc3
This allows Sikuli to know, where the installation is.

Again as a general recommendation: leave the Sikuli stuff in one place
and work with references!

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 #230237]: [1.0 ]Sometimes wait hangs in sikuli 1.0

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

Status: Open = Answered

RaiMan proposed the following answer:
This is one of the major problems with Sikuli:
You do not get any feedback, wether a click was performed in real.

There are some known situations, where it might be possible, that a click is 
processed, but does not happen.
The most often reason is timing: the GUI for some reason is not yet ready, to 
accept a click.
Typical are sequences like
click(...) # get to an entry field
type(...) # type something
click(...) # click a button

even a short (e.g. wait(0.5) ) might stabilize the situation.

(this was one of the reasons, why Sean implemented the mouse move
animation: to give the GUI some time to prepare for the next click, but
this sometimes does not help either)

A button that changes on hover should not be the problem, since normally
the search for the button was done in a situation before, where the
mouse pointer was somewhere else on the screen.

-- 
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 #230529]: Jython: subclassing Region, overwriting Region methods and using super(): crashes with stack overflow caused by inheritance loop

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

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

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

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


Re: [Sikuli-driver] [Question #230529]: Jython: subclassing Region, overwriting Region methods and using super(): crashes with stack overflow caused by inheritance loop

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

Matthew Arnold posted a new comment:
Thanks! This works and you're right about super() being more useful for
templates.

-- 
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 #229810]: Windows: JythonSubprocess: OSError: Cannot run program C:\Program

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

Status: Answered = Solved

Roy Chang 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] [Question #230644]: select multiple dates from calendar using Java

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

I am trying to select multiple dates from calendar using Java, I saw that it is 
possible to hover over the calendar using Python.  can someone please share 
ideas on how to do this?

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 #230597]: [1.0] Issues opening Sikuli files on Mac

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

Status: Needs information = Open

king123 gave more information on the question:
I might not be understanding your instructions correctly, but when I
enter

sikuli-script d:5 -c

into Terminal, I get this -bash: sikuli-script: command not found
message. Another issue I have with the Sikuli-IDE 1.0.0 is that it is
installed in Applications as a folder and does not have a .app
extension. I downloaded the Sikuli IDE file from
https://launchpad.net/sikuli/+download

-- 
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 #230510]: Printing the exception information in a catch block

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

Mark Weisler posted a new comment:
The working script below illustrates some of how sys.exc_info works.

# script: sys.exc_info explorer
# Mark Weisler
# 11 June 2013
# our goal is to create an error condition, save error to a variable or a 
database
# Sikuli version  X-1.0rc3 on OS X 10.6.8

try:
f = open('sometestfile2.txt', 'r')# make sure this file does not exist 
to trigger an error, which we want to do
f.close()   # just in case the file did exist
except:
# some code maybe here
print Got an exception:, sys.exc_info()[0],  --- saying:, 
sys.exc_info()[1]
print 0 is: , sys.exc_info()[0]
print 1 is: , sys.exc_info()[1]
ErrMsg = sys.exc_info()[1]
print ErrMsg is: , ErrMsg  # could be logged or stored in a database

print Finishing execution...

-- 
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 #230597]: [1.0] Issues opening Sikuli files on Mac

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

Status: Open = Answered

RaiMan proposed the following answer:
You should not put the Sikuli-IDE 1.0.0 download into the folder
/Applications.

If you want the app version (in fact an automator workflow), then you have to 
download and use the
Sikuli-IDE-1.0.0-App (Sikuli IDE lightweight Automator App for Mac 10.6+)

Sikuli-IDE 1.0.0 for Mac should be unzipped e.g. in your home folder.
Then go to the installation folder and have a look at the read me.

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

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


[Sikuli-driver] [Question #230656]: Sikuli is opening a new IDE while my script is running

2013-06-12 Thread Cory Lo
New question #230656 on Sikuli:
https://answers.launchpad.net/sikuli/+question/230656

I'm having a strange issue with the a new Sikuli IDE starting up while my 
script is running.

1) I start Sikuli from my desktop icon
2) I load the script I want to run
3) I run the script
4) script completes and IDE reappears
5) I run the script again
6) script starts but as it's running a new Sikuli IDE starts up to a different 
script I have

I'm running r930 with Java 6. 
Not exactly sure what's going on.  Any ideas?

Thanks
C

-- 
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 #230656]: Sikuli is opening a new IDE while my script is running

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

Status: Open = Needs information

RaiMan requested more information:
Try this:
Deleten this branch in the registry 
HKEY_CURRENT_USER\Software\JavaSoft\Prefs\org\sikuli\ide\

---  I start Sikuli from my desktop icon
what is linked to this icon?

-- 
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 #230656]: [RC3] Sikuli is opening a new IDE while my script is running

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

Summary changed to:
[RC3] Sikuli is opening a new IDE while my script is running

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