[Sikuli-driver] [Question #269702]: Sikuli not pausing the script

2015-07-27 Thread Zoran Lisovac
New question #269702 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269702

I want to pause the execution of the script for 2 minutes:

suite=unittest.TestLoader().loadTestsFromTestCase(Test1) 
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(Test2))

result = XMLTestRunner(file(unittest xml result.xml, w)).run(suite)

in the beginning of the test runner file I  try both:

import time
time.sleep(120)
and
wait(120).

Neither works, tests still start 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


[Sikuli-driver] [Question #269704]: setShowActions or Settings configuration not taking effect

2015-07-27 Thread Tak Eda
New question #269704 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269704

Hello,

It does not seem like the logging in the following script works besides 
clicking on the image successfully:

[code]
setShowActions(True)
Settings.setShowActions(True)
Settings.ActionLogs = True
Settings.InfoLogs = True
Settings.DebugLogs = True
Settings.SlowMotionDelay = 3

click(test_image.png)
[/code]

My expectation, in addition to Sikuli clicking on the image successfully, was 
to:

1. See the mouse moving
2. Action, Debug and Info output logged
3. Red crosshair show up on the click event

Details:

1.1.0 2015-07-24_01:00nightly

WINDOWS 7

java version 1.8.0_51
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

Any idea what's going on? Are you able to reproduce this issue on your side?


-- 
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 #269664]: Sikuli loop with python

2015-07-27 Thread Cameron Jones
Question #269664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269664

Status: Open = Needs information

Cameron Jones requested more information:
Are A and B both lists with 3 elements? If A and B always have an equal
number of elements then you could do:

for i in range(0:len(A)):
try:
.
type(A[i])
type(B[i])
.
except FindFailed:
type(Key.F5)

However in your example, A has 3 elements, and I have to assume B has
one element, since it isn't separated by commas, but instead is
connected by a series of decimal points.

-- 
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 #269664]: Sikuli loop with python

2015-07-27 Thread Wei Yang
Question #269664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269664

Status: Needs information = Open

Wei Yang gave more information on the question:
Hi Cameron, thanks for your reply.

Both A and B have an equal number of elements. I apologise for the typo
in B, it should be commas instead.

I have tried as you suggested but an error message propped up
[error]Syntax Error (no viable alternative at input ':')

Please kindly correct me if I have misunderstandings in any ways.

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 #269664]: Sikuli loop with python

2015-07-27 Thread Cameron Jones
Question #269664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269664

Status: Open = Answered

Cameron Jones proposed the following answer:
Yeah that is my mistake, it should be just 'range(len(A)):'

-- 
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 #269704]: setShowActions or Settings configuration not taking effect

2015-07-27 Thread Eugene S
Question #269704 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269704

Status: Open = Answered

Eugene S proposed the following answer:
Hi,

1.  You will always see the mouse moving on the screen unless you set
Settings.MoveMouseDelay to 0. This will switch off any animation.

2. AFAIK, these logging settings are only relevant for IDE, if you run
your script from command line it won't make any differences.

3. Red crosshair  will appear if you set setShowActions(True).
Settings.SlowMotionDelay parameter that you have mentioned, will just
control the duration of the visual effect. In this case, if you set it
to 30, and attempt to click on an element, the crosshair will stay on
the screen for 30 seconds.

-- 
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 #269664]: Sikuli loop with python

2015-07-27 Thread Wei Yang
Question #269664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269664

Status: Answered = Open

Wei Yang is still having a problem:
the first part works, but the second part there is an error message. I
wonder what causes the error.


A=[111,222,333]
B=[123.456.789]
for i in range(len(A)):
try:
.
type(A[i])(line 12)
type(B[i])
.
except FindFailed:
type(Key.F5)

** [error] Type Error (type(): 1st arg can't be coerced to string)
 [error] --- Traceback --- error source first line: module(function) 
statement 12 main: (module)type(A)
 [error] --- Traceback --- end

-- 
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 #269719]: sikuli connect postgre database

2015-07-27 Thread kiyo
New question #269719 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269719

I am sorry to bother you .I can not find any method  to connect postgre 
database,can you give me any suggestion?

-- 
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 #269718]: sikuli connect postgre database

2015-07-27 Thread kiyo
New question #269718 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269718

I am sorry to bother you .I can not find any method  to connect postgre 
database,can you give me any suggestion?

-- 
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 #269628]: function hover () has a great latency

2015-07-27 Thread stic
Question #269628 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269628

Status: Solved = Open

stic is still having a problem:
RaiMan , You can tell whether there is a function that returns the
current cursor position in kordinaty ? This would help me a lot , I did
not know much English, and I find it difficult to search for information
in the documentation , they even want to write modules for programs C++
Win API.

-- 
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 #269577]: Sikulix 1.1.0 handler return value

2015-07-27 Thread Dr. Xenofon Nastos
Question #269577 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269577

Status: Answered = Solved

Dr. Xenofon Nastos 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 #269628]: function hover () has a great latency

2015-07-27 Thread stic
Question #269628 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269628

Status: Answered = Solved

stic 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