sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45484
[Question #663216]: Select Region error
New question #663216 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663216
CODE:
import random
def randomClick(region):
clickX = random.randint(region.x, region.x + region.w)
clickY = random.randint(region.y, region.y + region.h)
click(Location(clickX, clickY))
image = Pattern("image.png").similar(0.85)
imageMap = selectRegion(Region(1627,856,247,149))
while true:
if exists(image, 0):
click(Pattern("image.png").similar(0.85))
wait(1)
else:
randomClick(imageMap)
wait(1)
Error is with selection region so I chose region and it's error called : TypeError: selectRegion(): 1st arg can't be coerced to String
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.