← Back to team overview

sikuli-driver team mailing list archive

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

 

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

Hi,

When I run the following code "mismatched input 's' expecting NEWLINE" error is raised.

from sikuli import *
activity = "1395933560122.png"
ScreenRegion s = new DesktopScreenRegion();
ScreenRegion ActivityNametext = s.find(new ImageTarget(new File("activity"));
ScreenRegion right = Relative.to(ActivityNametext).right(150).getScreenRegion();                
                
Canvas canvas = new DesktopCanvas();
canvas.addBox(ActivityNametext);
canvas.addBox(right);
canvas.display(3);

can someone help me to resolve this issue.

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