Question #692019 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692019
Status: Answered => Open
Stephan Timmers is still having a problem:
Thanks i tried it out and am googling to find a solution to the
following syntax error:
[log] CLICK on L[1139,599]@S(0) (51 msec)
[error] script [ HumanMouseTest ] stopped with error in line 89
[error] TypeError ( range() takes 1-3 arguments (0 given) )
[error] --- Traceback --- error source first
line: module ( function ) statement
89: main ( <module> ) for n in range():
[error] --- Traceback --- end --------------
curve = mouse_bez((here.x, here.y), (x_coord, y_coord), deviation, speed)
# ----------- main script
Settings.MoveMouseDelay = 0
Mouse.move(getBottomRight().offset(-300, -300))
mouseMoveRandom(Region(0+80, 80, 10, 10), 50, 50)
import random
def clickR(someImageOrPattern, around = 5):
match = find(someImageOrPattern) # find image
target = match.getCenter().grow(around) # target area around pixels around
center of match
mouseMoveRandom(target, 50, 50) # move mouse on a randomized track to a
randomized point inside target
click(Mouse.at()) # now finally click there
return match
img = "1595940323624.png"
clickR(img, around = 100)
for n in range():
wait(random.randint(1,10))
clickR(img, around = 100)
--
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 : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp