[Sikuli-driver] [Bug 1453886] Re: platform.architecture() does not work from sikuli-script.jar

2015-05-12 Thread RaiMan
** Changed in: sikuli
   Status: New = Won't Fix

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

** Summary changed:

- platform.architecture() does not work from sikuli-script.jar
+ [Jython] platform.architecture() does not work from sikuli-script.jar --- 
Jython problem

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

Title:
  [Jython] platform.architecture() does not work from sikuli-script.jar
  --- Jython problem

Status in Sikuli:
  Won't Fix

Bug description:
  To determine some test parameters we are looking to check the system
  architecture configuration (32 vs 64 specifically).

  When in an interactive jython session, I get the following:

  Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
  Picked up _JAVA_OPTIONS: -Xrunjvmhook 
-Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
  Jython 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17)
  [Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_17
  Type help, copyright, credits or license for more information.
   import platform
   print platform.architecture()
  ('32bit', '')

  But when I use a sikuli-script.jar interactive session I get the
  following:

  C:\DeploymentUnit\SikuliXjava -jar sikuli-script.jar -i
  Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
  Picked up _JAVA_OPTIONS: -Xrunjvmhook 
-Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUIC
  KT~1\bin\JAVA_S~1\classes\jasmine.jar
  Loading HP QuickTest Professional Java Support (version 11.0.0.0) (SUN 
1.7.0_17)
  SikuliX Package Build: 1.0.1 12SEP2013160242
  Hello, this is your interactive Sikuli (rules for interactive Python apply)
  use the UP/DOWN arrow keys to walk through the input history
  help()enter will output some basic Python information
  shelp()enter will output some basic Sikuli information
  ... use ctrl-d to end the session
   import platform
   print platform.architecture()
  Traceback (most recent call last):
File stdin, line 1, in module
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py, line 
887, in architecture
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py, line 
830, in _syscmd_file
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py, line 
796, in _follow_symlinks
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py, line 493, 
in abspath
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py, line 53, 
in isabs
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py, line 119, 
in splitdrive
  TypeError: 'NoneType' object is unsubscriptable

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1453886/+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 1453886] Re: [Jython] platform.architecture() does not work from sikuli-script.jar --- Jython problem

2015-05-12 Thread RaiMan
you might try with the latest Jython 2.7.0 (this is also bundled with SikuliX 
1.1.0).
If this does not work either, you have to live with it until it sis fixed in 
Jython.

In JVM environments the relevant system architecture is depending on the
architecture of the JVM (on Windows 64Bit, you could have a 32-Bit or a
64-Bit JVM running).

The JVM architecture of the running JVM can be retrieved using the system 
property
os.arch

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

Title:
  [Jython] platform.architecture() does not work from sikuli-script.jar
  --- Jython problem

Status in Sikuli:
  Won't Fix

Bug description:
  To determine some test parameters we are looking to check the system
  architecture configuration (32 vs 64 specifically).

  When in an interactive jython session, I get the following:

  Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
  Picked up _JAVA_OPTIONS: -Xrunjvmhook 
-Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
  Jython 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17)
  [Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_17
  Type help, copyright, credits or license for more information.
   import platform
   print platform.architecture()
  ('32bit', '')

  But when I use a sikuli-script.jar interactive session I get the
  following:

  C:\DeploymentUnit\SikuliXjava -jar sikuli-script.jar -i
  Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
  Picked up _JAVA_OPTIONS: -Xrunjvmhook 
-Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUIC
  KT~1\bin\JAVA_S~1\classes\jasmine.jar
  Loading HP QuickTest Professional Java Support (version 11.0.0.0) (SUN 
1.7.0_17)
  SikuliX Package Build: 1.0.1 12SEP2013160242
  Hello, this is your interactive Sikuli (rules for interactive Python apply)
  use the UP/DOWN arrow keys to walk through the input history
  help()enter will output some basic Python information
  shelp()enter will output some basic Sikuli information
  ... use ctrl-d to end the session
   import platform
   print platform.architecture()
  Traceback (most recent call last):
File stdin, line 1, in module
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py, line 
887, in architecture
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py, line 
830, in _syscmd_file
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py, line 
796, in _follow_symlinks
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py, line 493, 
in abspath
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py, line 53, 
in isabs
File C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py, line 119, 
in splitdrive
  TypeError: 'NoneType' object is unsubscriptable

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1453886/+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 #266832]: OSX 10.10. Mouse clicks in a loop failing / slowing down

2015-05-12 Thread Pak Lam
Question #266832 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266832

Pak Lam posted a new comment:
I just got the latest build and it's fixed!! :) many thanks for your
support!

-- 
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 #266832]: OSX 10.10. Mouse clicks in a loop failing / slowing down

2015-05-12 Thread Pak Lam
Question #266832 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266832

Status: Answered = Solved

Pak Lam 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 #266829]: if exists(img, 0) takes over 10 seconds to execute

2015-05-12 Thread Linda
Question #266829 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266829

Status: Needs information = Open

Linda gave more information on the question:
Sorry: 
SikuliX 1.0.1
Windows 7, 64 bit
8 GB Ram
4 core processor, 2.5ghz

-- 
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-12 Thread Rustam
Question #266382 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266382

Rustam posted a new comment:
Well, bad news again :(, an offline installation does bring the same
result. Last time i did forget to ask about sys.variables. So, what
should i add to PATH var. and  do i need to set JAVA_HOME var.?

-- 
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 #266832]: OSX 10.10. Mouse clicks in a loop failing / slowing down

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

RaiMan posted a new comment:
thanks for confirmation.

-- 
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 #266832]: OSX 10.10. Mouse clicks in a loop failing / slowing down

2015-05-12 Thread Pak Lam
Question #266832 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266832

Pak Lam posted a new comment:
I was trying the mentioned workaround...

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

but the whole script is not working...

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

i can't find the runsikulix.. after i run sikulixsetup-1.1.0.jar to
generate the SikuliX.app, no any other cmd had came out

-- 
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 #266829]: if exists(img, 0) takes over 10 seconds to execute

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

Status: Open = Needs information

RaiMan requested more information:
what Sikuli version?
what system?

-- 
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 #266832]: Mouse clicks in a loop failed

2015-05-12 Thread Pak Lam
Question #266832 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266832

Pak Lam posted a new comment:
And i also tried to change the clicking to:

for x in range (0,24):
switchApp(Google Chrome)
click(gbc.offset(xtuple[x],ytuple[x]))
print Click: (,xtuple[x],, ,ytuple[x],)

still same...

-- 
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 #266832]: OSX 10.10. Mouse clicks in a loop failing / slowing down

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

RaiMan requested more information:
sure you have the latest build?

Might be, that it works with that anyway.

-- 
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 #266832]: Mouse clicks in a loop failed

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

Status: Needs information = Answered

RaiMan proposed the following answer:
see bug 1447096

-- 
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 #266832]: OSX 10.10. Mouse clicks in a loop failing / slowing down

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

Summary changed to:
OSX 10.10. Mouse clicks in a loop failing / slowing down

-- 
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 #266816]: Just wondering when Sikuli 1.1.0 will be final

2015-05-12 Thread dinev
New question #266816 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266816

I would like to move my tests to 1.1.0 but planed final was moved few times. 
What is holding the final release and when we can expect 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] [Bug 1454440] [NEW] IDE displaying text instead of images

2015-05-12 Thread Erich Fiederer
Public bug reported:

using 1.1 IDE on 2015-04-28 nightly with OSX 10.10

Sometimes when I open a sikuli file in the IDE, the images do not
display, only the file name.

This occasionally fixes itself when I close and reopen the file.

Screenshot: http://imgur.com/W2L54vH

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

Title:
  IDE displaying text instead of images

Status in Sikuli:
  New

Bug description:
  using 1.1 IDE on 2015-04-28 nightly with OSX 10.10

  Sometimes when I open a sikuli file in the IDE, the images do not
  display, only the file name.

  This occasionally fixes itself when I close and reopen the file.

  Screenshot: http://imgur.com/W2L54vH

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1454440/+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 #266846]: Bug recognition dual monitor

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

Status: Open = Needs information

RaiMan requested more information:
what version of Sikuli?

with version 1.1.0 we have a regression currently to not working correctly 
anymore in some special situations.
This is going to be fixed soon.

All previous versions have different problems with multi monitor
situations.

-- 
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 #266820]: onVanish not working on specific region

2015-05-12 Thread Jonathan
New question #266820 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266820

I am relatively new to Sikuli and python.I am running Sikuli on a MAC 10.9.5.
I am having trouble getting onVanish to work. I have extracted the relevant 
code to highlight the problem. The code is monitoring a game. As part of the 
game there is an image that moves periodically from one position to another. 
First consider the following 



def imageMoved(event):
self.monitor = False
event.region.stopObserver()


self.monitor = True
image = Image()
currentImageRegion = image.region()   # currentImageRegion redundant in this 
first version
if currentImageRegion.exists(imageScreenShot):

onVanish(imageScreenShot, imageMoved) # THE CHANGED LINE

observe(background = True)
while self.monitor == True:
currentImageRegion.highlight(1)
# monitoring stuff

Here currentImageRegion is redundant. Here I assume onVanish(imageScreenShot, 
imageMoved) is applied to the whole screen as the region. While running the 
game, as the image moves, onVanish is not triggered which I sort of would have 
expected.If I then minimise the game onVanish is triggered which I also would 
expect.

Now for the problem:- 


def imageMoved(event):
self.monitor = False
event.region.stopObserver()


self.monitor = True
image = Image()
currentImageRegion = image.region()
if currentImageRegion.exists(imageScreenShot):

currentImageRegion.onVanish(imageScreenShot, imageMoved) # THE CHANGED 
LINE

observe(background = True)
while self.monitor == True:
currentImageRegion.highlight(1)
# monitoring stuff


In this piece of code onVanish is applied to the region currentImageRegion. 
This is a small region around the initial position of the image. I know that it 
is as I can see it due to the currentImageRegion.highlight(1) statement. 
However, when the image moves out of this region the onVanish is not triggered 
(this is what I want). Further, if I minimise the game the onVanish is still 
not triggered. 

In conclusion it seems that onVanish is only working when applied to the whole 
screen and not a more specific region of the screen. Am I doing something 
wrong? Thanks in anticipation of any help.

-- 
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 #266820]: onVanish not working on specific region

2015-05-12 Thread Jonathan
Question #266820 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266820

Jonathan posted a new comment:
Sorry about the indentation in the code. Its fine before I post 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 #266818]: Running Sikuli scripts as an user with administrative rights

2015-05-12 Thread Matthias Struck
New question #266818 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266818

Hey there,

I am currently developing a little graphical testing suite for my company and 
while using Sikuli as my tool of choice, I ran into a small problem.

The situation is as follows:
I am using a Win 7 Professional machine as my testing rig. For our tests I 
installed my own copy of Jenkins under a specified user account chosen to be 
the one the testing softwar will run on, so that when a build has finished, a 
completion signal gets send to my Jenkins, which in turn will trigger a bash 
script. Said bash script then triggers a task running with administrative 
privileges, which in turn calls up Sikuli and then handles the automated 
installation.

Well, and here is my problem. In theory that sounds good and quite doable. 
However, for Sikuli to run correctly said administrative task must be set to 
run only, when this user is logged on. Unluckily the administrative account, 
which is not the standard Administrator account by Microsoft, is on the same 
machine as the user account doing the actual testing. Also the task is 
invisible to the testing account, which has no administrative rights, and when 
I create a task specific for the user account, it keeps telling me, that I need 
administrative rights and stops the test. 

I am a bit of a loss here and spend quite some time researching on how to wrok 
around this, but finding no answer so far. So can you help me out. please and 
give me some hints?

-- 
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 #266829]: if exists(img, 0) takes over 10 seconds to execute

2015-05-12 Thread Linda
New question #266829 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266829

Hi, I have a script for verifying that a movie is streaming. If the movie have 
stopped the script will fail. 
The problem is that if exists(img,0) takes over 10 seconds for me to execute. 
Why? 
The region is the entire screen, since it is a movie playing in full screen. 
But shouldn't the comparison fail immediately if it can't see similarities? I 
have tried fiddeling with WaitScanRate and ObserveScanRate without success. 

Example:
---
app = getRegionOfApp()
duration = 30
time = datetime.datetime.now().time()
endTime = addSecsToTime(time, duration)

img = capture(app)
wait(5)
while datetime.datetime.now().time()  endTime:
print time before if: , datetime.datetime.now().time()

if exists(img,0):
assert False
print video seems to have stopped

print time after if: , datetime.datetime.now().time()

img = capture(app)
wait(5)
print video played fine in %s seconds % (duration)

-
[output]
time before if: 16:02:51.005000
time after if: 16:03:01.772000

-- 
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 #266832]: Mouse clicks in a loop failed

2015-05-12 Thread Pak Lam
New question #266832 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266832

Hi,

I was writing a loop clicking on a game board which should help to me click 24 
buttons, here's the code:

try:
gbc=find(Pattern(1431440461493.png).similar(0.35)).getCenter()
print Found gameboard
for x in range (0,24):
hover(gbc.offset(xtuple[x],ytuple[x]))
for m in xrange(2):
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)
print Click: (,xtuple[x],, ,ytuple[x],)
except Findfailed:
print findgameboardagain

and the above codes is inside a while loop...
however while i run the code, it can do the clicking sometimes, but just 1~2 
loops.
afterward the whole program is stuck in some part of the 24 loops click, 
sometimes while i press cmd + tab and it moves again...
and sometimes it just don't move... in that case i have to stop the script 
manually.

here's the messages:

Let's find gameboard
Found gameboard

Click: ( -145 , -150 )

Click: ( -68 , -148 )

Click: ( 2 , -144 )

Click: ( 83 , -148 )

Click: ( 156 , -147 )

java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at java.awt.Robot.delay(Robot.java:535)
at java.awt.Robot.autoDelay(Robot.java:521)
at java.awt.Robot.afterEvent(Robot.java:471)
at java.awt.Robot.mouseRelease(Robot.java:315)
at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:110)
at org.sikuli.script.Mouse.up(Mouse.java:365)
at org.sikuli.script.Mouse.up(Mouse.java:349)
at org.sikuli.script.Mouse.reset(Mouse.java:100)
at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:197)
at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2252)

i still can't figure out why sometimes it clicks all 24 points, but sometimes 
just stop without any warnings.

-- 
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 #266832]: Mouse clicks in a loop failed

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

Status: Open = Needs information

RaiMan requested more information:
what version of Sikuli?
what system?

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