← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #246133]: mismatched input 's' expecting NEWLINE error is raised when I tried to find a region.

 

Question #246133 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/246133

    Status: Answered => Open

Atul Desai is still having a problem:
Hi I made slight modification in code as I want to search a an object in that specific region which is as follows, but the script is failing at line 8 and raise error stating "[error] script [ regiontest ] stopped with error in line 8
[error] AttributeError ( 'int' object has no attribute 'right' )"

from sikuli import *
activityRegion = Region(225,489,191,370)
activity = "1395933560122.png"
# ScreenRegion s = new DesktopScreenRegion();
#ScreenRegion ActivityNametext = s.find(new ImageTarget(new File("activity"));
#ScreenRegion right = Relative.to(ActivityNametext).right(150).getScreenRegion();
activityNametext = hover(activityRegion.find(activity));
right = activityNametext.right(500)

activityNametext.highlight(1)
right.highlight(1)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.