[Sikuli-driver] [Bug 1447096] Re: [1.1.0] OS X 10.10.3: IDE: running scripts acting on some Mac apps: work for about 60 seconds, then click/type get really slow --- workaround: use command line instea

2015-05-03 Thread RaiMan
@Rayan
thanks for feedback.

--- I don't have any issue with launching Notes with the App.open( )
Sure you do not have ;-)
I found a hack to avoid this problem (see bug 1445667)

--- to get around the slowdown for now ...
... just edit your script in the IDE and save it before running it from the 
command line in a parallel Terminal session.

--- if you need more information
I do not need any more information, since the cause is rather clear (that is 
why these extra debugs are shown).
But I do not have any idea in the moment, how to tackle the problem, since it 
is somewhere deep down in the area, where Java steps down to the native layers 
of OS X to issue the click action.

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

Title:
  [1.1.0] OS X 10.10.3: IDE: running scripts acting on some Mac apps:
  work for about 60 seconds, then click/type get really slow ---
  workaround: use command line instead of app

Status in Sikuli:
  Fix Committed

Bug description:
   workarounds:

  use this to start the IDE from a command line:
  java -jar /Applications/SikuliX.app/Contents/Java/sikulix.jar

  or use the IDE as usual, but do not run from inside the IDE, but in parallel 
from a Terminal session (command line)
  path to your setup folder/runsikulix -r yourScript.sikuli

  Since this seems to be some serious problem deep down in the Java
  Robot implementation with respect to OS X 10.10, a fix might take some
  time.

  The symptom: 
  about 60 seconds after the first Robot action, the robot extensively delays 
any mouse and keyboard actions and seems to do some features erroneously or 
even not at all.

  --

  on OSX 10.10.3
  With nightly build 1.1.0 22-04-2015 and earlier versions

  i Get a error when i stop a simple loop script as it gets slow.

  for x in range(100):
  App.focus(dild)
  click(1)
  click(2)
  click(3)
  click(4)
  print(at  + str(x))

  i get to about 16 loops and its then get realy slow and finds the
  click´s every 10-20 sec...

  when i stop the script it promtes me that:
  Possible cause in case you did not touch the mouse while script was running:
  mouse actions are blocked generally or by formost application

  anybody have any ideas?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1447096/+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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear (if 
it takes 2secs or longer to appear) or 2secs in total.

I really would like to achieve this, cuz this wait is inside a function that I 
have to repeat several times.
Is this kinda easy to achieve, or would take to much loops or variables so it 
may not be worth doing.

Thanks Advanced.

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear (if 
it takes 2secs or longer to appear) or 2secs in total.

I really would like to achieve this, cuz this wait is inside a function that I 
have to repeat several times.
Is this kinda easy to achieve, or it would take to much loops-variables to do 
it, so it may not be worth doing.

Thanks Advanced.

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
New question #266392 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266392

Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
I mean sometimes the image appears in 0secs, then I would like to wait for 
2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time image takes to appear OR in 
best scenario only 2secs

I say so cuz this is inside a function I have to repeat several times.

Thanks Advanced.


-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
so, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear OR 
in best scenario only 2secs

I say so cuz this is inside a function I have to repeat several times.

Thanks Advanced.

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
so, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear OR 
in best scenario only 2secs

I say so cuz this is inside a function I have to repeat several times.

Thanks Advanced.

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear (if 
it takes 2secs or longer to appear) or 2secs in total.

I really would like to achieve this cuz wait is inside a function that I have 
to repeat several times.
Is this kinda easy to achieve?

Thanks Advanced.

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear 
provided (if it takes longer than 2secs) or 2secs in total.

I say so cuz this is inside a function I have to repeat several times.

Thanks Advanced.

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear 
provided that the wait time is equal or longer than 2secs

I say so cuz this is inside a function I have to repeat several times.

Thanks Advanced.

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear (if 
it takes 2secs or longer to appear) or 2secs in total.

I say so cuz this is inside a function I have to repeat several times.

Thanks Advanced.

-- 
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 1451326] [NEW] [1.1.0] IDE: Line focus lost when coming back from Preview - image rename

2015-05-03 Thread RaiMan
Public bug reported:

When coming back from a rename of an image, the editor tab content is scrolled 
to the top again.
Should keep the scroll position.

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

Title:
  [1.1.0] IDE: Line focus lost when coming back from Preview - image
  rename

Status in Sikuli:
  Fix Committed

Bug description:
  When coming back from a rename of an image, the editor tab content is 
scrolled to the top again.
  Should keep the scroll position.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1451326/+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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread RaiMan
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Status: Open = Answered

RaiMan proposed the following answer:
currently the only solution:

min = 2.0
start = time.time()
reg.wait(Img, 9)
rest = min - time.time() - start
if rest  0: wait(rest)

but might be a good idea to have something like that:
minWait(2.0)
reg.wait(img, 9)

and minWait() only effects the next search.

another option would be, to have a wait() variant like that:
wait(image, maxWait, minWait)

I put it on the list for version 2

-- 
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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

2015-05-03 Thread eduardobedoya
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to 
wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear (if 
it takes 2secs or longer to appear) or 2secs in total.

I really would like to achieve this, cuz this wait is inside a function that I 
have to repeat several times.
Is this kinda easy to achieve, or it would take to much resource usage, so it 
may not be worth doing.

Thanks Advanced.

-- 
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 #266382]: Sikuli, IDE, libopencv, Windows

2015-05-03 Thread Rustam
New question #266382 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266382

Hello, colleagues.
I have a problem using Sikuli IDE 1.0.1 under a Windows XP SP3 OS. After i 
tried to execute a simple code of 'click (screenshot)' i get the output to log 
file:
# A fatal error has been detected by the Java Runtime Environment: 
# 
#  EXCEPTION_ILLEGAL_INSTRUCTION (...) at pc=0x66862447, pid=692, tid=1968 
# 
# JRE version: Java(TM) SE Runtime Environment (7.0_72-b14) (build 
1.7.0_72-b14) 
# Java VM: Java HotSpot(TM) Client VM (24.72-b04 mixed mode, sharing 
windows-x86 ) 
# Problematic frame: 
# C  [libopencv_imgproc244.dll+0xa2447] 
# 
# Failed to write core dump. Minidumps are not enabled by default on client 
versions of Windows 
# 
# If you would like to submit a bug report, please visit: 
# The crash happened outside the Java Virtual Machine in native code. 
# See problematic frame for where to report the bug.
I already red an answer from 
https://answers.launchpad.net/sikuli/+question/237538  concerning similar 
trouble and did follow instructions, but it change nothing :(
How to fix 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 #266382]: Sikuli, IDE, libopencv, Windows

2015-05-03 Thread RaiMan
Question #266382 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266382

Status: Open = Answered

RaiMan proposed the following answer:
try with version 1.1.0
http://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