← Back to team overview

sikuli-driver team mailing list archive

[Question #268494]: Why do I need to call highlight two times

 

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

My code: (in java)

1. screen.setRect(x1, y1, w1, h1).highlight();
2. popup("check 1");
3. screen.setRect(x2, y2, w2, h2).highlight();
4. popup("check 2");

At step 4 I don't see any highlight. To see the highlight I need to add an additional highlight.

1. screen.setRect(x1, y1, w1, h1).highlight();
2. popup("check 1");
3. screen.setRect(x2, y2, w2, h2).highlight();
4. screen.setRect(x2, y2, w2, h2).highlight();
5. popup("check 2");

Why?

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