← Back to team overview

sikuli-driver team mailing list archive

[Question #272256]: A workaround for highlighting not working on linux

 

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

Faced with the problem of debugging why the hell scripts fail on linux I made this very simple app to work as a replacement for Region.highlight function:
https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

It needs qt/qbs to compile but once you do, you can simply use the function below everywhere, where region.highlight was used

def highlight(reg, time):
    subprocess.call(["/adp/arm/regionHighlighter.sh",
                     "--width=" + str(reg.getW()),
                     "--height=" + str(reg.getH()),
                     "--top=" + str(reg.getY()),
                     "--left=" + str(reg.getX()),
                     "--time=" + str(time)]);
    reg.wait(time/1000)


the parameters above are self-explanatory I think. Except time, which is in milliseconds

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.