Re: [Sikuli-driver] [Question #644291]: How to get a command to repeat about 10 times

2017-06-26 Thread arminius
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Status: Needs information => Solved

arminius confirmed that the question is solved:
Thanks Manfred Hampl, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-21 Thread Manfred Hampl
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Status: Open => Needs information

Manfred Hampl requested more information:
It seems that you have an extra closing bracket somewhere.
Are you sure that the error is caused by one of the lines in your snippet and 
not by some other part of your code?

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-21 Thread arminius
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Status: Answered => Open

arminius is still having a problem:
"count = 1
while (count < 10):
 click(Pattern("58679475550934.png").targetOffset(-8,-8))
 count = count + 1"

returned [error] SyntaxError ( "mismatched input ')' expecting NEWLINE",
)

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-20 Thread Manfred Hampl
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Status: Open => Answered

Manfred Hampl proposed the following answer:
You seem to have misformatted the input.
Whitespace is significant in Python.
Python groups statements according to the amount of whitespace in front of it.

"count = 1
 while (count < 10):
 click(Pattern("58679475550934.png").targetOffset(-8,-8))
 count = count + 1"
is wrong, it probably has to be
"count = 1
while (count < 10):
 click(Pattern("58679475550934.png").targetOffset(-8,-8))
 count = count + 1"
denoting that the indented lines (click... and count=count+1) are inside the 
while loop.

Please check with python manuals.

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-20 Thread arminius
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

arminius gave more information on the question:
"for n in range(0, 10):
click()"

returns "[error] SyntaxError ( "mismatched input 'click' expecting
INDENT", )"

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-20 Thread arminius
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Status: Answered => Open

arminius is still having a problem:
"count = 1
while (count < 10):
click(Pattern("58679475550934.png").targetOffset(-8,-8))
count = count + 1"

returns "[error] SyntaxError ( "mismatched input 'click' expecting
INDENT", )"

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-20 Thread Mauro Edmundo Vargas Veloz
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Mauro Edmundo Vargas Veloz proposed the following answer:
count = 1
while (count < 10):
 click("460450485686722.png")
 count = count + 1
print ("finish")

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-20 Thread Manfred Hampl
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Status: Open => Answered

Manfred Hampl proposed the following answer:
Standard Python syntax
https://wiki.python.org/moin/ForLoop

for n in range(0, 10):
click()

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-20 Thread arminius
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Description changed to:
"click("460450485686722.png")
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()"

What's an easy way to just click() * 10
I tried the above command, it just clicked once.

Mint 18.1 KDE

-- 
You received this question notification because your team Sikuli Drivers
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 #644291]: How to get a command to repeat about 10 times

2017-06-20 Thread arminius
Question #644291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644291

Description changed to:
"click("460450485686722.png")
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()
click()"

What's an easy way to just click() * 10
I tried the above command, it just clicked once.

-- 
You received this question notification because your team Sikuli Drivers
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